Skip to content

Add RTL layout support for reply markups #882

Description

@mirismaili

Is your feature request related to a problem? Please describe.

Bots that serve right-to-left languages currently have no Bot API-level way to indicate that a bot or an individual message should use RTL layout. As a result, bots and third-party libraries must implement message-specific workarounds for keyboard ordering and input layout.

Describe the solution you'd like

Please consider adding an optional RTL setting that can be configured either globally for a bot or overridden for an individual message. When enabled:

  • Buttons in every row of both Keyboard and InlineKeyboard should be laid out from right to left by reversing the row order.
  • The ForceReply input field, including input_field_placeholder, should use RTL direction/alignment.

This would provide a consistent, first-class solution for bots serving Persian, Arabic, Hebrew, Urdu, and other RTL languages without requiring each bot or framework to transform reply markups independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions