- How Create Bot in bale messanger ??
- How to develop a bot ?
We want to answer the above questions!
- install bale to this link
- create account in bale
- search
@botfather
and send messsage this bot - create bot with
@botfather
and get token
Well, until now we were able to create a bot and now we have to give the token to our Python source...
from balepy import Client
from asyncio import run
__token = 'your-token-here'
client = Client(__token, timeout=10)
async def main():
async for message in client.on_message():
await message.reply('hello __from__ **balepy**')
if __name__ == '__main__':
run(main())
- in this step give token to __token and run source !
congratulation! You have succeeded in writing your first bale bot!