Hướng dẫn tạo telegram bot - Phần 1 tạo bot từ bot father

Hướng dẫn tạo telegram bot - Phần 1 tạo bot từ bot father. Bot Father hay còn gọi là ông bố của những con bot trên telegram. Bot Father của telegram có thể tạo bot, xóa bot, chỉnh sửa các thông tin của bot như mô tả, tên bot ....




Bước 1: chúng ta tìm Bot Father trên telegram bằng username: @BotFather

Bước 2: Gõ lệnh /newbot vào khung chat của BotFather để tạo mới bot

Bước 3: Nhập tên của bot (có thể thay đổi sau này)

Bước 4: Nhập username của bot có kế thúc là bot nhé
Good. Now let's choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.

 Bước 5: Sau khi tạo UserName cho bot xong bạn sẽ nhận được 1 tin nhắn báo đã tạo bot thành công và chứa TOKEN

Done! Congratulations on your new bot. You will find it at t.me/sci_download_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:

5020001000:A_____qba6h6G1Wcr______Jk2juiwNj_ss

Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

Sử dụng TOKEN vừa nhận được để dùng cho việc code bot sau này nhé. Phần 2 mình sẽ hướng dẫn tạo bot trên python.

Phần 2 tạo một telegram bot đơn giản bằng python: Hướng dẫn tạo telegram bot - Phần 2 tạo bot bằng python (moinhat123.blogspot.com)

Post a Comment

Previous Post Next Post

Labels Max-Results No.

Boxed(True/False)