Telegram | Hướng dẫn tạo bot và đẩy vào channel

Nguyễn Quang Minh

Author
2 min read
150 views

Bước 1: Search BotFather trên telegram

Bước 2: Nhập /newbot

Bước 3: Nhập 1 tên cho bot

Bước 4: Nhập username cho bot

=> Hiện các thông tin của bot dạng

Done! Congratulations on your new bot. You will find it at t.me/no1_lottery_notify_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:

1231321321:AAFdkzfds-HhJkkjbkfdsafnsfdsaf

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

Lấy token và search theo:

https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates

=> Id của bot, id của các channel bot thêm vào

=> Setup gửi tin nhắn từ bot

{

  "ok": true,

  "result": [

    {

      "update_id": 123456789,

      "message": {

        "message_id": 1,

        "from": {

          "id": 987654321,

          "is_bot": false,

          "first_name": "Minh"

        },

        "chat": {

          "id": -1001234567890,

          "title": "My Channel",

          "type": "supergroup"

        },

        "date": 1724324234,

        "text": "hello bot"

      }

    }

  ]

}

Nguyễn Quang Minh

Tech Writer

Passionate developer and writer sharing insights about technology, programming, and digital innovation. Follow for more content about web development and tech trends.

1.2K followers
Ôn tập là dễ

Ôn tập là dễ

Nền tảng thi trắc nghiệm số 1 Việt Nam giúp bạn tạo, quản lý và chia sẻ bộ đề một cách nhanh chóng và dễ dàng.

© 2025 Ôn tập là dễ. Tất cả các quyền được bảo lưu.

    🔥 Mua sắm ngay trên Shopee!
    Giúp mình duy trì trang web! 🎉