Skip to content

MashaKubyshina/Telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bot_test

Telegram bot using python

The goal of 5per5 bot is to help non-native English speakers learn trendy words to use at job interviews. Currently the bot is still in making and learning. I wanted to share this template script in case it might be helpful to others.

The goal of this script is to create a simple bot with ML features on Telegram using python. I am using tensorflow.keras to train the bot to recognize patterns of natural languge and predict the appropriate response. The code has comments to explain what each part does.

If you want to use this script, you will need to copy 3 files from this repository. You will work on them in this order:

  1. intents.json
  2. training.py
  3. chatbot_5per5_main.py

Note: you don't need to copy "chatbotmodel.h5" file, you will generate your own model.h5 once you run your training script.

You will also need to create your own txt file named "token.txt" where you will paste the unique token you get from botfather. Here is the tutorial I used to create my bot on telegram https://www.youtube.com/watch?v=CNkiPN_WZfA. This tutorial walks you through token creation.

Here are 2 other tutorials that helped me along the way:

https://www.youtube.com/watch?v=PTAkiukJK7E

https://www.youtube.com/watch?v=1lwddP0KUEg&t=337s

About

Telegram bot using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages