Home>
useforward
for forwarding messages /photos, but everything destroysKeyboardButton
, because this is in fact a message and it is also sent, is it possible to make the message of the buttons not be detected?
if message.text== ("/send")
bot.forward_message(TO_CHAT_ID, message.chat.id, message.message_id)
bot.send_message(TO_CHAT_ID, "@" + message.chat.username)
bot.send_message(message.chat.id, '%s, message was sent to ????'%message.chat.username)
bot.polling(none_stop=True)
here I tried to do it by type: /send text or: /send and a message
-
Answer # 1
Related questions
- python : AttributeError: 'NoneType' object has no attribute 'startswith'
- python : How to transfer the value of a variable from one handler to another. Using FSM
- TypeError: 'list' object is not callable. Literally today I started learning Python and telebot API and I don’t understand what
- python : Sending a file using telegramAPI
- python : Bot on aiogram does not see the answer to someone else's message
- python : How to send a single message in response to the user via bot.send_message
- python : Filter data with pydantic by values
- python : Error with matrix multiplication. Numpy
- Can't uninstall/install Python
You can use
callback
buttons. Or cut out a keyword from your message:But I'll call it a crutch, IMHO