Use Telegram client for bot testing (not bot api)

前端 未结 2 810
一整个雨季
一整个雨季 2021-02-09 01:28

I am build a Telegram Bot now and are testing it manually with a Telegram Client. Is there a way I can send client messages in the same way I can build bots?

I know that

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-09 01:57

    Alternatively you can use an MTProto Telegram user account library like MadelineProto in PHP, Telethon and Pyrogram in Python 3. You can use these library to automate an user account to test your bot.

    Just to note that you might hit the flood ban if you send message too frequently.

提交回复
热议问题