Skip to content

getReplyMarkup() doesn't return actual reply markup #323

Open
@artemijdeleto

Description

Problem

Getting null when trying to get reply markup of the message using getReplyMarkup

Expected result

Getting instance of InlineKeyboardMarkup, as documented in the source code

Steps to reproduce

  1. Send message with InlineKeyboardMarkup passed to replyMarkup parameter, providing text and callback_data
  2. Open any Telegram client application and click on created button
  3. Capture callback event using $client->callbackQuery()
  4. Try to get reply markup of the message using $query->getMessage()->getReplyMarkup()

The result of the following steps will be null.
I printed out the raw body and definitely sure that JSON that sent back to the server contains reply_markup field

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