Answer the question
In order to leave comments, you need to log in
Pyrogram. Publishing a post to a channel. How to transfer the keyboard correctly?
Hello. I'm writing a script in Python + Pyrogram
How to correctly send a message to a channel and place buttons under it?
I do it like this:
@app.on_message()
async def go(client: Client, message: Message):
reply_markup = InlineKeyboardMarkup()
await client.send_message('-1001572587412', str(message.message_id), reply_markup=reply_markup)
Answer the question
In order to leave comments, you need to log in
You are not using the method
InlineKeyboardMarkup().add(InlineKeyboardButton(....)...)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question