skip to Main Content

usually if we want to chat or send command to Telegram Bot, we just texting the bot from Telegram apps (desktop, web, or smartphone). Is there any way texting the bot without open Telegram apps??
I’ve read many website and thread in stackoverflow, but no clue..

3

Answers


  1. If you have the token of the bot, you can directly call the Telegram Bot API using your browser or any other program that allows you to perform requests on the web. But you would not be able to see what the bot answers since you can not access the messages written by the bot via the API.

    If you want to quickly access a bot without firing up Telegram Desktop or any other official app I recommend you to have a look into telegram-cli. Though it might be a little outdated I think you can still use it. You can execute telegram-cli with command options (e.g. sending a command to a bot) for quick access from the terminal.

    Login or Signup to reply.
  2. How about GET request from browser? just paste it into your adress bar and press enter :

    https://api.telegram.org/botYOUR_BOT_API/sendMessage?chat_id=SOME_CHAT_ID&text=hi

    replace YOUR_BOT_API with your bot token

    replace SOME_CHAT_ID with some chat_id (user_id, if u have no idea what chat_id is, just send the text message to the @userinfobot and the bot shows the user_id from the post you’ve send to the bot)

    Login or Signup to reply.
  3. If you want to start the bot without opening Telegram, you could use an automated client. For example, you can use PHP with MadelineProto

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search