__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Telegram Bot

BY: @melea | CREATED: May 29, 2018, 1:03 a.m. | VOTES: 4 | PAYOUT: $0.30 | [ VOTE ]

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

[IMAGE: https://cdn.steemitimages.com/DQmW2iMjGipwRMEJXPymmMFEQGSqo3fNVLu4gNgCMxvUDVm/Screenshot%20from%202018-05-29%2002-07-02.png]

 Write the Name for your Bot

[IMAGE: https://cdn.steemitimages.com/DQmbbVzrW5RKkVVtQ7JbbhhTG2veMPY86kuQdjYJFUty5Sb/Screenshot%20from%202018-05-29%2002-14-57.png]
Someprivate:token123456

[IMAGE: https://cdn.steemitimages.com/DQmZd7VHpMJra1TBeXg3NzgPpi82NeSs23MxYMj7nQwMzer/Screenshot%20from%202018-05-29%2002-15-31.png]

[IMAGE: https://cdn.steemitimages.com/DQmV2G5gZxse35cc6FGMs3cLqkTPvejzKBwmGzkdW8wH3Mp/Screenshot%20from%202018-05-29%2002-15-42.png]

 Click on the Bot-name created and add some description.

for more commands and setup

/help

[IMAGE: https://cdn.steemitimages.com/DQmajeFXDsLRCVDWPcKFmCQ5FNqk2vdNeiwbCapJ5ipes29/Screenshot%20from%202018-05-29%2002-27-44.png]

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.

[IMAGE: https://cdn.steemitimages.com/DQmXJkyq7ZK34pHsphWg4f2ns1bLdDo5bc9U1cHAheVpeHh/Screenshot%20from%202018-05-29%2002-43-44.png]

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

[IMAGE: https://cdn.steemitimages.com/DQmPFW3fGTWCUySKVvrv5b9fps5tobQJeWgsQncr77qRhc8/Screenshot%20from%202018-05-29%2002-51-35.png]

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/

TAGS: [ #telegrambot ] [ #telegram ] [ #telegramtoken ] [ #telegramchatid ]

Replies

NO REPLIES FOUND.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>