Changeset 3471106
- Timestamp:
- 02/27/2026 01:01:54 PM (5 weeks ago)
- Location:
- notification-for-telegram
- Files:
-
- 2 edited
-
tags/3.5/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
notification-for-telegram/tags/3.5/readme.txt
r3470960 r3471106 43 43 You can learn about obtaining tokens and generating new ones in 44 44 45 [my tutorial post] (https://docs.google.com/document/d/1HCa54OhOm9Vm0Jz2AUjQUHK71djzOUQBDZF-9NH7irU/) 46 47 [this document](https://core.telegram.org/bots#6-botfather/ "Obtaining tokens and generating new ones") 48 or follow the info in [this post](https://medium.com/shibinco/create-a-telegram-bot-using-botfather-and-get-the-api-token-900ba00e0f39 "Create a Telegram bot using BotFather and Get the Api Token") 49 You also need at least one "chatid" number, that is the recipient to the message will be send. To know you personal chatid number, search on telegram app for "@get_id_bot" or 50 [click here ](https://telegram.me/chatIDrobot/ "@chatIDrobot") OR another bot @RawDataBot [click here ](https://t.me/RawDataBot) 45 = Setup Guide = 46 47 A complete step-by-step guide is available here: 48 [View the full documentation](https://docs.google.com/document/d/1HCa54OhOm9Vm0Jz2AUjQUHK71djzOUQBDZF-9NH7irU/edit?tab=t.0) 49 50 51 52 53 To get your Bot Token, you can refer to one of these resources: 54 55 * [Official Telegram documentation](https://core.telegram.org/bots#6-botfather "Obtaining tokens and generating new ones") 56 * [Step-by-step guide on Medium](https://medium.com/shibinco/create-a-telegram-bot-using-botfather-and-get-the-api-token-900ba00e0f39 "Create a Telegram bot using BotFather and Get the API Token") 57 58 To get your Chat ID, you need at least one recipient ID. You can retrieve it using one of these bots directly in Telegram: 59 60 * [@get_id_bot](https://telegram.me/chatIDrobot "@chatIDrobot") — send /start and it will reply with your personal Chat ID 61 * [@RawDataBot](https://t.me/RawDataBot) — send any message and it will return your full account info including your ID 62 63 For Channel and Group Chatid settings see the [FAQ section](#faq). 51 64 52 65 … … 242 255 == Frequently Asked Questions == 243 256 244 = How to obtain Token? = 245 246 When You create a telegram bot you will get a Token. 247 BotFather @botfather is the one bot to rule them all. It will help you create new bots and change settings for existing ones. 248 249 search for @botfather 250 251 Creating a new bot 252 Use the /newbot command to create a new bot. The BotFather will ask you for a name and username, then generate an authorization token for your new bot. 253 254 The name of your bot is displayed in contact details and elsewhere. 255 256 The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', e.g. 'tetris_bot' or 'TetrisBot'. 257 258 The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot. 259 260 Generating an authorization token. 261 If your existing token is compromised or you lost it for some reason, use the /token command to generate a new one. 262 263 264 265 = How to obtain the chat_id of a private Telegram channel? = 266 267 The easiest way is to invite @get_id_bot in your chat and then type: 268 269 /my_id @get_id_bot 270 271 272 or search in telegram @RawDataBot -> https://t.me/RawDataBot write something and the bot 273 will reply your account info with the id . 257 = How do I obtain a Telegram Bot Token? = 258 259 When you create a Telegram bot, BotFather generates a unique token for you. BotFather (@botfather) is the official Telegram bot for creating and managing bots — search for it directly inside Telegram. 260 261 **Creating a new bot** 262 263 1. Open Telegram and search for @botfather. 264 2. Send the command /newbot. 265 3. BotFather will ask you for two things: 266 - Name — the display name shown in contact details and conversations (e.g. "My Awesome Bot"). 267 - Username — a short unique handle used in mentions and t.me links (e.g. @my_awesome_bot). Usernames must be 5–32 characters long, can only contain Latin letters, numbers and underscores, and must end in "bot". 268 4. Once created, BotFather will provide your authorization token. 269 270 **What does a token look like?** 271 272 A token is a string in this format: 273 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw 274 275 This token is required to authorize your bot and send requests to the Telegram Bot API. Keep it private — anyone who has it can take full control of your bot. 276 277 **What if I lose my token or it gets compromised?** 278 279 Send the /token command to @botfather, select your bot, and it will generate a new token. The old one will be immediately invalidated. 280 281 282 283 = How do I find my personal Telegram Chat ID? = 284 285 There are two quick ways: 286 287 1. Search for @userinfobot or @get_id_bot on Telegram, send /start and the bot will instantly reply with your numeric user ID (e.g. 29627823). 288 2. Search for @RawDataBot (https://t.me/RawDataBot), send any message, and it will reply with your full account info including your ID. 289 290 = How do I find the Chat ID of a group? = 291 292 1. Add your bot to the group as a member. 293 2. Send any message in the group (or type /start@yourbotname). 294 3. Open the following URL in your browser, replacing <TOKEN> with your bot token: 295 https://api.telegram.org/bot<TOKEN>/getUpdates 296 4. Look for the "chat" object in the JSON response — the "id" field is your group Chat ID. Group IDs are always negative numbers (e.g. -1001234567890). 297 298 Note: if the result is empty, make sure you sent a message after adding the bot, then refresh the URL. 299 300 = How do I find the Chat ID of a channel? = 301 302 1. Add your bot to the channel and assign it Administrator privileges. 303 2. Post any message in the channel. 304 3. Open the following URL in your browser: 305 https://api.telegram.org/bot<TOKEN>/getUpdates 306 4. Find the "chat" object in the JSON — the "id" is your channel Chat ID. Channel IDs always start with -100 (e.g. -1009876543210). 307 308 = Is there a universal method that works for users, groups and channels? = 309 310 Yes. Add @RawDataBot (https://t.me/RawDataBot) to your group or channel (as admin), or simply message it privately. Send any message and it will reply with a full JSON breakdown of the chat, including the exact Chat ID you need. 311 312 = My getUpdates response is empty — what should I do? = 313 314 This usually means no messages have been sent to the bot recently. Try the following: 315 1. Make sure the bot has been added to the chat. 316 2. Send a new message in the chat (or write directly to the bot in a private conversation). 317 3. Reload the getUpdates URL in your browser. 318 If the response is still empty, check that no other application is consuming the bot updates (e.g. a webhook that is already set — in that case you need to delete it first via /deleteWebhook). 274 319 275 320 = Can i insert more than one recipient chatid? = … … 362 407 9. Hook Position in Login Notification 363 408 409 364 410 == Changelog == 365 411 = 3.5 = -
notification-for-telegram/trunk/readme.txt
r3470960 r3471106 43 43 You can learn about obtaining tokens and generating new ones in 44 44 45 [my tutorial post] (https://docs.google.com/document/d/1HCa54OhOm9Vm0Jz2AUjQUHK71djzOUQBDZF-9NH7irU/) 46 47 [this document](https://core.telegram.org/bots#6-botfather/ "Obtaining tokens and generating new ones") 48 or follow the info in [this post](https://medium.com/shibinco/create-a-telegram-bot-using-botfather-and-get-the-api-token-900ba00e0f39 "Create a Telegram bot using BotFather and Get the Api Token") 49 You also need at least one "chatid" number, that is the recipient to the message will be send. To know you personal chatid number, search on telegram app for "@get_id_bot" or 50 [click here ](https://telegram.me/chatIDrobot/ "@chatIDrobot") OR another bot @RawDataBot [click here ](https://t.me/RawDataBot) 45 = Setup Guide = 46 47 A complete step-by-step guide is available here: 48 [View the full documentation](https://docs.google.com/document/d/1HCa54OhOm9Vm0Jz2AUjQUHK71djzOUQBDZF-9NH7irU/edit?tab=t.0) 49 50 51 52 53 To get your Bot Token, you can refer to one of these resources: 54 55 * [Official Telegram documentation](https://core.telegram.org/bots#6-botfather "Obtaining tokens and generating new ones") 56 * [Step-by-step guide on Medium](https://medium.com/shibinco/create-a-telegram-bot-using-botfather-and-get-the-api-token-900ba00e0f39 "Create a Telegram bot using BotFather and Get the API Token") 57 58 To get your Chat ID, you need at least one recipient ID. You can retrieve it using one of these bots directly in Telegram: 59 60 * [@get_id_bot](https://telegram.me/chatIDrobot "@chatIDrobot") — send /start and it will reply with your personal Chat ID 61 * [@RawDataBot](https://t.me/RawDataBot) — send any message and it will return your full account info including your ID 62 63 For Channel and Group Chatid settings see the [FAQ section](#faq). 51 64 52 65 … … 242 255 == Frequently Asked Questions == 243 256 244 = How to obtain Token? = 245 246 When You create a telegram bot you will get a Token. 247 BotFather @botfather is the one bot to rule them all. It will help you create new bots and change settings for existing ones. 248 249 search for @botfather 250 251 Creating a new bot 252 Use the /newbot command to create a new bot. The BotFather will ask you for a name and username, then generate an authorization token for your new bot. 253 254 The name of your bot is displayed in contact details and elsewhere. 255 256 The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', e.g. 'tetris_bot' or 'TetrisBot'. 257 258 The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot. 259 260 Generating an authorization token. 261 If your existing token is compromised or you lost it for some reason, use the /token command to generate a new one. 262 263 264 265 = How to obtain the chat_id of a private Telegram channel? = 266 267 The easiest way is to invite @get_id_bot in your chat and then type: 268 269 /my_id @get_id_bot 270 271 272 or search in telegram @RawDataBot -> https://t.me/RawDataBot write something and the bot 273 will reply your account info with the id . 257 = How do I obtain a Telegram Bot Token? = 258 259 When you create a Telegram bot, BotFather generates a unique token for you. BotFather (@botfather) is the official Telegram bot for creating and managing bots — search for it directly inside Telegram. 260 261 **Creating a new bot** 262 263 1. Open Telegram and search for @botfather. 264 2. Send the command /newbot. 265 3. BotFather will ask you for two things: 266 - Name — the display name shown in contact details and conversations (e.g. "My Awesome Bot"). 267 - Username — a short unique handle used in mentions and t.me links (e.g. @my_awesome_bot). Usernames must be 5–32 characters long, can only contain Latin letters, numbers and underscores, and must end in "bot". 268 4. Once created, BotFather will provide your authorization token. 269 270 **What does a token look like?** 271 272 A token is a string in this format: 273 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw 274 275 This token is required to authorize your bot and send requests to the Telegram Bot API. Keep it private — anyone who has it can take full control of your bot. 276 277 **What if I lose my token or it gets compromised?** 278 279 Send the /token command to @botfather, select your bot, and it will generate a new token. The old one will be immediately invalidated. 280 281 282 283 = How do I find my personal Telegram Chat ID? = 284 285 There are two quick ways: 286 287 1. Search for @userinfobot or @get_id_bot on Telegram, send /start and the bot will instantly reply with your numeric user ID (e.g. 29627823). 288 2. Search for @RawDataBot (https://t.me/RawDataBot), send any message, and it will reply with your full account info including your ID. 289 290 = How do I find the Chat ID of a group? = 291 292 1. Add your bot to the group as a member. 293 2. Send any message in the group (or type /start@yourbotname). 294 3. Open the following URL in your browser, replacing <TOKEN> with your bot token: 295 https://api.telegram.org/bot<TOKEN>/getUpdates 296 4. Look for the "chat" object in the JSON response — the "id" field is your group Chat ID. Group IDs are always negative numbers (e.g. -1001234567890). 297 298 Note: if the result is empty, make sure you sent a message after adding the bot, then refresh the URL. 299 300 = How do I find the Chat ID of a channel? = 301 302 1. Add your bot to the channel and assign it Administrator privileges. 303 2. Post any message in the channel. 304 3. Open the following URL in your browser: 305 https://api.telegram.org/bot<TOKEN>/getUpdates 306 4. Find the "chat" object in the JSON — the "id" is your channel Chat ID. Channel IDs always start with -100 (e.g. -1009876543210). 307 308 = Is there a universal method that works for users, groups and channels? = 309 310 Yes. Add @RawDataBot (https://t.me/RawDataBot) to your group or channel (as admin), or simply message it privately. Send any message and it will reply with a full JSON breakdown of the chat, including the exact Chat ID you need. 311 312 = My getUpdates response is empty — what should I do? = 313 314 This usually means no messages have been sent to the bot recently. Try the following: 315 1. Make sure the bot has been added to the chat. 316 2. Send a new message in the chat (or write directly to the bot in a private conversation). 317 3. Reload the getUpdates URL in your browser. 318 If the response is still empty, check that no other application is consuming the bot updates (e.g. a webhook that is already set — in that case you need to delete it first via /deleteWebhook). 274 319 275 320 = Can i insert more than one recipient chatid? = … … 362 407 9. Hook Position in Login Notification 363 408 409 364 410 == Changelog == 365 411 = 3.5 =
Note: See TracChangeset
for help on using the changeset viewer.