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
https://telegram.me/botfather
START Dialog
/newbot
Write the Name for your Bot
[IMAGE: https://cdn.steemitimages.com/DQmbbVzrW5RKkVVtQ7JbbhhTG2veMPY86kuQdjYJFUty5Sb/Screenshot%20from%202018-05-29%2002-14-57.png]
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
[IMAGE: https://cdn.steemitimages.com/DQmSGGffqE7CQmPS5WNQwHRL4HMRSJCJKkiA89aQDuxeCL6/Screenshot%20from%202018-05-29%2002-36-45.png]
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
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.
http://melea.es/contac/
https://twitter.com/cryptoMelea
https://www.instagram.com/cryptomelea/
https://www.reddit.com/user/iammelea
https://keybase.io/melea
https://github.com/iammelea
https://steemit.com/@melea
https://t.me/melea_trader
http://melea.es/