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:

BGP Full Router dan Default Route

Next..

Full route adalah metode router distribusi meneruskan prefix yang diterima dari upstream kepada downstreamnya dengan filter out ke downstreamnya permit

Default route adalah metode router distribusi hanya memberikan prefix 0.0.0.0 kepada downstreamnya dengan filter out ke downstreamnya deny biasanya disebut dengan default origin

Contoh Default Route
==> default-originate
==> filter out deny
# sh run
 neighbor 103.23.34.74 remote-as 8888
 neighbor 103.23.34.74 description VENUS
 neighbor 103.23.34.74 weight 1500
 neighbor 103.23.34.74 route-reflector-client
 neighbor 103.23.34.74 default-originate
 neighbor 103.23.34.74 soft-reconfiguration inbound
 neighbor 103.23.34.74 filter-list VENUS-IN in
 neighbor 103.23.34.74 filter-list VENUS-OUT out
# sh ip as-path-access-list VENUS-OUT                                      
AS path access list VENUS-OUT
    deny .*
Contoh Full Route
==> 
 neighbor 103.23.34.78 remote-as 8888
 neighbor 103.23.34.78 description IBGP WERKUDORO-DPS-VIA-HYPER
 neighbor 103.23.34.78 weight 1500
 neighbor 103.23.34.78 route-reflector-client
 neighbor 103.23.34.78 soft-reconfiguration inbound
 neighbor 103.23.34.78 prefix-list WERKUDORO in
 neighbor 103.23.34.78 filter-list WERKUDORO-IN in
 neighbor 103.23.34.78 filter-list WERKUDORO-OUT out


router bgp 8888
no neighbor 103.23.34.76 default-originate
exit
no ip as-path-access-list  MERCURIUS-OUT deny .*
ip as-path-access-list MERCURIUS-OUT permit .*
clear ip bgp 103.23.34.76 soft in

router bgp 8888
no neighbor 103.23.34.80 default-originate
exit
no ip as-path access-list BUMI-OUT deny .*
ip as-path access-list BUMI-OUT permit .*
clear ip bgp 103.23.34.80 soft in

router bgp 8888
no neighbor 103.23.34.93 default-originate
exit
no ip as-path access-list NEPTUNUS-OUT deny .*
ip as-path access-list NEPTUNUS-OUT permit .*
clear ip bgp 103.23.34.93 soft in



Related Posts:

BGP IPv6 Peer

Next


clear bgp ipv6 neighbor
# clear bgp ipv6 2401:2400:10:9::2




Related Posts: