Telegram Bot
Hi people, today we are going to create a telegram Bot and obtain his Token and Chat-id.
Open telegram
Search Bottom for ( BotFather )
or
START Dialog
/newbot
Write the Name for your Bot
Someprivate:token123456
Click on the Bot-name created and add some description.
for more commands and setup
/help
Here is done you have created one Telegram bot. take the token file and bot name and saved for later.
It does not matter if you close the chat with Botfather, the bot is already created and you have already saved your keys.
SEARCH YOUR BOT AND OPEN CHAT WITH THE BOT
Important said hi.
Now leave telegram open and open Ubuntu terminal
sudo apt install python-pip
sudo pip install python-telegram-handler
After install:
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
DONT DO . ANY UPGRADE.
sudo python -m telegram_handler <your token here>
CONGRATULATIONS
Now you have One TelegramBot with Token and CHAT-ID
For more info about telegram bot
https://core.telegram.org/bots#6-botfather
Github repo
https://github.com/sashgorokhov/python-telegram-handler
Have nice day and enjoy your bot.
https://twitter.com/cryptoMelea
https://www.instagram.com/cryptomelea/