#🔒 Guys can you tell me why the error (ValueError: The message doesn't contain any keyboard) is displ

35 messages · Page 1 of 1 (latest)

lost field
#

#1035199133436354600
help

peak sealBOT
#

@lost field

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

pearl ledge
#

can you show us the full error that's displayed

violet badge
peak sealBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

violet badge
#

screenshots are pointless

lost field
#

I can't do it now, unfortunately, because I've turned everything off.😩

pearl ledge
#

its all g

violet badge
#

well it says you cant send a message “with no keyboard” farm_pepeFeelsWeirdMan

pearl ledge
#

!pip pyrogram

peak sealBOT
#

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

Released on <t:1682879085:D>.

lost field
#

I see their

violet badge
lost field
#

😭

shell vector
#

So it's a telegram message that doesn't have a keyboard.

#

So you cannot click it.

lost field
#

Ye, but when my soft click first keyboard, he can’t click after

#

It's also a keyboard, he's pressing it.

#

After he clicked the button, a message appears instead in the same place this is

#

And he can't see them.....

pearl ledge
#

i want to help but i'm struggliong to understand whats going on

shell vector
#

so the message is updated?

#

maybe the change wasn't detected.

lost field
#

?

shell vector
#

i have no idea how pyrogram or telegram works. but in order for the messageto be clickable, the message.reply_markup needs to be an instance of pyrogram.ReplyKeyboardMarkup or pyrogram.InlineKeyboardMarkup.

peak sealBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.