A general use chatbot for telegram
cd
into the directory you wish for this to be installed$ git clone https://github.com/veryheavypickle/telegramChatBot.git
$ cd telegramChatBot
$ pip install -r requirements.txt
- Make sure you are in the telegramChatBot directory
$ python main.py
- ???
- Profit!
where testFunction has to be a python programmed function
handlers = [MessageHandler(Filters.text & (~Filters.command), messageHandler),
CommandHandler('start', start),
CommandHandler('test', testFunction)]
def testFunction(update, context):
userID = str(update.effective_chat.id)
sendMessage(context, userID, "Bot works well!")