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
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.
I asked the same question and did not find an answer. So I made two libraries for testing telegram bots:
node-telegram-bot-api
. It catches bot requests and allows to pretend that we have a valid answer from client.Both projects are in deep alpha version for now but I haven't seen anything better. You can read an article about those projects (in Russian) here.