Answer the question
In order to leave comments, you need to log in
Is it possible, when executing request_location in a telegram chat bot, to send data not as a “reply”?
Good afternoon
When using ReplyKeyboardMarkup, request_location=True in telegram, the message in the chat bot comes as a "reply" to the previous message. can this be removed?
def run_bot(update: Update, context: CallbackContext):
replica = update.message.text
answer = bot(replica)
location_keyboard = KeyboardButton(text="Submit Location", request_location=True)
my_keyboard = ReplyKeyboardMarkup(, resize_keyboard=True)
update.message.reply_text(answer, reply_markup=my_keyboard)
When using other buttons, messages are clear.
Answer the question
In order to leave comments, you need to log in
It shouldn't be in the code.
Even my phone does not allow me to send a geodata in the form of a replay to any message, even if I select it for a reply, a regular message is still sent without clinging to anything, and the message for the replay remains hanging in the draft. (IOS 13.3.1 / 7.4.2) upd: checked on a bucket, it automatically replays
to
7.4.2 there messages, respectively, so the answer comes as a replay to the messages from which this keyboard appeared. In iOS, this does not happen. messages.sendMedia
reply_to_msg_id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question