- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Telegram Alert Action: Where do you get a "chat id"?

Hi
I found the BotFather to create a bot in telegram. But how do I get a chat id?
BR
Henning
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having the same problem but I don't know how to get chat id of a channel. Anyone can help me?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Howdy! I wanted to follow up on this. Here is the process:
- Add the Telegram BOT to a group or send a message to your BOT.
Send a Message to the group.
Get the list of updates for your BOT:
Look for the "chat" object:
{"update_id":8393,"message":{"message_id":3,"from":{"id":7474,"first_name":"AAA"},"chat":{"id":,"title":""},"date":25497,"new_chat_participant":{"id":71,"first_name":"NAME","username":"YOUR_BOT_NAME"}}}
This is a sample of the response when you add your BOT into a group.Use the "id" of the "chat" object to send your messages.
Personally, I use Channels instead of chat groups, I tend to like it more.
Would it have been more helpful if this information had been included in the README or some sort of support documentation? I think I just referenced the Telegram documentation, however if it'd be more helpful to include topics like this, kind of like a "hot shot" topic list, then I can add it.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here is how to get the Chat ID
Step 1. Enter the following command on your browser. Use your Bot Token (it's the long token)
https://api.telegram.org/bot<yourtoken>/getUpdates
Step 2. Look at the result. You should see your chat id
If you cannot see your chat id, remove your bot from the chat and add it back. Resend the command and you will see the chat id. Take note that the chat id includes the minus sign.
For completeness, this is what you should do to get a Bot Id.
1. Add BotFather as your contact in Telegram
2. Chat with BotFather and request a new bot by running
/newbot
You should get a long token. This is your Bot Id.
3. Create a group chat in Telegram and your bot into the group.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi!
Can you provide a little context as to what you already have in Splunk and what you don't, how you are accessing the information (API directly, API calls generating files that you ingest or whatever) and perhaps what you have access to using that method?
Thanks,
Rich
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I am using the telegram integration from splunkbase. The UI asks for a Bot ID and a Chat ID. I got the Bot ID, but I don't know where I get the chat ID.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Can you show how look likes Bot ID, I have Chat ID, but I couldn't find Bot ID and for send from alert to Telegram should I provide Splunk server with Internet?
Thank you so much!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Your Bot ID is provided by the "Bot Father" when you create your bot in Telegram. The Telegram documentation goes pretty well into how to do it:
