1

I have a telegram bot that handles user input to perform actions on links that are sent.

In my Telegram Bot I have:

def handle_message(bot, update):
    url = update.message.text
    # do parsing and add url to database

dispatcher.add_handler(MessageHandler(filters=Filters.text, callback=handle_message))

However I want to also be able to send a URL to the bot from a POST request. i.e. use the telegram bot's API to send a message to itself so it can parse the link.

How can I send a POST request to my telegram bot and have it run handle_message() on the input?

1 Answer 1

1

It is technically impossible for bots to communicate with each other (and therefore with themselves).

Sign up to request clarification or add additional context in comments.

1 Comment

Bots can see other bots' messages in channels.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.