Telegram Create BOT

Next...


- Buat Bot Telegram
Ref https://www.sohamkamani.com/blog/2016/09/21/making-a-telegram-bot/
https://web.telegram.org/#/im?p=@BotFather
# /newbot
# PT. Huka Huka
# Huka_Huka_Bot
# Use this token to access the HTTP API:
# 574xx411:AAGxxxxxxnGlc7U8OY2Rq4gu3c24Q0OY
>> The result you will get this token >> token: 574xx411:AAGxxxxxxnGlc7U8OY2Rq4gu3c24Q0OY

- Buat Group atau gunakan Group Existing
>> via Panel >> New Group

- Invite Bot ke dalam group (Admin Group)
>> via Panel >> Invite >> @Huka_Huka_Bot

- Mention Bot nya
# /hi @Huka_Huka_Bot

- Buka JSON Bot
https://api.telegram.org/bot<TOKEN_BOT>/getUpdates
https://api.telegram.org/bot574xx411:AAGxxxxxxnGlc7U8OY2Rq4gu3c24Q0OY/getUpdates

Keluar data:
{"ok":true,"result":[{"update_id":113528262,
"message":{"message_id":4,"from":{"id":33333333,"is_bot":false,"first_name":"Nazar","last_name":"Yono"},"chat":{"id":-444444,"title":"IP CORE","type":"group","all_members_are_administrators":true},"date":1527608038,"text":"/hi @Huka_Huka_Bot","entities":[{"offset":0,"length":3,"type":"bot_command"},{"offset":4,"length":12,"type":"mention"}]}}]}

>> The result you will get this id of your bot >> -444444

- Send text
https://api.telegram.org/bot574xx411:AAGxxxxxxnGlc7U8OY2Rq4gu3c24Q0OY/sendMessage?chat_id=-444444&text=Tes1


- Delete Bot
Karna membuatnya via https://web.telegram.org/#/im?p=@BotFather maka delete dari sini juga
# /deletebot
# klik @Huka_Huka_Bot
# Yes, I am totally sure.


Related Posts:

0 Response to "Telegram Create BOT"

Posting Komentar