Get chat info, leave chat
You can get chat info: chat member count, chat info, chat admins, chat member and other
Get chat info
To get chat info, use .getChat
answer/api method
Returns IChat on success
Get chat admins
To get chat administrators, use .getChatAdmins
answer/api method
Returns array of ChatMember on success
Get chat member count
To get chat member count, use .getChatMemberCount
answer/api method
Returns number on success
Get chat member
To get chat member, use .getChatMember
answer/api method
.getChatMember answer method take arguments:
Argument
Description
Required
1
User id you want to get
Optional. Current user id by default
2
Chat id you want to get member to
Optional. Current chat id by default
Returns ChatMember on success
Leave chat
You can leave chat using Leave class-method or .leave
answer/api method
app.controller.ts
Last updated