M
M
Markadon2019-05-24 18:28:16
Python
Markadon, 2019-05-24 18:28:16

How to prevent telegram messages from being sent to a bot after the first message is sent in python?

The essence of the problem is this:
I am writing a bot for a telegram using the Telegram Bot API in python, I want that after sending a message with mail, the ability to write to the bot again is blocked.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-05-24
@Allepta

As far as I know, this cannot be done using the telegram api, but you can simply prohibit the bot from responding to messages from a user with a specific identifier, for example, one that has already written to the bot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question