go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.7k stars 879 forks source link

How to get all current users in a group? #523

Closed MexHigh closed 2 years ago

MexHigh commented 2 years ago

I know that there is a field for NewChatMembers for the Message struct, but how to I get all current members of the group, e.g. when adding the Bot afterwards?

temamagic commented 2 years ago

Hi, @MexHigh ! Bot API doesn't have such a method to get all users in a chat, so you can't with this lib.

FYI, tdlib can, but it uses telegram client api, not botapi

MexHigh commented 2 years ago

Ok thank you for the hint :)