M
M
MixON_VC2021-02-23 21:04:12
Python
MixON_VC, 2021-02-23 21:04:12

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.
60354312923c9025431356.png
603543904ddba798134139.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-02-23
@SoreMix

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.sendMediareply_to_msg_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question