Skip to main content
Answer

How can I get the chat_id of a telegram user, who started a conversation with my bot

  • September 24, 2024
  • 1 reply
  • 445 views

lucas

I created a Telegram bot, linked to my inboxes, and I’m developping a custom integration to send advanced Telegram messages, how can I get the chat_id of this conversation (Telegram-one), so my integrated plugin can retreive it on the current/opened conversation?

I managed to get the @username, I have my Telegram bot tokens, but no way to get the chat_id.

Best answer by raymond_ching

Hi Lucas,

We don’t currently have a way to retrieve the chat_id of a Telegram message within Front, but this should be possible using Telegram’s API, which you can then integrate within your plugin in Front. I’d suggest checking out their API documentation  and seeing what might be possible from there!

1 reply

Forum|alt.badge.img+5
  • Fronteer
  • Answer
  • September 24, 2024

Hi Lucas,

We don’t currently have a way to retrieve the chat_id of a Telegram message within Front, but this should be possible using Telegram’s API, which you can then integrate within your plugin in Front. I’d suggest checking out their API documentation  and seeing what might be possible from there!