yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.13k stars 1.49k forks source link

How to get GroupID (how use switch_inline_query to get groupID)? #1153

Open ihor-zinchenko opened 7 months ago

ihor-zinchenko commented 7 months ago

Question

Hello! I need to get group id from callback_query The main idea: User add bot to some group. From bot user should have possibility to send messages to this group. Basically i need some dependency with user and group to allow user send messages to this group. My idea is use switch_inline_query from bot to link some group but how i can get groupID for this user?