editChatInviteLink method

Future<ChatInviteLink> editChatInviteLink(
  1. ChatID chatId,
  2. String inviteLink, {
  3. String? name,
  4. int? expireDate,
  5. int? memberLimit,
  6. String? createsJoinRequest,
})
inherited

Use this method to edit a non-primary invite link created by the bot.

The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

Returns the edited invite link as a ChatInviteLink object.

Implementation

Future<ChatInviteLink> editChatInviteLink(
  ChatID chatId,
  String inviteLink, {
  String? name,
  int? expireDate,
  int? memberLimit,
  String? createsJoinRequest,
}) {
  return _client.apiCall(_token, 'editChatInviteLink', {
    'chat_id': chatId,
    'invite_link': inviteLink,
    'name': name,
    'expire_date': expireDate,
    'member_limit': memberLimit,
    'creates_join_request': createsJoinRequest,
  });
}