Is there a way to pin a telegram message using a b...
# 🤝help
k
Basically, I want to pin the instructions that the bot sends in the first message to the chat.
Also noticed telegram provide some info here (https://stackoverflow.com/questions/62108957/telegram-bot-pin-a-message-automatically) but I don't know how to find the chat id and would need some programmtic way to retrieve it to make it scalable
c
great idea , you probably need to capture the first message in a variable than send this directly to Telegram using a webhook. How the API gets processed trough Telegram I do not know
k
How do I find the chat id? Since the bot is managed by botpress, i need someway to access the chat id through you
c
tried this ?

https://cdn.discordapp.com/attachments/1141721420196483103/1141744544812105818/IMG_6124.png

k
Yessir, but the chat.id is only accessible via botpress since botpress manages the telegram bot. Someone suggested event.threadID unless you know differently?
2 Views