Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for querying chat members #64

Closed
pietroalbini opened this issue May 24, 2016 · 0 comments
Closed

Add support for querying chat members #64

pietroalbini opened this issue May 24, 2016 · 0 comments

Comments

@pietroalbini
Copy link
Contributor

pietroalbini commented May 24, 2016

The Bot API 2.1 update added support for getting information about members of group chats. All of those things should be implemented.

>>> chat.admins
[<User "@pietroalbini">, <User "@nobody">]
>>> chat.creator
<User "@pietroalbini">
>>> chat.members_count
10
>>> chat.status_of(123456)
"kicked"
@pietroalbini pietroalbini added this to the botogram 0.3 milestone May 24, 2016
pietroalbini pushed a commit that referenced this issue May 31, 2016
This new attribute returns the list of the administrators of the group
chat, fetching it from a new API introduced by the Bot API 2.1 update.

Issue: GH-64
pietroalbini pushed a commit that referenced this issue May 31, 2016
This new attribute returns the original creator of the group chat,
fetching it from a new API introduced in the Bot API 2.1 update.

Issue: GH-64
pietroalbini pushed a commit that referenced this issue May 31, 2016
This new attribute returns the number of members in a chat. This works
for all kinds of chats (private, groups/supergroups and channels).
This is possible thanks to a new API introduced in the Bot API 2.1
update.

Issue: GH-64
pietroalbini pushed a commit that referenced this issue May 31, 2016
This new method returns the current status of an user in a group chat.
List of possible status is available in the documentation. Support for
this was introduced in the Bot API 2.1 update.

Issue: GH-64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant