Create a chatbot everyday
Please Apply token from BotFather
. And all examples here we store token as an enviroment variable.
export bot_token="<YOUR-BOT-TOKEN>"
improt os
bot_token = os.environ['bot_token']
or you can run chatbot in this way
env bot_token="xxx" python chatbot1.py
env bot_token="ooo" python chatbot2.py
An inspecting chatbot for a rental website(ex. 591)
/start
得到說明
/price
設定金錢
/mrt
設定捷運站
An chatbot who can send investment information for you everyday