TelegramBot.exportChatInviteLink

Generate a new invite link for a chat

Any previously generated link is revoked

  1. string exportChatInviteLink(T chat_id)
    struct TelegramBot
    @trusted
    string
    exportChatInviteLink
    (
    T
    )
  2. string exportChatInviteLink(ExportChatInviteLinkMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Return Value

Type: string

invite link

Throws

TelegramBotException on errors

See Also

Meta