Closed devghb closed 1 year ago
The link generated by createChatInviteLink ,not chat invite_link
// Chat contains information about the place a message was sent.
type Chat struct {
ID int64 json:"id"
Type string json:"type"
Title string json:"title"
// optional
UserName string json:"username"
// optional
FirstName string json:"first_name"
// optional
LastName string json:"last_name"
// optional
AllMembersAreAdmins bool json:"all_members_are_administrators"
// optional
Photo *ChatPhoto json:"photo"
Description string json:"description,omitempty"
// optional
InviteLink string json:"invite_link,omitempty"
// optional
}
The count of the invites is doing in the telegram back end side and is not return in the Telegram Bot API.
Example case:
* 1 User enter with this link limit to 2 user (1/2) * Other user enter with this link (now 0/2 users can enter) * One of this users that joins with your limit invite link exit the group (Now the link allow to 1 user to enter, because the count change from 0/2 to 1/2)
The best is create a link also with expiration time or revoke it when the user is join
How to count the number of invitees with robot
The count of the invites is doing in the telegram back end side and is not return in the Telegram Bot API. Example case:
* 1 User enter with this link limit to 2 user (1/2) * Other user enter with this link (now 0/2 users can enter) * One of this users that joins with your limit invite link exit the group (Now the link allow to 1 user to enter, because the count change from 0/2 to 1/2)
The best is create a link also with expiration time or revoke it when the user is join
How to count the number of invitees with robot
At less you use a db for store it, can be complex to know
The count of the invites is doing in the telegram back end side and is not return in the Telegram Bot API.
Example case:
The best is create a link also with expiration time or revoke it when the user is join