An example of creating telgram-bot using telepot
countrycap_bot.py - python code that you should start on your server
answersData.json - json file with answers on users requests. Add something you want there
You need to create a token for your own bot using bot BotFather
Telepot API - https://telepot.readthedocs.io/en/latest/