// Code generated by gotdgen, DO NOT EDIT.

package tg

import (
	
	
	
	
	

	

	
	
	
	
)

// No-op definition for keeping imports.
var (
	_ = bin.Buffer{}
	_ = context.Background()
	_ = fmt.Stringer(nil)
	_ = strings.Builder{}
	_ = errors.Is
	_ = multierr.AppendInto
	_ = sort.Ints
	_ = tdp.Format
	_ = tgerr.Error{}
	_ = tdjson.Encoder{}
)

// Telegram API error types.
const (
	Err2FAConfirmWait                   = "2FA_CONFIRM_WAIT"
	ErrAboutTooLong                     = "ABOUT_TOO_LONG"
	ErrAccessDenied                     = "ACCESS_DENIED"
	ErrAccessTokenExpired               = "ACCESS_TOKEN_EXPIRED"
	ErrAccessTokenInvalid               = "ACCESS_TOKEN_INVALID"
	ErrAddressInvalid                   = "ADDRESS_INVALID"
	ErrAdminsTooMuch                    = "ADMINS_TOO_MUCH"
	ErrAdminIDInvalid                   = "ADMIN_ID_INVALID"
	ErrAdminRankEmojiNotAllowed         = "ADMIN_RANK_EMOJI_NOT_ALLOWED"
	ErrAdminRankInvalid                 = "ADMIN_RANK_INVALID"
	ErrAdminRightsEmpty                 = "ADMIN_RIGHTS_EMPTY"
	ErrAlbumPhotosTooMany               = "ALBUM_PHOTOS_TOO_MANY"
	ErrAllowPaymentRequired             = "ALLOW_PAYMENT_REQUIRED"
	ErrAnonymousReactionsDisabled       = "ANONYMOUS_REACTIONS_DISABLED"
	ErrAPIGiftRestrictedUpdateApp       = "API_GIFT_RESTRICTED_UPDATE_APP"
	ErrAPIIDInvalid                     = "API_ID_INVALID"
	ErrAPIIDPublishedFlood              = "API_ID_PUBLISHED_FLOOD"
	ErrArticleTitleEmpty                = "ARTICLE_TITLE_EMPTY"
	ErrAudioContentURLEmpty             = "AUDIO_CONTENT_URL_EMPTY"
	ErrAudioTitleEmpty                  = "AUDIO_TITLE_EMPTY"
	ErrAuthBytesInvalid                 = "AUTH_BYTES_INVALID"
	ErrAuthKeyUnsynchronized            = "AUTH_KEY_UNSYNCHRONIZED"
	ErrAuthRestart                      = "AUTH_RESTART"
	ErrAuthTokenAlreadyAccepted         = "AUTH_TOKEN_ALREADY_ACCEPTED"
	ErrAuthTokenException               = "AUTH_TOKEN_EXCEPTION"
	ErrAuthTokenExpired                 = "AUTH_TOKEN_EXPIRED"
	ErrAuthTokenInvalid                 = "AUTH_TOKEN_INVALID"
	ErrAuthTokenInvalidx                = "AUTH_TOKEN_INVALIDX"
	ErrAutoarchiveNotAvailable          = "AUTOARCHIVE_NOT_AVAILABLE"
	ErrBalanceTooLow                    = "BALANCE_TOO_LOW"
	ErrBankCardNumberInvalid            = "BANK_CARD_NUMBER_INVALID"
	ErrBannedRightsInvalid              = "BANNED_RIGHTS_INVALID"
	ErrBirthdayInvalid                  = "BIRTHDAY_INVALID"
	ErrBoostsEmpty                      = "BOOSTS_EMPTY"
	ErrBoostsRequired                   = "BOOSTS_REQUIRED"
	ErrBoostPeerInvalid                 = "BOOST_PEER_INVALID"
	ErrBotsTooMuch                      = "BOTS_TOO_MUCH"
	ErrBotAccessForbidden               = "BOT_ACCESS_FORBIDDEN"
	ErrBotAlreadyDisabled               = "BOT_ALREADY_DISABLED"
	ErrBotAppBotInvalid                 = "BOT_APP_BOT_INVALID"
	ErrBotAppInvalid                    = "BOT_APP_INVALID"
	ErrBotAppShortnameInvalid           = "BOT_APP_SHORTNAME_INVALID"
	ErrBotBusinessMissing               = "BOT_BUSINESS_MISSING"
	ErrBotChannelsNa                    = "BOT_CHANNELS_NA"
	ErrBotCommandDescriptionInvalid     = "BOT_COMMAND_DESCRIPTION_INVALID"
	ErrBotCommandInvalid                = "BOT_COMMAND_INVALID"
	ErrBotDomainInvalid                 = "BOT_DOMAIN_INVALID"
	ErrBotFallbackUnsupported           = "BOT_FALLBACK_UNSUPPORTED"
	ErrBotGamesDisabled                 = "BOT_GAMES_DISABLED"
	ErrBotGroupsBlocked                 = "BOT_GROUPS_BLOCKED"
	ErrBotInlineDisabled                = "BOT_INLINE_DISABLED"
	ErrBotInvalid                       = "BOT_INVALID"
	ErrBotInvoiceInvalid                = "BOT_INVOICE_INVALID"
	ErrBotNotConnectedYet               = "BOT_NOT_CONNECTED_YET"
	ErrBotOnesideNotAvail               = "BOT_ONESIDE_NOT_AVAIL"
	ErrBotPaymentsDisabled              = "BOT_PAYMENTS_DISABLED"
	ErrBotResponseTimeout               = "BOT_RESPONSE_TIMEOUT"
	ErrBotScoreNotModified              = "BOT_SCORE_NOT_MODIFIED"
	ErrBotVerifierForbidden             = "BOT_VERIFIER_FORBIDDEN"
	ErrBotWebviewDisabled               = "BOT_WEBVIEW_DISABLED"
	ErrBroadcastForbidden               = "BROADCAST_FORBIDDEN"
	ErrBroadcastIDInvalid               = "BROADCAST_ID_INVALID"
	ErrBroadcastPublicVotersForbidden   = "BROADCAST_PUBLIC_VOTERS_FORBIDDEN"
	ErrBroadcastRequired                = "BROADCAST_REQUIRED"
	ErrBusinessAddressActive            = "BUSINESS_ADDRESS_ACTIVE"
	ErrBusinessConnectionInvalid        = "BUSINESS_CONNECTION_INVALID"
	ErrBusinessPeerInvalid              = "BUSINESS_PEER_INVALID"
	ErrBusinessPeerUsageMissing         = "BUSINESS_PEER_USAGE_MISSING"
	ErrBusinessRecipientsEmpty          = "BUSINESS_RECIPIENTS_EMPTY"
	ErrBusinessWorkHoursEmpty           = "BUSINESS_WORK_HOURS_EMPTY"
	ErrBusinessWorkHoursPeriodInvalid   = "BUSINESS_WORK_HOURS_PERIOD_INVALID"
	ErrButtonCopyTextInvalid            = "BUTTON_COPY_TEXT_INVALID"
	ErrButtonDataInvalid                = "BUTTON_DATA_INVALID"
	ErrButtonIDInvalid                  = "BUTTON_ID_INVALID"
	ErrButtonInvalid                    = "BUTTON_INVALID"
	ErrButtonPosInvalid                 = "BUTTON_POS_INVALID"
	ErrButtonTextInvalid                = "BUTTON_TEXT_INVALID"
	ErrButtonTypeInvalid                = "BUTTON_TYPE_INVALID"
	ErrButtonURLInvalid                 = "BUTTON_URL_INVALID"
	ErrButtonUserInvalid                = "BUTTON_USER_INVALID"
	ErrButtonUserPrivacyRestricted      = "BUTTON_USER_PRIVACY_RESTRICTED"
	ErrCallAlreadyAccepted              = "CALL_ALREADY_ACCEPTED"
	ErrCallAlreadyDeclined              = "CALL_ALREADY_DECLINED"
	ErrCallOccupyFailed                 = "CALL_OCCUPY_FAILED"
	ErrCallPeerInvalid                  = "CALL_PEER_INVALID"
	ErrCallProtocolCompatLayerInvalid   = "CALL_PROTOCOL_COMPAT_LAYER_INVALID"
	ErrCallProtocolFlagsInvalid         = "CALL_PROTOCOL_FLAGS_INVALID"
	ErrCallProtocolLayerInvalid         = "CALL_PROTOCOL_LAYER_INVALID"
	ErrCDNMethodInvalid                 = "CDN_METHOD_INVALID"
	ErrCDNUploadTimeout                 = "CDN_UPLOAD_TIMEOUT"
	ErrChannelsAdminLocatedTooMuch      = "CHANNELS_ADMIN_LOCATED_TOO_MUCH"
	ErrChannelsAdminPublicTooMuch       = "CHANNELS_ADMIN_PUBLIC_TOO_MUCH"
	ErrChannelsTooMuch                  = "CHANNELS_TOO_MUCH"
	ErrChannelForumMissing              = "CHANNEL_FORUM_MISSING"
	ErrChannelIDInvalid                 = "CHANNEL_ID_INVALID"
	ErrChannelInvalid                   = "CHANNEL_INVALID"
	ErrChannelMonoforumUnsupported      = "CHANNEL_MONOFORUM_UNSUPPORTED"
	ErrChannelParicipantMissing         = "CHANNEL_PARICIPANT_MISSING"
	ErrChannelPrivate                   = "CHANNEL_PRIVATE"
	ErrChannelPublicGroupNa             = "CHANNEL_PUBLIC_GROUP_NA"
	ErrChannelTooBig                    = "CHANNEL_TOO_BIG"
	ErrChannelTooLarge                  = "CHANNEL_TOO_LARGE"
	ErrChargeAlreadyRefunded            = "CHARGE_ALREADY_REFUNDED"
	ErrChargeIDEmpty                    = "CHARGE_ID_EMPTY"
	ErrChargeIDInvalid                  = "CHARGE_ID_INVALID"
	ErrChatlinksTooMuch                 = "CHATLINKS_TOO_MUCH"
	ErrChatlinkSlugEmpty                = "CHATLINK_SLUG_EMPTY"
	ErrChatlinkSlugExpired              = "CHATLINK_SLUG_EXPIRED"
	ErrChatlistsTooMuch                 = "CHATLISTS_TOO_MUCH"
	ErrChatlistExcludeInvalid           = "CHATLIST_EXCLUDE_INVALID"
	ErrChatAboutNotModified             = "CHAT_ABOUT_NOT_MODIFIED"
	ErrChatAboutTooLong                 = "CHAT_ABOUT_TOO_LONG"
	ErrChatActionForbidden              = "CHAT_ACTION_FORBIDDEN"
	ErrChatAdminInviteRequired          = "CHAT_ADMIN_INVITE_REQUIRED"
	ErrChatAdminRequired                = "CHAT_ADMIN_REQUIRED"
	ErrChatDiscussionUnallowed          = "CHAT_DISCUSSION_UNALLOWED"
	ErrChatForwardsRestricted           = "CHAT_FORWARDS_RESTRICTED"
	ErrChatGuestSendForbidden           = "CHAT_GUEST_SEND_FORBIDDEN"
	ErrChatIDEmpty                      = "CHAT_ID_EMPTY"
	ErrChatIDGenerateFailed             = "CHAT_ID_GENERATE_FAILED"
	ErrChatIDInvalid                    = "CHAT_ID_INVALID"
	ErrChatInvalid                      = "CHAT_INVALID"
	ErrChatInvitePermanent              = "CHAT_INVITE_PERMANENT"
	ErrChatLinkExists                   = "CHAT_LINK_EXISTS"
	ErrChatMemberAddFailed              = "CHAT_MEMBER_ADD_FAILED"
	ErrChatNotModified                  = "CHAT_NOT_MODIFIED"
	ErrChatPublicRequired               = "CHAT_PUBLIC_REQUIRED"
	ErrChatRestricted                   = "CHAT_RESTRICTED"
	ErrChatRevokeDateUnsupported        = "CHAT_REVOKE_DATE_UNSUPPORTED"
	ErrChatSendAudiosForbidden          = "CHAT_SEND_AUDIOS_FORBIDDEN"
	ErrChatSendDocsForbidden            = "CHAT_SEND_DOCS_FORBIDDEN"
	ErrChatSendGameForbidden            = "CHAT_SEND_GAME_FORBIDDEN"
	ErrChatSendGifsForbidden            = "CHAT_SEND_GIFS_FORBIDDEN"
	ErrChatSendInlineForbidden          = "CHAT_SEND_INLINE_FORBIDDEN"
	ErrChatSendMediaForbidden           = "CHAT_SEND_MEDIA_FORBIDDEN"
	ErrChatSendPhotosForbidden          = "CHAT_SEND_PHOTOS_FORBIDDEN"
	ErrChatSendPlainForbidden           = "CHAT_SEND_PLAIN_FORBIDDEN"
	ErrChatSendPollForbidden            = "CHAT_SEND_POLL_FORBIDDEN"
	ErrChatSendRoundvideosForbidden     = "CHAT_SEND_ROUNDVIDEOS_FORBIDDEN"
	ErrChatSendStickersForbidden        = "CHAT_SEND_STICKERS_FORBIDDEN"
	ErrChatSendVideosForbidden          = "CHAT_SEND_VIDEOS_FORBIDDEN"
	ErrChatSendVoicesForbidden          = "CHAT_SEND_VOICES_FORBIDDEN"
	ErrChatSendWebpageForbidden         = "CHAT_SEND_WEBPAGE_FORBIDDEN"
	ErrChatTitleEmpty                   = "CHAT_TITLE_EMPTY"
	ErrChatTooBig                       = "CHAT_TOO_BIG"
	ErrChatTypeInvalid                  = "CHAT_TYPE_INVALID"
	ErrChatWriteForbidden               = "CHAT_WRITE_FORBIDDEN"
	ErrCodeEmpty                        = "CODE_EMPTY"
	ErrCodeHashInvalid                  = "CODE_HASH_INVALID"
	ErrCodeInvalid                      = "CODE_INVALID"
	ErrCollectibleInvalid               = "COLLECTIBLE_INVALID"
	ErrCollectibleNotFound              = "COLLECTIBLE_NOT_FOUND"
	ErrCollectionIDInvalid              = "COLLECTION_ID_INVALID"
	ErrColorInvalid                     = "COLOR_INVALID"
	ErrConnectionAPIIDInvalid           = "CONNECTION_API_ID_INVALID"
	ErrConnectionAppVersionEmpty        = "CONNECTION_APP_VERSION_EMPTY"
	ErrConnectionIDInvalid              = "CONNECTION_ID_INVALID"
	ErrConnectionLayerInvalid           = "CONNECTION_LAYER_INVALID"
	ErrContactAddMissing                = "CONTACT_ADD_MISSING"
	ErrContactIDInvalid                 = "CONTACT_ID_INVALID"
	ErrContactMissing                   = "CONTACT_MISSING"
	ErrContactNameEmpty                 = "CONTACT_NAME_EMPTY"
	ErrContactReqMissing                = "CONTACT_REQ_MISSING"
	ErrCreateCallFailed                 = "CREATE_CALL_FAILED"
	ErrCredentialInvalid                = "CREDENTIAL_INVALID"
	ErrCurrencyTotalAmountInvalid       = "CURRENCY_TOTAL_AMOUNT_INVALID"
	ErrCustomReactionsTooMany           = "CUSTOM_REACTIONS_TOO_MANY"
	ErrDataHashSizeInvalid              = "DATA_HASH_SIZE_INVALID"
	ErrDataInvalid                      = "DATA_INVALID"
	ErrDataJSONInvalid                  = "DATA_JSON_INVALID"
	ErrDataTooLong                      = "DATA_TOO_LONG"
	ErrDateEmpty                        = "DATE_EMPTY"
	ErrDCIDInvalid                      = "DC_ID_INVALID"
	ErrDhGAInvalid                      = "DH_G_A_INVALID"
	ErrDocumentInvalid                  = "DOCUMENT_INVALID"
	ErrEditBotInviteForbidden           = "EDIT_BOT_INVITE_FORBIDDEN"
	ErrEffectChatInvalid                = "EFFECT_CHAT_INVALID"
	ErrEffectIDInvalid                  = "EFFECT_ID_INVALID"
	ErrEmailHashExpired                 = "EMAIL_HASH_EXPIRED"
	ErrEmailInstallMissing              = "EMAIL_INSTALL_MISSING"
	ErrEmailInvalid                     = "EMAIL_INVALID"
	ErrEmailNotAllowed                  = "EMAIL_NOT_ALLOWED"
	ErrEmailNotSetup                    = "EMAIL_NOT_SETUP"
	ErrEmailUnconfirmed                 = "EMAIL_UNCONFIRMED"
	ErrEmailVerifyExpired               = "EMAIL_VERIFY_EXPIRED"
	ErrEmojiInvalid                     = "EMOJI_INVALID"
	ErrEmojiMarkupInvalid               = "EMOJI_MARKUP_INVALID"
	ErrEmojiNotModified                 = "EMOJI_NOT_MODIFIED"
	ErrEmoticonEmpty                    = "EMOTICON_EMPTY"
	ErrEmoticonInvalid                  = "EMOTICON_INVALID"
	ErrEmoticonStickerpackMissing       = "EMOTICON_STICKERPACK_MISSING"
	ErrEncryptedMessageInvalid          = "ENCRYPTED_MESSAGE_INVALID"
	ErrEncryptionAlreadyAccepted        = "ENCRYPTION_ALREADY_ACCEPTED"
	ErrEncryptionAlreadyDeclined        = "ENCRYPTION_ALREADY_DECLINED"
	ErrEncryptionDeclined               = "ENCRYPTION_DECLINED"
	ErrEncryptionDeclineAdminFailed     = "ENCRYPTION_DECLINE_ADMIN_FAILED"
	ErrEncryptionIDInvalid              = "ENCRYPTION_ID_INVALID"
	ErrEntitiesTooLong                  = "ENTITIES_TOO_LONG"
	ErrEntityBoundsInvalid              = "ENTITY_BOUNDS_INVALID"
	ErrEntityMentionUserInvalid         = "ENTITY_MENTION_USER_INVALID"
	ErrErrorTextEmpty                   = "ERROR_TEXT_EMPTY"
	ErrExpiresAtInvalid                 = "EXPIRES_AT_INVALID"
	ErrExpireDateInvalid                = "EXPIRE_DATE_INVALID"
	ErrExtendedMediaAmountInvalid       = "EXTENDED_MEDIA_AMOUNT_INVALID"
	ErrExtendedMediaEmpty               = "EXTENDED_MEDIA_EMPTY"
	ErrExtendedMediaInvalid             = "EXTENDED_MEDIA_INVALID"
	ErrExternalURLInvalid               = "EXTERNAL_URL_INVALID"
	ErrFilerefUpgradeNeeded             = "FILEREF_UPGRADE_NEEDED"
	ErrFileContentTypeInvalid           = "FILE_CONTENT_TYPE_INVALID"
	ErrFileEmtpy                        = "FILE_EMTPY"
	ErrFileIDInvalid                    = "FILE_ID_INVALID"
	ErrFilePartsInvalid                 = "FILE_PARTS_INVALID"
	ErrFilePartEmpty                    = "FILE_PART_EMPTY"
	ErrFilePartInvalid                  = "FILE_PART_INVALID"
	ErrFilePartLengthInvalid            = "FILE_PART_LENGTH_INVALID"
	ErrFilePartSizeChanged              = "FILE_PART_SIZE_CHANGED"
	ErrFilePartSizeInvalid              = "FILE_PART_SIZE_INVALID"
	ErrFilePartTooBig                   = "FILE_PART_TOO_BIG"
	ErrFilePartTooSmall                 = "FILE_PART_TOO_SMALL"
	ErrFileReferenceEmpty               = "FILE_REFERENCE_EMPTY"
	ErrFileReferenceExpired             = "FILE_REFERENCE_EXPIRED"
	ErrFileReferenceInvalid             = "FILE_REFERENCE_INVALID"
	ErrFileTitleEmpty                   = "FILE_TITLE_EMPTY"
	ErrFileTokenInvalid                 = "FILE_TOKEN_INVALID"
	ErrFilterIDInvalid                  = "FILTER_ID_INVALID"
	ErrFilterIncludeEmpty               = "FILTER_INCLUDE_EMPTY"
	ErrFilterNotSupported               = "FILTER_NOT_SUPPORTED"
	ErrFilterTitleEmpty                 = "FILTER_TITLE_EMPTY"
	ErrFirstnameInvalid                 = "FIRSTNAME_INVALID"
	ErrFloodPremiumWait                 = "FLOOD_PREMIUM_WAIT"
	ErrFolderIDInvalid                  = "FOLDER_ID_INVALID"
	ErrFormExpired                      = "FORM_EXPIRED"
	ErrFormIDEmpty                      = "FORM_ID_EMPTY"
	ErrFormSubmitDuplicate              = "FORM_SUBMIT_DUPLICATE"
	ErrFormUnsupported                  = "FORM_UNSUPPORTED"
	ErrForumEnabled                     = "FORUM_ENABLED"
	ErrFreshChangeAdminsForbidden       = "FRESH_CHANGE_ADMINS_FORBIDDEN"
	ErrFreshChangePhoneForbidden        = "FRESH_CHANGE_PHONE_FORBIDDEN"
	ErrFreshResetAuthorisationForbidden = "FRESH_RESET_AUTHORISATION_FORBIDDEN"
	ErrFromMessageBotDisabled           = "FROM_MESSAGE_BOT_DISABLED"
	ErrFromPeerInvalid                  = "FROM_PEER_INVALID"
	ErrFrozenMethodInvalid              = "FROZEN_METHOD_INVALID"
	ErrFrozenParticipantMissing         = "FROZEN_PARTICIPANT_MISSING"
	ErrGameBotInvalid                   = "GAME_BOT_INVALID"
	ErrGeoPointInvalid                  = "GEO_POINT_INVALID"
	ErrGiftMonthsInvalid                = "GIFT_MONTHS_INVALID"
	ErrGiftSlugExpired                  = "GIFT_SLUG_EXPIRED"
	ErrGiftSlugInvalid                  = "GIFT_SLUG_INVALID"
	ErrGiftStarsInvalid                 = "GIFT_STARS_INVALID"
	ErrGifContentTypeInvalid            = "GIF_CONTENT_TYPE_INVALID"
	ErrGifIDInvalid                     = "GIF_ID_INVALID"
	ErrGraphExpiredReload               = "GRAPH_EXPIRED_RELOAD"
	ErrGraphInvalidReload               = "GRAPH_INVALID_RELOAD"
	ErrGraphOutdatedReload              = "GRAPH_OUTDATED_RELOAD"
	ErrGroupcallAddParticipantsFailed   = "GROUPCALL_ADD_PARTICIPANTS_FAILED"
	ErrGroupcallAlreadyDiscarded        = "GROUPCALL_ALREADY_DISCARDED"
	ErrGroupcallAlreadyStarted          = "GROUPCALL_ALREADY_STARTED"
	ErrGroupcallForbidden               = "GROUPCALL_FORBIDDEN"
	ErrGroupcallInvalid                 = "GROUPCALL_INVALID"
	ErrGroupcallJoinMissing             = "GROUPCALL_JOIN_MISSING"
	ErrGroupcallNotModified             = "GROUPCALL_NOT_MODIFIED"
	ErrGroupcallSsrcDuplicateMuch       = "GROUPCALL_SSRC_DUPLICATE_MUCH"
	ErrGroupedMediaInvalid              = "GROUPED_MEDIA_INVALID"
	ErrHashtagInvalid                   = "HASHTAG_INVALID"
	ErrHashInvalid                      = "HASH_INVALID"
	ErrHashSizeInvalid                  = "HASH_SIZE_INVALID"
	ErrHideRequesterMissing             = "HIDE_REQUESTER_MISSING"
	ErrIDExpired                        = "ID_EXPIRED"
	ErrIDInvalid                        = "ID_INVALID"
	ErrImageProcessFailed               = "IMAGE_PROCESS_FAILED"
	ErrImportFileInvalid                = "IMPORT_FILE_INVALID"
	ErrImportFormatDateInvalid          = "IMPORT_FORMAT_DATE_INVALID"
	ErrImportFormatUnrecognized         = "IMPORT_FORMAT_UNRECOGNIZED"
	ErrImportIDInvalid                  = "IMPORT_ID_INVALID"
	ErrImportTokenInvalid               = "IMPORT_TOKEN_INVALID"
	ErrInlineBotRequired                = "INLINE_BOT_REQUIRED"
	ErrInlineResultExpired              = "INLINE_RESULT_EXPIRED"
	ErrInputChatlistInvalid             = "INPUT_CHATLIST_INVALID"
	ErrInputFileInvalid                 = "INPUT_FILE_INVALID"
	ErrInputFilterInvalid               = "INPUT_FILTER_INVALID"
	ErrInputPeersEmpty                  = "INPUT_PEERS_EMPTY"
	ErrInputPurposeInvalid              = "INPUT_PURPOSE_INVALID"
	ErrInputStarsAmountInvalid          = "INPUT_STARS_AMOUNT_INVALID"
	ErrInputStarsNanosInvalid           = "INPUT_STARS_NANOS_INVALID"
	ErrInputTextEmpty                   = "INPUT_TEXT_EMPTY"
	ErrInputTextTooLong                 = "INPUT_TEXT_TOO_LONG"
	ErrInputUserDeactivated             = "INPUT_USER_DEACTIVATED"
	ErrInvitesTooMuch                   = "INVITES_TOO_MUCH"
	ErrInviteForbiddenWithJoinas        = "INVITE_FORBIDDEN_WITH_JOINAS"
	ErrInviteHashEmpty                  = "INVITE_HASH_EMPTY"
	ErrInviteHashExpired                = "INVITE_HASH_EXPIRED"
	ErrInviteHashInvalid                = "INVITE_HASH_INVALID"
	ErrInviteRequestSent                = "INVITE_REQUEST_SENT"
	ErrInviteRevokedMissing             = "INVITE_REVOKED_MISSING"
	ErrInviteSlugEmpty                  = "INVITE_SLUG_EMPTY"
	ErrInviteSlugExpired                = "INVITE_SLUG_EXPIRED"
	ErrInviteSlugInvalid                = "INVITE_SLUG_INVALID"
	ErrInvoiceInvalid                   = "INVOICE_INVALID"
	ErrInvoicePayloadInvalid            = "INVOICE_PAYLOAD_INVALID"
	ErrJoinAsPeerInvalid                = "JOIN_AS_PEER_INVALID"
	ErrLanguageInvalid                  = "LANGUAGE_INVALID"
	ErrLangCodeInvalid                  = "LANG_CODE_INVALID"
	ErrLangCodeNotSupported             = "LANG_CODE_NOT_SUPPORTED"
	ErrLangPackInvalid                  = "LANG_PACK_INVALID"
	ErrLastnameInvalid                  = "LASTNAME_INVALID"
	ErrLimitInvalid                     = "LIMIT_INVALID"
	ErrLinkNotModified                  = "LINK_NOT_MODIFIED"
	ErrLocationInvalid                  = "LOCATION_INVALID"
	ErrMaxDateInvalid                   = "MAX_DATE_INVALID"
	ErrMaxIDInvalid                     = "MAX_ID_INVALID"
	ErrMaxQtsInvalid                    = "MAX_QTS_INVALID"
	ErrMD5ChecksumInvalid               = "MD5_CHECKSUM_INVALID"
	ErrMediaAlreadyPaid                 = "MEDIA_ALREADY_PAID"
	ErrMediaCaptionTooLong              = "MEDIA_CAPTION_TOO_LONG"
	ErrMediaEmpty                       = "MEDIA_EMPTY"
	ErrMediaFileInvalid                 = "MEDIA_FILE_INVALID"
	ErrMediaGroupedInvalid              = "MEDIA_GROUPED_INVALID"
	ErrMediaInvalid                     = "MEDIA_INVALID"
	ErrMediaNewInvalid                  = "MEDIA_NEW_INVALID"
	ErrMediaPrevInvalid                 = "MEDIA_PREV_INVALID"
	ErrMediaTTLInvalid                  = "MEDIA_TTL_INVALID"
	ErrMediaTypeInvalid                 = "MEDIA_TYPE_INVALID"
	ErrMediaVideoStoryMissing           = "MEDIA_VIDEO_STORY_MISSING"
	ErrMegagroupGeoRequired             = "MEGAGROUP_GEO_REQUIRED"
	ErrMegagroupIDInvalid               = "MEGAGROUP_ID_INVALID"
	ErrMegagroupPrehistoryHidden        = "MEGAGROUP_PREHISTORY_HIDDEN"
	ErrMegagroupRequired                = "MEGAGROUP_REQUIRED"
	ErrMessageAuthorRequired            = "MESSAGE_AUTHOR_REQUIRED"
	ErrMessageDeleteForbidden           = "MESSAGE_DELETE_FORBIDDEN"
	ErrMessageEditTimeExpired           = "MESSAGE_EDIT_TIME_EXPIRED"
	ErrMessageEmpty                     = "MESSAGE_EMPTY"
	ErrMessageIDsEmpty                  = "MESSAGE_IDS_EMPTY"
	ErrMessageIDInvalid                 = "MESSAGE_ID_INVALID"
	ErrMessageNotModified               = "MESSAGE_NOT_MODIFIED"
	ErrMessageNotReadYet                = "MESSAGE_NOT_READ_YET"
	ErrMessagePollClosed                = "MESSAGE_POLL_CLOSED"
	ErrMessageRequired                  = "MESSAGE_REQUIRED"
	ErrMessageTooLong                   = "MESSAGE_TOO_LONG"
	ErrMessageTooOld                    = "MESSAGE_TOO_OLD"
	ErrMethodInvalid                    = "METHOD_INVALID"
	ErrMinDateInvalid                   = "MIN_DATE_INVALID"
	ErrMonthInvalid                     = "MONTH_INVALID"
	ErrMsgIDInvalid                     = "MSG_ID_INVALID"
	ErrMsgTooOld                        = "MSG_TOO_OLD"
	ErrMsgVoiceMissing                  = "MSG_VOICE_MISSING"
	ErrMsgWaitFailed                    = "MSG_WAIT_FAILED"
	ErrMultiMediaTooLong                = "MULTI_MEDIA_TOO_LONG"
	ErrNeedActionMissing                = "NEED_ACTION_MISSING"
	ErrNeedDocInvalid                   = "NEED_DOC_INVALID"
	ErrNewSaltInvalid                   = "NEW_SALT_INVALID"
	ErrNewSettingsEmpty                 = "NEW_SETTINGS_EMPTY"
	ErrNewSettingsInvalid               = "NEW_SETTINGS_INVALID"
	ErrNextOffsetInvalid                = "NEXT_OFFSET_INVALID"
	ErrNotEligible                      = "NOT_ELIGIBLE"
	ErrNotJoined                        = "NOT_JOINED"
	ErrNoPaymentNeeded                  = "NO_PAYMENT_NEEDED"
	ErrOffsetInvalid                    = "OFFSET_INVALID"
	ErrOffsetPeerIDInvalid              = "OFFSET_PEER_ID_INVALID"
	ErrOptionsTooMuch                   = "OPTIONS_TOO_MUCH"
	ErrOptionInvalid                    = "OPTION_INVALID"
	ErrOrderInvalid                     = "ORDER_INVALID"
	ErrPackShortNameInvalid             = "PACK_SHORT_NAME_INVALID"
	ErrPackShortNameOccupied            = "PACK_SHORT_NAME_OCCUPIED"
	ErrPackTitleInvalid                 = "PACK_TITLE_INVALID"
	ErrPackTypeInvalid                  = "PACK_TYPE_INVALID"
	ErrParentPeerInvalid                = "PARENT_PEER_INVALID"
	ErrParticipantsTooFew               = "PARTICIPANTS_TOO_FEW"
	ErrParticipantCallFailed            = "PARTICIPANT_CALL_FAILED"
	ErrParticipantIDInvalid             = "PARTICIPANT_ID_INVALID"
	ErrParticipantJoinMissing           = "PARTICIPANT_JOIN_MISSING"
	ErrParticipantVersionOutdated       = "PARTICIPANT_VERSION_OUTDATED"
	ErrPasskeyAuthRestart               = "PASSKEY_AUTH_RESTART"
	ErrPasswordEmpty                    = "PASSWORD_EMPTY"
	ErrPasswordHashInvalid              = "PASSWORD_HASH_INVALID"
	ErrPasswordMissing                  = "PASSWORD_MISSING"
	ErrPasswordRecoveryExpired          = "PASSWORD_RECOVERY_EXPIRED"
	ErrPasswordRecoveryNa               = "PASSWORD_RECOVERY_NA"
	ErrPasswordRequired                 = "PASSWORD_REQUIRED"
	ErrPasswordTooFresh                 = "PASSWORD_TOO_FRESH"
	ErrPaymentCredentialsInvalid        = "PAYMENT_CREDENTIALS_INVALID"
	ErrPaymentProviderInvalid           = "PAYMENT_PROVIDER_INVALID"
	ErrPaymentRequired                  = "PAYMENT_REQUIRED"
	ErrPaymentUnsupported               = "PAYMENT_UNSUPPORTED"
	ErrPeersListEmpty                   = "PEERS_LIST_EMPTY"
	ErrPeerHistoryEmpty                 = "PEER_HISTORY_EMPTY"
	ErrPeerIDInvalid                    = "PEER_ID_INVALID"
	ErrPeerIDNotSupported               = "PEER_ID_NOT_SUPPORTED"
	ErrPeerTypesInvalid                 = "PEER_TYPES_INVALID"
	ErrPersistentTimestampEmpty         = "PERSISTENT_TIMESTAMP_EMPTY"
	ErrPersistentTimestampInvalid       = "PERSISTENT_TIMESTAMP_INVALID"
	ErrPersistentTimestampOutdated      = "PERSISTENT_TIMESTAMP_OUTDATED"
	ErrPhoneCodeEmpty                   = "PHONE_CODE_EMPTY"
	ErrPhoneCodeExpired                 = "PHONE_CODE_EXPIRED"
	ErrPhoneCodeHashEmpty               = "PHONE_CODE_HASH_EMPTY"
	ErrPhoneCodeInvalid                 = "PHONE_CODE_INVALID"
	ErrPhoneHashExpired                 = "PHONE_HASH_EXPIRED"
	ErrPhoneNotOccupied                 = "PHONE_NOT_OCCUPIED"
	ErrPhoneNumberAppSignupForbidden    = "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN"
	ErrPhoneNumberBanned                = "PHONE_NUMBER_BANNED"
	ErrPhoneNumberFlood                 = "PHONE_NUMBER_FLOOD"
	ErrPhoneNumberInvalid               = "PHONE_NUMBER_INVALID"
	ErrPhoneNumberOccupied              = "PHONE_NUMBER_OCCUPIED"
	ErrPhoneNumberUnoccupied            = "PHONE_NUMBER_UNOCCUPIED"
	ErrPhonePasswordFlood               = "PHONE_PASSWORD_FLOOD"
	ErrPhonePasswordProtected           = "PHONE_PASSWORD_PROTECTED"
	ErrPhotoContentTypeInvalid          = "PHOTO_CONTENT_TYPE_INVALID"
	ErrPhotoContentURLEmpty             = "PHOTO_CONTENT_URL_EMPTY"
	ErrPhotoCropFileMissing             = "PHOTO_CROP_FILE_MISSING"
	ErrPhotoCropSizeSmall               = "PHOTO_CROP_SIZE_SMALL"
	ErrPhotoExtInvalid                  = "PHOTO_EXT_INVALID"
	ErrPhotoFileMissing                 = "PHOTO_FILE_MISSING"
	ErrPhotoIDInvalid                   = "PHOTO_ID_INVALID"
	ErrPhotoInvalid                     = "PHOTO_INVALID"
	ErrPhotoInvalidDimensions           = "PHOTO_INVALID_DIMENSIONS"
	ErrPhotoSaveFileInvalid             = "PHOTO_SAVE_FILE_INVALID"
	ErrPhotoThumbURLEmpty               = "PHOTO_THUMB_URL_EMPTY"
	ErrPinnedDialogsTooMuch             = "PINNED_DIALOGS_TOO_MUCH"
	ErrPinRestricted                    = "PIN_RESTRICTED"
	ErrPollAnswersInvalid               = "POLL_ANSWERS_INVALID"
	ErrPollAnswerInvalid                = "POLL_ANSWER_INVALID"
	ErrPollOptionDuplicate              = "POLL_OPTION_DUPLICATE"
	ErrPollOptionInvalid                = "POLL_OPTION_INVALID"
	ErrPollQuestionInvalid              = "POLL_QUESTION_INVALID"
	ErrPollVoteRequired                 = "POLL_VOTE_REQUIRED"
	ErrPrecheckoutFailed                = "PRECHECKOUT_FAILED"
	ErrPremiumAccountRequired           = "PREMIUM_ACCOUNT_REQUIRED"
	ErrPremiumCurrentlyUnavailable      = "PREMIUM_CURRENTLY_UNAVAILABLE"
	ErrPremiumPurposeInvalid            = "PREMIUM_PURPOSE_INVALID"
	ErrPremiumSubActiveUntil            = "PREMIUM_SUB_ACTIVE_UNTIL"
	ErrPreviousChatImportActiveWaitMin  = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN"
	ErrPricingChatInvalid               = "PRICING_CHAT_INVALID"
	ErrPrivacyKeyInvalid                = "PRIVACY_KEY_INVALID"
	ErrPrivacyPremiumRequired           = "PRIVACY_PREMIUM_REQUIRED"
	ErrPrivacyTooLong                   = "PRIVACY_TOO_LONG"
	ErrPrivacyValueInvalid              = "PRIVACY_VALUE_INVALID"
	ErrPublicChannelMissing             = "PUBLIC_CHANNEL_MISSING"
	ErrPublicKeyRequired                = "PUBLIC_KEY_REQUIRED"
	ErrPurposeInvalid                   = "PURPOSE_INVALID"
	ErrQueryIDEmpty                     = "QUERY_ID_EMPTY"
	ErrQueryIDInvalid                   = "QUERY_ID_INVALID"
	ErrQueryTooShort                    = "QUERY_TOO_SHORT"
	ErrQuickRepliesBotNotAllowed        = "QUICK_REPLIES_BOT_NOT_ALLOWED"
	ErrQuickRepliesTooMuch              = "QUICK_REPLIES_TOO_MUCH"
	ErrQuizAnswerMissing                = "QUIZ_ANSWER_MISSING"
	ErrQuizCorrectAnswersEmpty          = "QUIZ_CORRECT_ANSWERS_EMPTY"
	ErrQuizCorrectAnswersTooMuch        = "QUIZ_CORRECT_ANSWERS_TOO_MUCH"
	ErrQuizCorrectAnswerInvalid         = "QUIZ_CORRECT_ANSWER_INVALID"
	ErrQuizMultipleInvalid              = "QUIZ_MULTIPLE_INVALID"
	ErrQuoteTextInvalid                 = "QUOTE_TEXT_INVALID"
	ErrRaiseHandForbidden               = "RAISE_HAND_FORBIDDEN"
	ErrRandomIDDuplicate                = "RANDOM_ID_DUPLICATE"
	ErrRandomIDEmpty                    = "RANDOM_ID_EMPTY"
	ErrRandomIDExpired                  = "RANDOM_ID_EXPIRED"
	ErrRandomIDInvalid                  = "RANDOM_ID_INVALID"
	ErrRandomLengthInvalid              = "RANDOM_LENGTH_INVALID"
	ErrRangesInvalid                    = "RANGES_INVALID"
	ErrReactionsCountInvalid            = "REACTIONS_COUNT_INVALID"
	ErrReactionsTooMany                 = "REACTIONS_TOO_MANY"
	ErrReactionEmpty                    = "REACTION_EMPTY"
	ErrReactionInvalid                  = "REACTION_INVALID"
	ErrReceiptEmpty                     = "RECEIPT_EMPTY"
	ErrReplyMarkupBuyEmpty              = "REPLY_MARKUP_BUY_EMPTY"
	ErrReplyMarkupGameEmpty             = "REPLY_MARKUP_GAME_EMPTY"
	ErrReplyMarkupInvalid               = "REPLY_MARKUP_INVALID"
	ErrReplyMarkupTooLong               = "REPLY_MARKUP_TOO_LONG"
	ErrReplyMessagesTooMuch             = "REPLY_MESSAGES_TOO_MUCH"
	ErrReplyMessageIDInvalid            = "REPLY_MESSAGE_ID_INVALID"
	ErrReplyToInvalid                   = "REPLY_TO_INVALID"
	ErrReplyToMonoforumPeerInvalid      = "REPLY_TO_MONOFORUM_PEER_INVALID"
	ErrReplyToUserInvalid               = "REPLY_TO_USER_INVALID"
	ErrRequestTokenInvalid              = "REQUEST_TOKEN_INVALID"
	ErrResellStarsTooFew                = "RESELL_STARS_TOO_FEW"
	ErrResellStarsTooMuch               = "RESELL_STARS_TOO_MUCH"
	ErrResetRequestMissing              = "RESET_REQUEST_MISSING"
	ErrResultsTooMuch                   = "RESULTS_TOO_MUCH"
	ErrResultIDDuplicate                = "RESULT_ID_DUPLICATE"
	ErrResultIDEmpty                    = "RESULT_ID_EMPTY"
	ErrResultIDInvalid                  = "RESULT_ID_INVALID"
	ErrResultTypeInvalid                = "RESULT_TYPE_INVALID"
	ErrRevoteNotAllowed                 = "REVOTE_NOT_ALLOWED"
	ErrRightsNotModified                = "RIGHTS_NOT_MODIFIED"
	ErrRightForbidden                   = "RIGHT_FORBIDDEN"
	ErrRingtoneInvalid                  = "RINGTONE_INVALID"
	ErrRingtoneMimeInvalid              = "RINGTONE_MIME_INVALID"
	ErrRsaDecryptFailed                 = "RSA_DECRYPT_FAILED"
	ErrSavedIDEmpty                     = "SAVED_ID_EMPTY"
	ErrSavedPeerInvalid                 = "SAVED_PEER_INVALID"
	ErrScheduleBotNotAllowed            = "SCHEDULE_BOT_NOT_ALLOWED"
	ErrScheduleDateInvalid              = "SCHEDULE_DATE_INVALID"
	ErrScheduleDateTooLate              = "SCHEDULE_DATE_TOO_LATE"
	ErrScheduleStatusPrivate            = "SCHEDULE_STATUS_PRIVATE"
	ErrScheduleTooMuch                  = "SCHEDULE_TOO_MUCH"
	ErrScoreInvalid                     = "SCORE_INVALID"
	ErrSearchQueryEmpty                 = "SEARCH_QUERY_EMPTY"
	ErrSearchWithLinkNotSupported       = "SEARCH_WITH_LINK_NOT_SUPPORTED"
	ErrSecondsInvalid                   = "SECONDS_INVALID"
	ErrSecureSecretRequired             = "SECURE_SECRET_REQUIRED"
	ErrSelfDeleteRestricted             = "SELF_DELETE_RESTRICTED"
	ErrSendAsPeerInvalid                = "SEND_AS_PEER_INVALID"
	ErrSendCodeUnavailable              = "SEND_CODE_UNAVAILABLE"
	ErrSendMediaInvalid                 = "SEND_MEDIA_INVALID"
	ErrSendMessageGameInvalid           = "SEND_MESSAGE_GAME_INVALID"
	ErrSendMessageMediaInvalid          = "SEND_MESSAGE_MEDIA_INVALID"
	ErrSendMessageTypeInvalid           = "SEND_MESSAGE_TYPE_INVALID"
	ErrSensitiveChangeForbidden         = "SENSITIVE_CHANGE_FORBIDDEN"
	ErrSessionTooFresh                  = "SESSION_TOO_FRESH"
	ErrSettingsInvalid                  = "SETTINGS_INVALID"
	ErrSHA256HashInvalid                = "SHA256_HASH_INVALID"
	ErrShortcutInvalid                  = "SHORTCUT_INVALID"
	ErrShortNameInvalid                 = "SHORT_NAME_INVALID"
	ErrShortNameOccupied                = "SHORT_NAME_OCCUPIED"
	ErrSignInFailed                     = "SIGN_IN_FAILED"
	ErrSlotsEmpty                       = "SLOTS_EMPTY"
	ErrSlowmodeMultiMsgsDisabled        = "SLOWMODE_MULTI_MSGS_DISABLED"
	ErrSlowmodeWait                     = "SLOWMODE_WAIT"
	ErrSlugInvalid                      = "SLUG_INVALID"
	ErrSmsjobIDInvalid                  = "SMSJOB_ID_INVALID"
	ErrSMSCodeCreateFailed              = "SMS_CODE_CREATE_FAILED"
	ErrSRPAInvalid                      = "SRP_A_INVALID"
	ErrSRPIDInvalid                     = "SRP_ID_INVALID"
	ErrSRPPasswordChanged               = "SRP_PASSWORD_CHANGED"
	ErrStargiftAlreadyConverted         = "STARGIFT_ALREADY_CONVERTED"
	ErrStargiftAlreadyRefunded          = "STARGIFT_ALREADY_REFUNDED"
	ErrStargiftAlreadyUpgraded          = "STARGIFT_ALREADY_UPGRADED"
	ErrStargiftAttributeInvalid         = "STARGIFT_ATTRIBUTE_INVALID"
	ErrStargiftExportInProgress         = "STARGIFT_EXPORT_IN_PROGRESS"
	ErrStargiftInvalid                  = "STARGIFT_INVALID"
	ErrStargiftMessageInvalid           = "STARGIFT_MESSAGE_INVALID"
	ErrStargiftNotFound                 = "STARGIFT_NOT_FOUND"
	ErrStargiftNotOwner                 = "STARGIFT_NOT_OWNER"
	ErrStargiftNotUnique                = "STARGIFT_NOT_UNIQUE"
	ErrStargiftOfferInvalid             = "STARGIFT_OFFER_INVALID"
	ErrStargiftOfferNotAllowed          = "STARGIFT_OFFER_NOT_ALLOWED"
	ErrStargiftOwnerInvalid             = "STARGIFT_OWNER_INVALID"
	ErrStargiftPeerInvalid              = "STARGIFT_PEER_INVALID"
	ErrStargiftResellCurrencyNotAllowed = "STARGIFT_RESELL_CURRENCY_NOT_ALLOWED"
	ErrStargiftResellTooEarly           = "STARGIFT_RESELL_TOO_EARLY"
	ErrStargiftSlugInvalid              = "STARGIFT_SLUG_INVALID"
	ErrStargiftTransferTooEarly         = "STARGIFT_TRANSFER_TOO_EARLY"
	ErrStargiftUpgradeUnavailable       = "STARGIFT_UPGRADE_UNAVAILABLE"
	ErrStargiftUsageLimited             = "STARGIFT_USAGE_LIMITED"
	ErrStargiftUserUsageLimited         = "STARGIFT_USER_USAGE_LIMITED"
	ErrStarrefAwaitingEnd               = "STARREF_AWAITING_END"
	ErrStarrefExpired                   = "STARREF_EXPIRED"
	ErrStarrefHashRevoked               = "STARREF_HASH_REVOKED"
	ErrStarrefPermilleInvalid           = "STARREF_PERMILLE_INVALID"
	ErrStarrefPermilleTooLow            = "STARREF_PERMILLE_TOO_LOW"
	ErrStarsAmountInvalid               = "STARS_AMOUNT_INVALID"
	ErrStarsFormAmountMismatch          = "STARS_FORM_AMOUNT_MISMATCH"
	ErrStarsInvoiceInvalid              = "STARS_INVOICE_INVALID"
	ErrStarsPaymentRequired             = "STARS_PAYMENT_REQUIRED"
	ErrStartParamEmpty                  = "START_PARAM_EMPTY"
	ErrStartParamInvalid                = "START_PARAM_INVALID"
	ErrStartParamTooLong                = "START_PARAM_TOO_LONG"
	ErrStickerpackStickersTooMuch       = "STICKERPACK_STICKERS_TOO_MUCH"
	ErrStickersetInvalid                = "STICKERSET_INVALID"
	ErrStickersetOwnerAnonymous         = "STICKERSET_OWNER_ANONYMOUS"
	ErrStickersEmpty                    = "STICKERS_EMPTY"
	ErrStickersTooMuch                  = "STICKERS_TOO_MUCH"
	ErrStickerDocumentInvalid           = "STICKER_DOCUMENT_INVALID"
	ErrStickerEmojiInvalid              = "STICKER_EMOJI_INVALID"
	ErrStickerFileInvalid               = "STICKER_FILE_INVALID"
	ErrStickerGifDimensions             = "STICKER_GIF_DIMENSIONS"
	ErrStickerIDInvalid                 = "STICKER_ID_INVALID"
	ErrStickerInvalid                   = "STICKER_INVALID"
	ErrStickerMimeInvalid               = "STICKER_MIME_INVALID"
	ErrStickerPngDimensions             = "STICKER_PNG_DIMENSIONS"
	ErrStickerPngNopng                  = "STICKER_PNG_NOPNG"
	ErrStickerTgsNodoc                  = "STICKER_TGS_NODOC"
	ErrStickerTgsNotgs                  = "STICKER_TGS_NOTGS"
	ErrStickerThumbPngNopng             = "STICKER_THUMB_PNG_NOPNG"
	ErrStickerThumbTgsNotgs             = "STICKER_THUMB_TGS_NOTGS"
	ErrStickerVideoBig                  = "STICKER_VIDEO_BIG"
	ErrStickerVideoNodoc                = "STICKER_VIDEO_NODOC"
	ErrStickerVideoNowebm               = "STICKER_VIDEO_NOWEBM"
	ErrStoriesNeverCreated              = "STORIES_NEVER_CREATED"
	ErrStoriesTooMuch                   = "STORIES_TOO_MUCH"
	ErrStoryIDEmpty                     = "STORY_ID_EMPTY"
	ErrStoryIDInvalid                   = "STORY_ID_INVALID"
	ErrStoryNotModified                 = "STORY_NOT_MODIFIED"
	ErrStoryPeriodInvalid               = "STORY_PERIOD_INVALID"
	ErrStorySendFloodMonthly            = "STORY_SEND_FLOOD_MONTHLY"
	ErrStorySendFloodWeekly             = "STORY_SEND_FLOOD_WEEKLY"
	ErrSubscriptionExportMissing        = "SUBSCRIPTION_EXPORT_MISSING"
	ErrSubscriptionIDInvalid            = "SUBSCRIPTION_ID_INVALID"
	ErrSubscriptionPeriodInvalid        = "SUBSCRIPTION_PERIOD_INVALID"
	ErrSuggestedPostAmountInvalid       = "SUGGESTED_POST_AMOUNT_INVALID"
	ErrSuggestedPostPeerInvalid         = "SUGGESTED_POST_PEER_INVALID"
	ErrSwitchPmTextEmpty                = "SWITCH_PM_TEXT_EMPTY"
	ErrSwitchWebviewURLInvalid          = "SWITCH_WEBVIEW_URL_INVALID"
	ErrTakeoutInitDelay                 = "TAKEOUT_INIT_DELAY"
	ErrTakeoutInvalid                   = "TAKEOUT_INVALID"
	ErrTakeoutRequired                  = "TAKEOUT_REQUIRED"
	ErrTaskAlreadyExists                = "TASK_ALREADY_EXISTS"
	ErrTempAuthKeyAlreadyBound          = "TEMP_AUTH_KEY_ALREADY_BOUND"
	ErrTempAuthKeyEmpty                 = "TEMP_AUTH_KEY_EMPTY"
	ErrTermsURLInvalid                  = "TERMS_URL_INVALID"
	ErrThemeFileInvalid                 = "THEME_FILE_INVALID"
	ErrThemeFormatInvalid               = "THEME_FORMAT_INVALID"
	ErrThemeInvalid                     = "THEME_INVALID"
	ErrThemeMimeInvalid                 = "THEME_MIME_INVALID"
	ErrThemeParamsInvalid               = "THEME_PARAMS_INVALID"
	ErrThemeSlugInvalid                 = "THEME_SLUG_INVALID"
	ErrThemeTitleInvalid                = "THEME_TITLE_INVALID"
	ErrTimezoneInvalid                  = "TIMEZONE_INVALID"
	ErrTitleInvalid                     = "TITLE_INVALID"
	ErrTmpPasswordDisabled              = "TMP_PASSWORD_DISABLED"
	ErrTmpPasswordInvalid               = "TMP_PASSWORD_INVALID"
	ErrTodoItemsEmpty                   = "TODO_ITEMS_EMPTY"
	ErrTodoItemDuplicate                = "TODO_ITEM_DUPLICATE"
	ErrTodoNotModified                  = "TODO_NOT_MODIFIED"
	ErrTokenEmpty                       = "TOKEN_EMPTY"
	ErrTokenInvalid                     = "TOKEN_INVALID"
	ErrTokenTypeInvalid                 = "TOKEN_TYPE_INVALID"
	ErrTopicClosed                      = "TOPIC_CLOSED"
	ErrTopicDeleted                     = "TOPIC_DELETED"
	ErrTopicIDInvalid                   = "TOPIC_ID_INVALID"
	ErrToIDInvalid                      = "TO_ID_INVALID"
	ErrToLangInvalid                    = "TO_LANG_INVALID"
	ErrTransactionIDInvalid             = "TRANSACTION_ID_INVALID"
	ErrTranscriptionFailed              = "TRANSCRIPTION_FAILED"
	ErrTranslateReqFailed               = "TRANSLATE_REQ_FAILED"
	ErrTranslateReqQuotaExceeded        = "TRANSLATE_REQ_QUOTA_EXCEEDED"
	ErrTranslationsDisabled             = "TRANSLATIONS_DISABLED"
	ErrTranslationTimeout               = "TRANSLATION_TIMEOUT"
	ErrTTLDaysInvalid                   = "TTL_DAYS_INVALID"
	ErrTTLMediaInvalid                  = "TTL_MEDIA_INVALID"
	ErrTTLPeriodInvalid                 = "TTL_PERIOD_INVALID"
	ErrTypesEmpty                       = "TYPES_EMPTY"
	ErrTimeout                          = "Timeout"
	ErrUnsupported                      = "UNSUPPORTED"
	ErrUntilDateInvalid                 = "UNTIL_DATE_INVALID"
	ErrUpdateAppToLogin                 = "UPDATE_APP_TO_LOGIN"
	ErrURLInvalid                       = "URL_INVALID"
	ErrUsageLimitInvalid                = "USAGE_LIMIT_INVALID"
	ErrUsernamesActiveTooMuch           = "USERNAMES_ACTIVE_TOO_MUCH"
	ErrUsernameInvalid                  = "USERNAME_INVALID"
	ErrUsernameNotModified              = "USERNAME_NOT_MODIFIED"
	ErrUsernameNotOccupied              = "USERNAME_NOT_OCCUPIED"
	ErrUsernameOccupied                 = "USERNAME_OCCUPIED"
	ErrUsernamePurchaseAvailable        = "USERNAME_PURCHASE_AVAILABLE"
	ErrUserpicPrivacyRequired           = "USERPIC_PRIVACY_REQUIRED"
	ErrUserpicUploadRequired            = "USERPIC_UPLOAD_REQUIRED"
	ErrUsersTooFew                      = "USERS_TOO_FEW"
	ErrUsersTooMuch                     = "USERS_TOO_MUCH"
	ErrUserAdminInvalid                 = "USER_ADMIN_INVALID"
	ErrUserAlreadyInvited               = "USER_ALREADY_INVITED"
	ErrUserAlreadyParticipant           = "USER_ALREADY_PARTICIPANT"
	ErrUserBannedInChannel              = "USER_BANNED_IN_CHANNEL"
	ErrUserBlocked                      = "USER_BLOCKED"
	ErrUserBot                          = "USER_BOT"
	ErrUserBotInvalid                   = "USER_BOT_INVALID"
	ErrUserBotRequired                  = "USER_BOT_REQUIRED"
	ErrUserChannelsTooMuch              = "USER_CHANNELS_TOO_MUCH"
	ErrUserCreator                      = "USER_CREATOR"
	ErrUserDeleted                      = "USER_DELETED"
	ErrUserGiftUnavailable              = "USER_GIFT_UNAVAILABLE"
	ErrUserIDInvalid                    = "USER_ID_INVALID"
	ErrUserInvalid                      = "USER_INVALID"
	ErrUserIsBlocked                    = "USER_IS_BLOCKED"
	ErrUserIsBot                        = "USER_IS_BOT"
	ErrUserKicked                       = "USER_KICKED"
	ErrUserNotMutualContact             = "USER_NOT_MUTUAL_CONTACT"
	ErrUserNotParticipant               = "USER_NOT_PARTICIPANT"
	ErrUserPermissionDenied             = "USER_PERMISSION_DENIED"
	ErrUserPrivacyRestricted            = "USER_PRIVACY_RESTRICTED"
	ErrUserPublicMissing                = "USER_PUBLIC_MISSING"
	ErrUserRestricted                   = "USER_RESTRICTED"
	ErrUserVolumeInvalid                = "USER_VOLUME_INVALID"
	ErrVenueIDInvalid                   = "VENUE_ID_INVALID"
	ErrVideoContentTypeInvalid          = "VIDEO_CONTENT_TYPE_INVALID"
	ErrVideoFileInvalid                 = "VIDEO_FILE_INVALID"
	ErrVideoPauseForbidden              = "VIDEO_PAUSE_FORBIDDEN"
	ErrVideoStopForbidden               = "VIDEO_STOP_FORBIDDEN"
	ErrVideoTitleEmpty                  = "VIDEO_TITLE_EMPTY"
	ErrVoiceMessagesForbidden           = "VOICE_MESSAGES_FORBIDDEN"
	ErrVolumeMoveInvalid                = "VOLUME_MOVE_INVALID"
	ErrWallpaperFileInvalid             = "WALLPAPER_FILE_INVALID"
	ErrWallpaperInvalid                 = "WALLPAPER_INVALID"
	ErrWallpaperMimeInvalid             = "WALLPAPER_MIME_INVALID"
	ErrWallpaperNotFound                = "WALLPAPER_NOT_FOUND"
	ErrWcConvertURLInvalid              = "WC_CONVERT_URL_INVALID"
	ErrWebdocumentInvalid               = "WEBDOCUMENT_INVALID"
	ErrWebdocumentMimeInvalid           = "WEBDOCUMENT_MIME_INVALID"
	ErrWebdocumentSizeTooBig            = "WEBDOCUMENT_SIZE_TOO_BIG"
	ErrWebdocumentURLEmpty              = "WEBDOCUMENT_URL_EMPTY"
	ErrWebdocumentURLInvalid            = "WEBDOCUMENT_URL_INVALID"
	ErrWebpageCurlFailed                = "WEBPAGE_CURL_FAILED"
	ErrWebpageMediaEmpty                = "WEBPAGE_MEDIA_EMPTY"
	ErrWebpageNotFound                  = "WEBPAGE_NOT_FOUND"
	ErrWebpageURLInvalid                = "WEBPAGE_URL_INVALID"
	ErrWebpushAuthInvalid               = "WEBPUSH_AUTH_INVALID"
	ErrWebpushKeyInvalid                = "WEBPUSH_KEY_INVALID"
	ErrWebpushTokenInvalid              = "WEBPUSH_TOKEN_INVALID"
	ErrYourPrivacyRestricted            = "YOUR_PRIVACY_RESTRICTED"
	ErrYouBlockedUser                   = "YOU_BLOCKED_USER"
)

// Is2FAConfirmWait reports whether err is 2FA_CONFIRM_WAIT.
func ( error) bool {
	return tgerr.Is(, Err2FAConfirmWait)
}

// IsAboutTooLong reports whether err is ABOUT_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrAboutTooLong)
}

// IsAccessDenied reports whether err is ACCESS_DENIED.
func ( error) bool {
	return tgerr.Is(, ErrAccessDenied)
}

// IsAccessTokenExpired reports whether err is ACCESS_TOKEN_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrAccessTokenExpired)
}

// IsAccessTokenInvalid reports whether err is ACCESS_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAccessTokenInvalid)
}

// IsAddressInvalid reports whether err is ADDRESS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAddressInvalid)
}

// IsAdminsTooMuch reports whether err is ADMINS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrAdminsTooMuch)
}

// IsAdminIDInvalid reports whether err is ADMIN_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAdminIDInvalid)
}

// IsAdminRankEmojiNotAllowed reports whether err is ADMIN_RANK_EMOJI_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrAdminRankEmojiNotAllowed)
}

// IsAdminRankInvalid reports whether err is ADMIN_RANK_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAdminRankInvalid)
}

// IsAdminRightsEmpty reports whether err is ADMIN_RIGHTS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrAdminRightsEmpty)
}

// IsAlbumPhotosTooMany reports whether err is ALBUM_PHOTOS_TOO_MANY.
func ( error) bool {
	return tgerr.Is(, ErrAlbumPhotosTooMany)
}

// IsAllowPaymentRequired reports whether err is ALLOW_PAYMENT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrAllowPaymentRequired)
}

// IsAnonymousReactionsDisabled reports whether err is ANONYMOUS_REACTIONS_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrAnonymousReactionsDisabled)
}

// IsAPIGiftRestrictedUpdateApp reports whether err is API_GIFT_RESTRICTED_UPDATE_APP.
func ( error) bool {
	return tgerr.Is(, ErrAPIGiftRestrictedUpdateApp)
}

// IsAPIIDInvalid reports whether err is API_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAPIIDInvalid)
}

// IsAPIIDPublishedFlood reports whether err is API_ID_PUBLISHED_FLOOD.
func ( error) bool {
	return tgerr.Is(, ErrAPIIDPublishedFlood)
}

// IsArticleTitleEmpty reports whether err is ARTICLE_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrArticleTitleEmpty)
}

// IsAudioContentURLEmpty reports whether err is AUDIO_CONTENT_URL_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrAudioContentURLEmpty)
}

// IsAudioTitleEmpty reports whether err is AUDIO_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrAudioTitleEmpty)
}

// IsAuthBytesInvalid reports whether err is AUTH_BYTES_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAuthBytesInvalid)
}

// IsAuthKeyUnsynchronized reports whether err is AUTH_KEY_UNSYNCHRONIZED.
func ( error) bool {
	return tgerr.Is(, ErrAuthKeyUnsynchronized)
}

// IsAuthRestart reports whether err is AUTH_RESTART.
func ( error) bool {
	return tgerr.Is(, ErrAuthRestart)
}

// IsAuthTokenAlreadyAccepted reports whether err is AUTH_TOKEN_ALREADY_ACCEPTED.
func ( error) bool {
	return tgerr.Is(, ErrAuthTokenAlreadyAccepted)
}

// IsAuthTokenException reports whether err is AUTH_TOKEN_EXCEPTION.
func ( error) bool {
	return tgerr.Is(, ErrAuthTokenException)
}

// IsAuthTokenExpired reports whether err is AUTH_TOKEN_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrAuthTokenExpired)
}

// IsAuthTokenInvalid reports whether err is AUTH_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrAuthTokenInvalid)
}

// IsAuthTokenInvalidx reports whether err is AUTH_TOKEN_INVALIDX.
func ( error) bool {
	return tgerr.Is(, ErrAuthTokenInvalidx)
}

// IsAutoarchiveNotAvailable reports whether err is AUTOARCHIVE_NOT_AVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrAutoarchiveNotAvailable)
}

// IsBalanceTooLow reports whether err is BALANCE_TOO_LOW.
func ( error) bool {
	return tgerr.Is(, ErrBalanceTooLow)
}

// IsBankCardNumberInvalid reports whether err is BANK_CARD_NUMBER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBankCardNumberInvalid)
}

// IsBannedRightsInvalid reports whether err is BANNED_RIGHTS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBannedRightsInvalid)
}

// IsBirthdayInvalid reports whether err is BIRTHDAY_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBirthdayInvalid)
}

// IsBoostsEmpty reports whether err is BOOSTS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrBoostsEmpty)
}

// IsBoostsRequired reports whether err is BOOSTS_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrBoostsRequired)
}

// IsBoostPeerInvalid reports whether err is BOOST_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBoostPeerInvalid)
}

// IsBotsTooMuch reports whether err is BOTS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrBotsTooMuch)
}

// IsBotAccessForbidden reports whether err is BOT_ACCESS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrBotAccessForbidden)
}

// IsBotAlreadyDisabled reports whether err is BOT_ALREADY_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrBotAlreadyDisabled)
}

// IsBotAppBotInvalid reports whether err is BOT_APP_BOT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotAppBotInvalid)
}

// IsBotAppInvalid reports whether err is BOT_APP_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotAppInvalid)
}

// IsBotAppShortnameInvalid reports whether err is BOT_APP_SHORTNAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotAppShortnameInvalid)
}

// IsBotBusinessMissing reports whether err is BOT_BUSINESS_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrBotBusinessMissing)
}

// IsBotChannelsNa reports whether err is BOT_CHANNELS_NA.
func ( error) bool {
	return tgerr.Is(, ErrBotChannelsNa)
}

// IsBotCommandDescriptionInvalid reports whether err is BOT_COMMAND_DESCRIPTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotCommandDescriptionInvalid)
}

// IsBotCommandInvalid reports whether err is BOT_COMMAND_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotCommandInvalid)
}

// IsBotDomainInvalid reports whether err is BOT_DOMAIN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotDomainInvalid)
}

// IsBotFallbackUnsupported reports whether err is BOT_FALLBACK_UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrBotFallbackUnsupported)
}

// IsBotGamesDisabled reports whether err is BOT_GAMES_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrBotGamesDisabled)
}

// IsBotGroupsBlocked reports whether err is BOT_GROUPS_BLOCKED.
func ( error) bool {
	return tgerr.Is(, ErrBotGroupsBlocked)
}

// IsBotInlineDisabled reports whether err is BOT_INLINE_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrBotInlineDisabled)
}

// IsBotInvalid reports whether err is BOT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotInvalid)
}

// IsBotInvoiceInvalid reports whether err is BOT_INVOICE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBotInvoiceInvalid)
}

// IsBotNotConnectedYet reports whether err is BOT_NOT_CONNECTED_YET.
func ( error) bool {
	return tgerr.Is(, ErrBotNotConnectedYet)
}

// IsBotOnesideNotAvail reports whether err is BOT_ONESIDE_NOT_AVAIL.
func ( error) bool {
	return tgerr.Is(, ErrBotOnesideNotAvail)
}

// IsBotPaymentsDisabled reports whether err is BOT_PAYMENTS_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrBotPaymentsDisabled)
}

// IsBotResponseTimeout reports whether err is BOT_RESPONSE_TIMEOUT.
func ( error) bool {
	return tgerr.Is(, ErrBotResponseTimeout)
}

// IsBotScoreNotModified reports whether err is BOT_SCORE_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrBotScoreNotModified)
}

// IsBotVerifierForbidden reports whether err is BOT_VERIFIER_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrBotVerifierForbidden)
}

// IsBotWebviewDisabled reports whether err is BOT_WEBVIEW_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrBotWebviewDisabled)
}

// IsBroadcastForbidden reports whether err is BROADCAST_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrBroadcastForbidden)
}

// IsBroadcastIDInvalid reports whether err is BROADCAST_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBroadcastIDInvalid)
}

// IsBroadcastPublicVotersForbidden reports whether err is BROADCAST_PUBLIC_VOTERS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrBroadcastPublicVotersForbidden)
}

// IsBroadcastRequired reports whether err is BROADCAST_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrBroadcastRequired)
}

// IsBusinessAddressActive reports whether err is BUSINESS_ADDRESS_ACTIVE.
func ( error) bool {
	return tgerr.Is(, ErrBusinessAddressActive)
}

// IsBusinessConnectionInvalid reports whether err is BUSINESS_CONNECTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBusinessConnectionInvalid)
}

// IsBusinessPeerInvalid reports whether err is BUSINESS_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBusinessPeerInvalid)
}

// IsBusinessPeerUsageMissing reports whether err is BUSINESS_PEER_USAGE_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrBusinessPeerUsageMissing)
}

// IsBusinessRecipientsEmpty reports whether err is BUSINESS_RECIPIENTS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrBusinessRecipientsEmpty)
}

// IsBusinessWorkHoursEmpty reports whether err is BUSINESS_WORK_HOURS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrBusinessWorkHoursEmpty)
}

// IsBusinessWorkHoursPeriodInvalid reports whether err is BUSINESS_WORK_HOURS_PERIOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrBusinessWorkHoursPeriodInvalid)
}

// IsButtonCopyTextInvalid reports whether err is BUTTON_COPY_TEXT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonCopyTextInvalid)
}

// IsButtonDataInvalid reports whether err is BUTTON_DATA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonDataInvalid)
}

// IsButtonIDInvalid reports whether err is BUTTON_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonIDInvalid)
}

// IsButtonInvalid reports whether err is BUTTON_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonInvalid)
}

// IsButtonPosInvalid reports whether err is BUTTON_POS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonPosInvalid)
}

// IsButtonTextInvalid reports whether err is BUTTON_TEXT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonTextInvalid)
}

// IsButtonTypeInvalid reports whether err is BUTTON_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonTypeInvalid)
}

// IsButtonURLInvalid reports whether err is BUTTON_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonURLInvalid)
}

// IsButtonUserInvalid reports whether err is BUTTON_USER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrButtonUserInvalid)
}

// IsButtonUserPrivacyRestricted reports whether err is BUTTON_USER_PRIVACY_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrButtonUserPrivacyRestricted)
}

// IsCallAlreadyAccepted reports whether err is CALL_ALREADY_ACCEPTED.
func ( error) bool {
	return tgerr.Is(, ErrCallAlreadyAccepted)
}

// IsCallAlreadyDeclined reports whether err is CALL_ALREADY_DECLINED.
func ( error) bool {
	return tgerr.Is(, ErrCallAlreadyDeclined)
}

// IsCallOccupyFailed reports whether err is CALL_OCCUPY_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrCallOccupyFailed)
}

// IsCallPeerInvalid reports whether err is CALL_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCallPeerInvalid)
}

// IsCallProtocolCompatLayerInvalid reports whether err is CALL_PROTOCOL_COMPAT_LAYER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCallProtocolCompatLayerInvalid)
}

// IsCallProtocolFlagsInvalid reports whether err is CALL_PROTOCOL_FLAGS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCallProtocolFlagsInvalid)
}

// IsCallProtocolLayerInvalid reports whether err is CALL_PROTOCOL_LAYER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCallProtocolLayerInvalid)
}

// IsCDNMethodInvalid reports whether err is CDN_METHOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCDNMethodInvalid)
}

// IsCDNUploadTimeout reports whether err is CDN_UPLOAD_TIMEOUT.
func ( error) bool {
	return tgerr.Is(, ErrCDNUploadTimeout)
}

// IsChannelsAdminLocatedTooMuch reports whether err is CHANNELS_ADMIN_LOCATED_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrChannelsAdminLocatedTooMuch)
}

// IsChannelsAdminPublicTooMuch reports whether err is CHANNELS_ADMIN_PUBLIC_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrChannelsAdminPublicTooMuch)
}

// IsChannelsTooMuch reports whether err is CHANNELS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrChannelsTooMuch)
}

// IsChannelForumMissing reports whether err is CHANNEL_FORUM_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrChannelForumMissing)
}

// IsChannelIDInvalid reports whether err is CHANNEL_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChannelIDInvalid)
}

// IsChannelInvalid reports whether err is CHANNEL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChannelInvalid)
}

// IsChannelMonoforumUnsupported reports whether err is CHANNEL_MONOFORUM_UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrChannelMonoforumUnsupported)
}

// IsChannelParicipantMissing reports whether err is CHANNEL_PARICIPANT_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrChannelParicipantMissing)
}

// IsChannelPrivate reports whether err is CHANNEL_PRIVATE.
func ( error) bool {
	return tgerr.Is(, ErrChannelPrivate)
}

// IsChannelPublicGroupNa reports whether err is CHANNEL_PUBLIC_GROUP_NA.
func ( error) bool {
	return tgerr.Is(, ErrChannelPublicGroupNa)
}

// IsChannelTooBig reports whether err is CHANNEL_TOO_BIG.
func ( error) bool {
	return tgerr.Is(, ErrChannelTooBig)
}

// IsChannelTooLarge reports whether err is CHANNEL_TOO_LARGE.
func ( error) bool {
	return tgerr.Is(, ErrChannelTooLarge)
}

// IsChargeAlreadyRefunded reports whether err is CHARGE_ALREADY_REFUNDED.
func ( error) bool {
	return tgerr.Is(, ErrChargeAlreadyRefunded)
}

// IsChargeIDEmpty reports whether err is CHARGE_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrChargeIDEmpty)
}

// IsChargeIDInvalid reports whether err is CHARGE_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChargeIDInvalid)
}

// IsChatlinksTooMuch reports whether err is CHATLINKS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrChatlinksTooMuch)
}

// IsChatlinkSlugEmpty reports whether err is CHATLINK_SLUG_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrChatlinkSlugEmpty)
}

// IsChatlinkSlugExpired reports whether err is CHATLINK_SLUG_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrChatlinkSlugExpired)
}

// IsChatlistsTooMuch reports whether err is CHATLISTS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrChatlistsTooMuch)
}

// IsChatlistExcludeInvalid reports whether err is CHATLIST_EXCLUDE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChatlistExcludeInvalid)
}

// IsChatAboutNotModified reports whether err is CHAT_ABOUT_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrChatAboutNotModified)
}

// IsChatAboutTooLong reports whether err is CHAT_ABOUT_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrChatAboutTooLong)
}

// IsChatActionForbidden reports whether err is CHAT_ACTION_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatActionForbidden)
}

// IsChatAdminInviteRequired reports whether err is CHAT_ADMIN_INVITE_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrChatAdminInviteRequired)
}

// IsChatAdminRequired reports whether err is CHAT_ADMIN_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrChatAdminRequired)
}

// IsChatDiscussionUnallowed reports whether err is CHAT_DISCUSSION_UNALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrChatDiscussionUnallowed)
}

// IsChatForwardsRestricted reports whether err is CHAT_FORWARDS_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrChatForwardsRestricted)
}

// IsChatGuestSendForbidden reports whether err is CHAT_GUEST_SEND_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatGuestSendForbidden)
}

// IsChatIDEmpty reports whether err is CHAT_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrChatIDEmpty)
}

// IsChatIDGenerateFailed reports whether err is CHAT_ID_GENERATE_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrChatIDGenerateFailed)
}

// IsChatIDInvalid reports whether err is CHAT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChatIDInvalid)
}

// IsChatInvalid reports whether err is CHAT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChatInvalid)
}

// IsChatInvitePermanent reports whether err is CHAT_INVITE_PERMANENT.
func ( error) bool {
	return tgerr.Is(, ErrChatInvitePermanent)
}

// IsChatLinkExists reports whether err is CHAT_LINK_EXISTS.
func ( error) bool {
	return tgerr.Is(, ErrChatLinkExists)
}

// IsChatMemberAddFailed reports whether err is CHAT_MEMBER_ADD_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrChatMemberAddFailed)
}

// IsChatNotModified reports whether err is CHAT_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrChatNotModified)
}

// IsChatPublicRequired reports whether err is CHAT_PUBLIC_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrChatPublicRequired)
}

// IsChatRestricted reports whether err is CHAT_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrChatRestricted)
}

// IsChatRevokeDateUnsupported reports whether err is CHAT_REVOKE_DATE_UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrChatRevokeDateUnsupported)
}

// IsChatSendAudiosForbidden reports whether err is CHAT_SEND_AUDIOS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendAudiosForbidden)
}

// IsChatSendDocsForbidden reports whether err is CHAT_SEND_DOCS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendDocsForbidden)
}

// IsChatSendGameForbidden reports whether err is CHAT_SEND_GAME_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendGameForbidden)
}

// IsChatSendGifsForbidden reports whether err is CHAT_SEND_GIFS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendGifsForbidden)
}

// IsChatSendInlineForbidden reports whether err is CHAT_SEND_INLINE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendInlineForbidden)
}

// IsChatSendMediaForbidden reports whether err is CHAT_SEND_MEDIA_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendMediaForbidden)
}

// IsChatSendPhotosForbidden reports whether err is CHAT_SEND_PHOTOS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendPhotosForbidden)
}

// IsChatSendPlainForbidden reports whether err is CHAT_SEND_PLAIN_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendPlainForbidden)
}

// IsChatSendPollForbidden reports whether err is CHAT_SEND_POLL_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendPollForbidden)
}

// IsChatSendRoundvideosForbidden reports whether err is CHAT_SEND_ROUNDVIDEOS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendRoundvideosForbidden)
}

// IsChatSendStickersForbidden reports whether err is CHAT_SEND_STICKERS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendStickersForbidden)
}

// IsChatSendVideosForbidden reports whether err is CHAT_SEND_VIDEOS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendVideosForbidden)
}

// IsChatSendVoicesForbidden reports whether err is CHAT_SEND_VOICES_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendVoicesForbidden)
}

// IsChatSendWebpageForbidden reports whether err is CHAT_SEND_WEBPAGE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatSendWebpageForbidden)
}

// IsChatTitleEmpty reports whether err is CHAT_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrChatTitleEmpty)
}

// IsChatTooBig reports whether err is CHAT_TOO_BIG.
func ( error) bool {
	return tgerr.Is(, ErrChatTooBig)
}

// IsChatTypeInvalid reports whether err is CHAT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrChatTypeInvalid)
}

// IsChatWriteForbidden reports whether err is CHAT_WRITE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrChatWriteForbidden)
}

// IsCodeEmpty reports whether err is CODE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrCodeEmpty)
}

// IsCodeHashInvalid reports whether err is CODE_HASH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCodeHashInvalid)
}

// IsCodeInvalid reports whether err is CODE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCodeInvalid)
}

// IsCollectibleInvalid reports whether err is COLLECTIBLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCollectibleInvalid)
}

// IsCollectibleNotFound reports whether err is COLLECTIBLE_NOT_FOUND.
func ( error) bool {
	return tgerr.Is(, ErrCollectibleNotFound)
}

// IsCollectionIDInvalid reports whether err is COLLECTION_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCollectionIDInvalid)
}

// IsColorInvalid reports whether err is COLOR_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrColorInvalid)
}

// IsConnectionAPIIDInvalid reports whether err is CONNECTION_API_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrConnectionAPIIDInvalid)
}

// IsConnectionAppVersionEmpty reports whether err is CONNECTION_APP_VERSION_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrConnectionAppVersionEmpty)
}

// IsConnectionIDInvalid reports whether err is CONNECTION_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrConnectionIDInvalid)
}

// IsConnectionLayerInvalid reports whether err is CONNECTION_LAYER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrConnectionLayerInvalid)
}

// IsContactAddMissing reports whether err is CONTACT_ADD_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrContactAddMissing)
}

// IsContactIDInvalid reports whether err is CONTACT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrContactIDInvalid)
}

// IsContactMissing reports whether err is CONTACT_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrContactMissing)
}

// IsContactNameEmpty reports whether err is CONTACT_NAME_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrContactNameEmpty)
}

// IsContactReqMissing reports whether err is CONTACT_REQ_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrContactReqMissing)
}

// IsCreateCallFailed reports whether err is CREATE_CALL_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrCreateCallFailed)
}

// IsCredentialInvalid reports whether err is CREDENTIAL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCredentialInvalid)
}

// IsCurrencyTotalAmountInvalid reports whether err is CURRENCY_TOTAL_AMOUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrCurrencyTotalAmountInvalid)
}

// IsCustomReactionsTooMany reports whether err is CUSTOM_REACTIONS_TOO_MANY.
func ( error) bool {
	return tgerr.Is(, ErrCustomReactionsTooMany)
}

// IsDataHashSizeInvalid reports whether err is DATA_HASH_SIZE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDataHashSizeInvalid)
}

// IsDataInvalid reports whether err is DATA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDataInvalid)
}

// IsDataJSONInvalid reports whether err is DATA_JSON_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDataJSONInvalid)
}

// IsDataTooLong reports whether err is DATA_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrDataTooLong)
}

// IsDateEmpty reports whether err is DATE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrDateEmpty)
}

// IsDCIDInvalid reports whether err is DC_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDCIDInvalid)
}

// IsDhGAInvalid reports whether err is DH_G_A_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDhGAInvalid)
}

// IsDocumentInvalid reports whether err is DOCUMENT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrDocumentInvalid)
}

// IsEditBotInviteForbidden reports whether err is EDIT_BOT_INVITE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrEditBotInviteForbidden)
}

// IsEffectChatInvalid reports whether err is EFFECT_CHAT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEffectChatInvalid)
}

// IsEffectIDInvalid reports whether err is EFFECT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEffectIDInvalid)
}

// IsEmailHashExpired reports whether err is EMAIL_HASH_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrEmailHashExpired)
}

// IsEmailInstallMissing reports whether err is EMAIL_INSTALL_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrEmailInstallMissing)
}

// IsEmailInvalid reports whether err is EMAIL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEmailInvalid)
}

// IsEmailNotAllowed reports whether err is EMAIL_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrEmailNotAllowed)
}

// IsEmailNotSetup reports whether err is EMAIL_NOT_SETUP.
func ( error) bool {
	return tgerr.Is(, ErrEmailNotSetup)
}

// IsEmailUnconfirmed reports whether err is EMAIL_UNCONFIRMED.
func ( error) bool {
	return tgerr.Is(, ErrEmailUnconfirmed)
}

// IsEmailVerifyExpired reports whether err is EMAIL_VERIFY_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrEmailVerifyExpired)
}

// IsEmojiInvalid reports whether err is EMOJI_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEmojiInvalid)
}

// IsEmojiMarkupInvalid reports whether err is EMOJI_MARKUP_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEmojiMarkupInvalid)
}

// IsEmojiNotModified reports whether err is EMOJI_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrEmojiNotModified)
}

// IsEmoticonEmpty reports whether err is EMOTICON_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrEmoticonEmpty)
}

// IsEmoticonInvalid reports whether err is EMOTICON_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEmoticonInvalid)
}

// IsEmoticonStickerpackMissing reports whether err is EMOTICON_STICKERPACK_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrEmoticonStickerpackMissing)
}

// IsEncryptedMessageInvalid reports whether err is ENCRYPTED_MESSAGE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEncryptedMessageInvalid)
}

// IsEncryptionAlreadyAccepted reports whether err is ENCRYPTION_ALREADY_ACCEPTED.
func ( error) bool {
	return tgerr.Is(, ErrEncryptionAlreadyAccepted)
}

// IsEncryptionAlreadyDeclined reports whether err is ENCRYPTION_ALREADY_DECLINED.
func ( error) bool {
	return tgerr.Is(, ErrEncryptionAlreadyDeclined)
}

// IsEncryptionDeclined reports whether err is ENCRYPTION_DECLINED.
func ( error) bool {
	return tgerr.Is(, ErrEncryptionDeclined)
}

// IsEncryptionDeclineAdminFailed reports whether err is ENCRYPTION_DECLINE_ADMIN_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrEncryptionDeclineAdminFailed)
}

// IsEncryptionIDInvalid reports whether err is ENCRYPTION_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEncryptionIDInvalid)
}

// IsEntitiesTooLong reports whether err is ENTITIES_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrEntitiesTooLong)
}

// IsEntityBoundsInvalid reports whether err is ENTITY_BOUNDS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEntityBoundsInvalid)
}

// IsEntityMentionUserInvalid reports whether err is ENTITY_MENTION_USER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrEntityMentionUserInvalid)
}

// IsErrorTextEmpty reports whether err is ERROR_TEXT_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrErrorTextEmpty)
}

// IsExpiresAtInvalid reports whether err is EXPIRES_AT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrExpiresAtInvalid)
}

// IsExpireDateInvalid reports whether err is EXPIRE_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrExpireDateInvalid)
}

// IsExtendedMediaAmountInvalid reports whether err is EXTENDED_MEDIA_AMOUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrExtendedMediaAmountInvalid)
}

// IsExtendedMediaEmpty reports whether err is EXTENDED_MEDIA_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrExtendedMediaEmpty)
}

// IsExtendedMediaInvalid reports whether err is EXTENDED_MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrExtendedMediaInvalid)
}

// IsExternalURLInvalid reports whether err is EXTERNAL_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrExternalURLInvalid)
}

// IsFilerefUpgradeNeeded reports whether err is FILEREF_UPGRADE_NEEDED.
func ( error) bool {
	return tgerr.Is(, ErrFilerefUpgradeNeeded)
}

// IsFileContentTypeInvalid reports whether err is FILE_CONTENT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFileContentTypeInvalid)
}

// IsFileEmtpy reports whether err is FILE_EMTPY.
func ( error) bool {
	return tgerr.Is(, ErrFileEmtpy)
}

// IsFileIDInvalid reports whether err is FILE_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFileIDInvalid)
}

// IsFilePartsInvalid reports whether err is FILE_PARTS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFilePartsInvalid)
}

// IsFilePartEmpty reports whether err is FILE_PART_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFilePartEmpty)
}

// IsFilePartInvalid reports whether err is FILE_PART_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFilePartInvalid)
}

// IsFilePartLengthInvalid reports whether err is FILE_PART_LENGTH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFilePartLengthInvalid)
}

// IsFilePartSizeChanged reports whether err is FILE_PART_SIZE_CHANGED.
func ( error) bool {
	return tgerr.Is(, ErrFilePartSizeChanged)
}

// IsFilePartSizeInvalid reports whether err is FILE_PART_SIZE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFilePartSizeInvalid)
}

// IsFilePartTooBig reports whether err is FILE_PART_TOO_BIG.
func ( error) bool {
	return tgerr.Is(, ErrFilePartTooBig)
}

// IsFilePartTooSmall reports whether err is FILE_PART_TOO_SMALL.
func ( error) bool {
	return tgerr.Is(, ErrFilePartTooSmall)
}

// IsFileReferenceEmpty reports whether err is FILE_REFERENCE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFileReferenceEmpty)
}

// IsFileReferenceExpired reports whether err is FILE_REFERENCE_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrFileReferenceExpired)
}

// IsFileReferenceInvalid reports whether err is FILE_REFERENCE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFileReferenceInvalid)
}

// IsFileTitleEmpty reports whether err is FILE_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFileTitleEmpty)
}

// IsFileTokenInvalid reports whether err is FILE_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFileTokenInvalid)
}

// IsFilterIDInvalid reports whether err is FILTER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFilterIDInvalid)
}

// IsFilterIncludeEmpty reports whether err is FILTER_INCLUDE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFilterIncludeEmpty)
}

// IsFilterNotSupported reports whether err is FILTER_NOT_SUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrFilterNotSupported)
}

// IsFilterTitleEmpty reports whether err is FILTER_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFilterTitleEmpty)
}

// IsFirstnameInvalid reports whether err is FIRSTNAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFirstnameInvalid)
}

// IsFloodPremiumWait reports whether err is FLOOD_PREMIUM_WAIT.
func ( error) bool {
	return tgerr.Is(, ErrFloodPremiumWait)
}

// IsFolderIDInvalid reports whether err is FOLDER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFolderIDInvalid)
}

// IsFormExpired reports whether err is FORM_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrFormExpired)
}

// IsFormIDEmpty reports whether err is FORM_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrFormIDEmpty)
}

// IsFormSubmitDuplicate reports whether err is FORM_SUBMIT_DUPLICATE.
func ( error) bool {
	return tgerr.Is(, ErrFormSubmitDuplicate)
}

// IsFormUnsupported reports whether err is FORM_UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrFormUnsupported)
}

// IsForumEnabled reports whether err is FORUM_ENABLED.
func ( error) bool {
	return tgerr.Is(, ErrForumEnabled)
}

// IsFreshChangeAdminsForbidden reports whether err is FRESH_CHANGE_ADMINS_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrFreshChangeAdminsForbidden)
}

// IsFreshChangePhoneForbidden reports whether err is FRESH_CHANGE_PHONE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrFreshChangePhoneForbidden)
}

// IsFreshResetAuthorisationForbidden reports whether err is FRESH_RESET_AUTHORISATION_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrFreshResetAuthorisationForbidden)
}

// IsFromMessageBotDisabled reports whether err is FROM_MESSAGE_BOT_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrFromMessageBotDisabled)
}

// IsFromPeerInvalid reports whether err is FROM_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFromPeerInvalid)
}

// IsFrozenMethodInvalid reports whether err is FROZEN_METHOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrFrozenMethodInvalid)
}

// IsFrozenParticipantMissing reports whether err is FROZEN_PARTICIPANT_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrFrozenParticipantMissing)
}

// IsGameBotInvalid reports whether err is GAME_BOT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGameBotInvalid)
}

// IsGeoPointInvalid reports whether err is GEO_POINT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGeoPointInvalid)
}

// IsGiftMonthsInvalid reports whether err is GIFT_MONTHS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGiftMonthsInvalid)
}

// IsGiftSlugExpired reports whether err is GIFT_SLUG_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrGiftSlugExpired)
}

// IsGiftSlugInvalid reports whether err is GIFT_SLUG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGiftSlugInvalid)
}

// IsGiftStarsInvalid reports whether err is GIFT_STARS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGiftStarsInvalid)
}

// IsGifContentTypeInvalid reports whether err is GIF_CONTENT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGifContentTypeInvalid)
}

// IsGifIDInvalid reports whether err is GIF_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGifIDInvalid)
}

// IsGraphExpiredReload reports whether err is GRAPH_EXPIRED_RELOAD.
func ( error) bool {
	return tgerr.Is(, ErrGraphExpiredReload)
}

// IsGraphInvalidReload reports whether err is GRAPH_INVALID_RELOAD.
func ( error) bool {
	return tgerr.Is(, ErrGraphInvalidReload)
}

// IsGraphOutdatedReload reports whether err is GRAPH_OUTDATED_RELOAD.
func ( error) bool {
	return tgerr.Is(, ErrGraphOutdatedReload)
}

// IsGroupcallAddParticipantsFailed reports whether err is GROUPCALL_ADD_PARTICIPANTS_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallAddParticipantsFailed)
}

// IsGroupcallAlreadyDiscarded reports whether err is GROUPCALL_ALREADY_DISCARDED.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallAlreadyDiscarded)
}

// IsGroupcallAlreadyStarted reports whether err is GROUPCALL_ALREADY_STARTED.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallAlreadyStarted)
}

// IsGroupcallForbidden reports whether err is GROUPCALL_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallForbidden)
}

// IsGroupcallInvalid reports whether err is GROUPCALL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallInvalid)
}

// IsGroupcallJoinMissing reports whether err is GROUPCALL_JOIN_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallJoinMissing)
}

// IsGroupcallNotModified reports whether err is GROUPCALL_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallNotModified)
}

// IsGroupcallSsrcDuplicateMuch reports whether err is GROUPCALL_SSRC_DUPLICATE_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrGroupcallSsrcDuplicateMuch)
}

// IsGroupedMediaInvalid reports whether err is GROUPED_MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrGroupedMediaInvalid)
}

// IsHashtagInvalid reports whether err is HASHTAG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrHashtagInvalid)
}

// IsHashInvalid reports whether err is HASH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrHashInvalid)
}

// IsHashSizeInvalid reports whether err is HASH_SIZE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrHashSizeInvalid)
}

// IsHideRequesterMissing reports whether err is HIDE_REQUESTER_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrHideRequesterMissing)
}

// IsIDExpired reports whether err is ID_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrIDExpired)
}

// IsIDInvalid reports whether err is ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrIDInvalid)
}

// IsImageProcessFailed reports whether err is IMAGE_PROCESS_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrImageProcessFailed)
}

// IsImportFileInvalid reports whether err is IMPORT_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrImportFileInvalid)
}

// IsImportFormatDateInvalid reports whether err is IMPORT_FORMAT_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrImportFormatDateInvalid)
}

// IsImportFormatUnrecognized reports whether err is IMPORT_FORMAT_UNRECOGNIZED.
func ( error) bool {
	return tgerr.Is(, ErrImportFormatUnrecognized)
}

// IsImportIDInvalid reports whether err is IMPORT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrImportIDInvalid)
}

// IsImportTokenInvalid reports whether err is IMPORT_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrImportTokenInvalid)
}

// IsInlineBotRequired reports whether err is INLINE_BOT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrInlineBotRequired)
}

// IsInlineResultExpired reports whether err is INLINE_RESULT_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrInlineResultExpired)
}

// IsInputChatlistInvalid reports whether err is INPUT_CHATLIST_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputChatlistInvalid)
}

// IsInputFileInvalid reports whether err is INPUT_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputFileInvalid)
}

// IsInputFilterInvalid reports whether err is INPUT_FILTER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputFilterInvalid)
}

// IsInputPeersEmpty reports whether err is INPUT_PEERS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrInputPeersEmpty)
}

// IsInputPurposeInvalid reports whether err is INPUT_PURPOSE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputPurposeInvalid)
}

// IsInputStarsAmountInvalid reports whether err is INPUT_STARS_AMOUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputStarsAmountInvalid)
}

// IsInputStarsNanosInvalid reports whether err is INPUT_STARS_NANOS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInputStarsNanosInvalid)
}

// IsInputTextEmpty reports whether err is INPUT_TEXT_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrInputTextEmpty)
}

// IsInputTextTooLong reports whether err is INPUT_TEXT_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrInputTextTooLong)
}

// IsInputUserDeactivated reports whether err is INPUT_USER_DEACTIVATED.
func ( error) bool {
	return tgerr.Is(, ErrInputUserDeactivated)
}

// IsInvitesTooMuch reports whether err is INVITES_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrInvitesTooMuch)
}

// IsInviteForbiddenWithJoinas reports whether err is INVITE_FORBIDDEN_WITH_JOINAS.
func ( error) bool {
	return tgerr.Is(, ErrInviteForbiddenWithJoinas)
}

// IsInviteHashEmpty reports whether err is INVITE_HASH_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrInviteHashEmpty)
}

// IsInviteHashExpired reports whether err is INVITE_HASH_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrInviteHashExpired)
}

// IsInviteHashInvalid reports whether err is INVITE_HASH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInviteHashInvalid)
}

// IsInviteRequestSent reports whether err is INVITE_REQUEST_SENT.
func ( error) bool {
	return tgerr.Is(, ErrInviteRequestSent)
}

// IsInviteRevokedMissing reports whether err is INVITE_REVOKED_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrInviteRevokedMissing)
}

// IsInviteSlugEmpty reports whether err is INVITE_SLUG_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrInviteSlugEmpty)
}

// IsInviteSlugExpired reports whether err is INVITE_SLUG_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrInviteSlugExpired)
}

// IsInviteSlugInvalid reports whether err is INVITE_SLUG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInviteSlugInvalid)
}

// IsInvoiceInvalid reports whether err is INVOICE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInvoiceInvalid)
}

// IsInvoicePayloadInvalid reports whether err is INVOICE_PAYLOAD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrInvoicePayloadInvalid)
}

// IsJoinAsPeerInvalid reports whether err is JOIN_AS_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrJoinAsPeerInvalid)
}

// IsLanguageInvalid reports whether err is LANGUAGE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLanguageInvalid)
}

// IsLangCodeInvalid reports whether err is LANG_CODE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLangCodeInvalid)
}

// IsLangCodeNotSupported reports whether err is LANG_CODE_NOT_SUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrLangCodeNotSupported)
}

// IsLangPackInvalid reports whether err is LANG_PACK_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLangPackInvalid)
}

// IsLastnameInvalid reports whether err is LASTNAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLastnameInvalid)
}

// IsLimitInvalid reports whether err is LIMIT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLimitInvalid)
}

// IsLinkNotModified reports whether err is LINK_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrLinkNotModified)
}

// IsLocationInvalid reports whether err is LOCATION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrLocationInvalid)
}

// IsMaxDateInvalid reports whether err is MAX_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMaxDateInvalid)
}

// IsMaxIDInvalid reports whether err is MAX_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMaxIDInvalid)
}

// IsMaxQtsInvalid reports whether err is MAX_QTS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMaxQtsInvalid)
}

// IsMD5ChecksumInvalid reports whether err is MD5_CHECKSUM_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMD5ChecksumInvalid)
}

// IsMediaAlreadyPaid reports whether err is MEDIA_ALREADY_PAID.
func ( error) bool {
	return tgerr.Is(, ErrMediaAlreadyPaid)
}

// IsMediaCaptionTooLong reports whether err is MEDIA_CAPTION_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrMediaCaptionTooLong)
}

// IsMediaEmpty reports whether err is MEDIA_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrMediaEmpty)
}

// IsMediaFileInvalid reports whether err is MEDIA_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaFileInvalid)
}

// IsMediaGroupedInvalid reports whether err is MEDIA_GROUPED_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaGroupedInvalid)
}

// IsMediaInvalid reports whether err is MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaInvalid)
}

// IsMediaNewInvalid reports whether err is MEDIA_NEW_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaNewInvalid)
}

// IsMediaPrevInvalid reports whether err is MEDIA_PREV_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaPrevInvalid)
}

// IsMediaTTLInvalid reports whether err is MEDIA_TTL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaTTLInvalid)
}

// IsMediaTypeInvalid reports whether err is MEDIA_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMediaTypeInvalid)
}

// IsMediaVideoStoryMissing reports whether err is MEDIA_VIDEO_STORY_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrMediaVideoStoryMissing)
}

// IsMegagroupGeoRequired reports whether err is MEGAGROUP_GEO_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrMegagroupGeoRequired)
}

// IsMegagroupIDInvalid reports whether err is MEGAGROUP_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMegagroupIDInvalid)
}

// IsMegagroupPrehistoryHidden reports whether err is MEGAGROUP_PREHISTORY_HIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrMegagroupPrehistoryHidden)
}

// IsMegagroupRequired reports whether err is MEGAGROUP_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrMegagroupRequired)
}

// IsMessageAuthorRequired reports whether err is MESSAGE_AUTHOR_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrMessageAuthorRequired)
}

// IsMessageDeleteForbidden reports whether err is MESSAGE_DELETE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrMessageDeleteForbidden)
}

// IsMessageEditTimeExpired reports whether err is MESSAGE_EDIT_TIME_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrMessageEditTimeExpired)
}

// IsMessageEmpty reports whether err is MESSAGE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrMessageEmpty)
}

// IsMessageIDsEmpty reports whether err is MESSAGE_IDS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrMessageIDsEmpty)
}

// IsMessageIDInvalid reports whether err is MESSAGE_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMessageIDInvalid)
}

// IsMessageNotModified reports whether err is MESSAGE_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrMessageNotModified)
}

// IsMessageNotReadYet reports whether err is MESSAGE_NOT_READ_YET.
func ( error) bool {
	return tgerr.Is(, ErrMessageNotReadYet)
}

// IsMessagePollClosed reports whether err is MESSAGE_POLL_CLOSED.
func ( error) bool {
	return tgerr.Is(, ErrMessagePollClosed)
}

// IsMessageRequired reports whether err is MESSAGE_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrMessageRequired)
}

// IsMessageTooLong reports whether err is MESSAGE_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrMessageTooLong)
}

// IsMessageTooOld reports whether err is MESSAGE_TOO_OLD.
func ( error) bool {
	return tgerr.Is(, ErrMessageTooOld)
}

// IsMethodInvalid reports whether err is METHOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMethodInvalid)
}

// IsMinDateInvalid reports whether err is MIN_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMinDateInvalid)
}

// IsMonthInvalid reports whether err is MONTH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMonthInvalid)
}

// IsMsgIDInvalid reports whether err is MSG_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrMsgIDInvalid)
}

// IsMsgTooOld reports whether err is MSG_TOO_OLD.
func ( error) bool {
	return tgerr.Is(, ErrMsgTooOld)
}

// IsMsgVoiceMissing reports whether err is MSG_VOICE_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrMsgVoiceMissing)
}

// IsMsgWaitFailed reports whether err is MSG_WAIT_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrMsgWaitFailed)
}

// IsMultiMediaTooLong reports whether err is MULTI_MEDIA_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrMultiMediaTooLong)
}

// IsNeedActionMissing reports whether err is NEED_ACTION_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrNeedActionMissing)
}

// IsNeedDocInvalid reports whether err is NEED_DOC_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrNeedDocInvalid)
}

// IsNewSaltInvalid reports whether err is NEW_SALT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrNewSaltInvalid)
}

// IsNewSettingsEmpty reports whether err is NEW_SETTINGS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrNewSettingsEmpty)
}

// IsNewSettingsInvalid reports whether err is NEW_SETTINGS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrNewSettingsInvalid)
}

// IsNextOffsetInvalid reports whether err is NEXT_OFFSET_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrNextOffsetInvalid)
}

// IsNotEligible reports whether err is NOT_ELIGIBLE.
func ( error) bool {
	return tgerr.Is(, ErrNotEligible)
}

// IsNotJoined reports whether err is NOT_JOINED.
func ( error) bool {
	return tgerr.Is(, ErrNotJoined)
}

// IsNoPaymentNeeded reports whether err is NO_PAYMENT_NEEDED.
func ( error) bool {
	return tgerr.Is(, ErrNoPaymentNeeded)
}

// IsOffsetInvalid reports whether err is OFFSET_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrOffsetInvalid)
}

// IsOffsetPeerIDInvalid reports whether err is OFFSET_PEER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrOffsetPeerIDInvalid)
}

// IsOptionsTooMuch reports whether err is OPTIONS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrOptionsTooMuch)
}

// IsOptionInvalid reports whether err is OPTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrOptionInvalid)
}

// IsOrderInvalid reports whether err is ORDER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrOrderInvalid)
}

// IsPackShortNameInvalid reports whether err is PACK_SHORT_NAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPackShortNameInvalid)
}

// IsPackShortNameOccupied reports whether err is PACK_SHORT_NAME_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrPackShortNameOccupied)
}

// IsPackTitleInvalid reports whether err is PACK_TITLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPackTitleInvalid)
}

// IsPackTypeInvalid reports whether err is PACK_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPackTypeInvalid)
}

// IsParentPeerInvalid reports whether err is PARENT_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrParentPeerInvalid)
}

// IsParticipantsTooFew reports whether err is PARTICIPANTS_TOO_FEW.
func ( error) bool {
	return tgerr.Is(, ErrParticipantsTooFew)
}

// IsParticipantCallFailed reports whether err is PARTICIPANT_CALL_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrParticipantCallFailed)
}

// IsParticipantIDInvalid reports whether err is PARTICIPANT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrParticipantIDInvalid)
}

// IsParticipantJoinMissing reports whether err is PARTICIPANT_JOIN_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrParticipantJoinMissing)
}

// IsParticipantVersionOutdated reports whether err is PARTICIPANT_VERSION_OUTDATED.
func ( error) bool {
	return tgerr.Is(, ErrParticipantVersionOutdated)
}

// IsPasskeyAuthRestart reports whether err is PASSKEY_AUTH_RESTART.
func ( error) bool {
	return tgerr.Is(, ErrPasskeyAuthRestart)
}

// IsPasswordEmpty reports whether err is PASSWORD_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPasswordEmpty)
}

// IsPasswordHashInvalid reports whether err is PASSWORD_HASH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPasswordHashInvalid)
}

// IsPasswordMissing reports whether err is PASSWORD_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrPasswordMissing)
}

// IsPasswordRecoveryExpired reports whether err is PASSWORD_RECOVERY_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrPasswordRecoveryExpired)
}

// IsPasswordRecoveryNa reports whether err is PASSWORD_RECOVERY_NA.
func ( error) bool {
	return tgerr.Is(, ErrPasswordRecoveryNa)
}

// IsPasswordRequired reports whether err is PASSWORD_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPasswordRequired)
}

// IsPasswordTooFresh reports whether err is PASSWORD_TOO_FRESH.
func ( error) bool {
	return tgerr.Is(, ErrPasswordTooFresh)
}

// IsPaymentCredentialsInvalid reports whether err is PAYMENT_CREDENTIALS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPaymentCredentialsInvalid)
}

// IsPaymentProviderInvalid reports whether err is PAYMENT_PROVIDER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPaymentProviderInvalid)
}

// IsPaymentRequired reports whether err is PAYMENT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPaymentRequired)
}

// IsPaymentUnsupported reports whether err is PAYMENT_UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrPaymentUnsupported)
}

// IsPeersListEmpty reports whether err is PEERS_LIST_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPeersListEmpty)
}

// IsPeerHistoryEmpty reports whether err is PEER_HISTORY_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPeerHistoryEmpty)
}

// IsPeerIDInvalid reports whether err is PEER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPeerIDInvalid)
}

// IsPeerIDNotSupported reports whether err is PEER_ID_NOT_SUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrPeerIDNotSupported)
}

// IsPeerTypesInvalid reports whether err is PEER_TYPES_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPeerTypesInvalid)
}

// IsPersistentTimestampEmpty reports whether err is PERSISTENT_TIMESTAMP_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPersistentTimestampEmpty)
}

// IsPersistentTimestampInvalid reports whether err is PERSISTENT_TIMESTAMP_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPersistentTimestampInvalid)
}

// IsPersistentTimestampOutdated reports whether err is PERSISTENT_TIMESTAMP_OUTDATED.
func ( error) bool {
	return tgerr.Is(, ErrPersistentTimestampOutdated)
}

// IsPhoneCodeEmpty reports whether err is PHONE_CODE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPhoneCodeEmpty)
}

// IsPhoneCodeExpired reports whether err is PHONE_CODE_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneCodeExpired)
}

// IsPhoneCodeHashEmpty reports whether err is PHONE_CODE_HASH_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPhoneCodeHashEmpty)
}

// IsPhoneCodeInvalid reports whether err is PHONE_CODE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhoneCodeInvalid)
}

// IsPhoneHashExpired reports whether err is PHONE_HASH_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneHashExpired)
}

// IsPhoneNotOccupied reports whether err is PHONE_NOT_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNotOccupied)
}

// IsPhoneNumberAppSignupForbidden reports whether err is PHONE_NUMBER_APP_SIGNUP_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberAppSignupForbidden)
}

// IsPhoneNumberBanned reports whether err is PHONE_NUMBER_BANNED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberBanned)
}

// IsPhoneNumberFlood reports whether err is PHONE_NUMBER_FLOOD.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberFlood)
}

// IsPhoneNumberInvalid reports whether err is PHONE_NUMBER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberInvalid)
}

// IsPhoneNumberOccupied reports whether err is PHONE_NUMBER_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberOccupied)
}

// IsPhoneNumberUnoccupied reports whether err is PHONE_NUMBER_UNOCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrPhoneNumberUnoccupied)
}

// IsPhonePasswordFlood reports whether err is PHONE_PASSWORD_FLOOD.
func ( error) bool {
	return tgerr.Is(, ErrPhonePasswordFlood)
}

// IsPhonePasswordProtected reports whether err is PHONE_PASSWORD_PROTECTED.
func ( error) bool {
	return tgerr.Is(, ErrPhonePasswordProtected)
}

// IsPhotoContentTypeInvalid reports whether err is PHOTO_CONTENT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhotoContentTypeInvalid)
}

// IsPhotoContentURLEmpty reports whether err is PHOTO_CONTENT_URL_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPhotoContentURLEmpty)
}

// IsPhotoCropFileMissing reports whether err is PHOTO_CROP_FILE_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrPhotoCropFileMissing)
}

// IsPhotoCropSizeSmall reports whether err is PHOTO_CROP_SIZE_SMALL.
func ( error) bool {
	return tgerr.Is(, ErrPhotoCropSizeSmall)
}

// IsPhotoExtInvalid reports whether err is PHOTO_EXT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhotoExtInvalid)
}

// IsPhotoFileMissing reports whether err is PHOTO_FILE_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrPhotoFileMissing)
}

// IsPhotoIDInvalid reports whether err is PHOTO_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhotoIDInvalid)
}

// IsPhotoInvalid reports whether err is PHOTO_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhotoInvalid)
}

// IsPhotoInvalidDimensions reports whether err is PHOTO_INVALID_DIMENSIONS.
func ( error) bool {
	return tgerr.Is(, ErrPhotoInvalidDimensions)
}

// IsPhotoSaveFileInvalid reports whether err is PHOTO_SAVE_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPhotoSaveFileInvalid)
}

// IsPhotoThumbURLEmpty reports whether err is PHOTO_THUMB_URL_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrPhotoThumbURLEmpty)
}

// IsPinnedDialogsTooMuch reports whether err is PINNED_DIALOGS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrPinnedDialogsTooMuch)
}

// IsPinRestricted reports whether err is PIN_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrPinRestricted)
}

// IsPollAnswersInvalid reports whether err is POLL_ANSWERS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPollAnswersInvalid)
}

// IsPollAnswerInvalid reports whether err is POLL_ANSWER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPollAnswerInvalid)
}

// IsPollOptionDuplicate reports whether err is POLL_OPTION_DUPLICATE.
func ( error) bool {
	return tgerr.Is(, ErrPollOptionDuplicate)
}

// IsPollOptionInvalid reports whether err is POLL_OPTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPollOptionInvalid)
}

// IsPollQuestionInvalid reports whether err is POLL_QUESTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPollQuestionInvalid)
}

// IsPollVoteRequired reports whether err is POLL_VOTE_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPollVoteRequired)
}

// IsPrecheckoutFailed reports whether err is PRECHECKOUT_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrPrecheckoutFailed)
}

// IsPremiumAccountRequired reports whether err is PREMIUM_ACCOUNT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPremiumAccountRequired)
}

// IsPremiumCurrentlyUnavailable reports whether err is PREMIUM_CURRENTLY_UNAVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrPremiumCurrentlyUnavailable)
}

// IsPremiumPurposeInvalid reports whether err is PREMIUM_PURPOSE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPremiumPurposeInvalid)
}

// IsPremiumSubActiveUntil reports whether err is PREMIUM_SUB_ACTIVE_UNTIL.
func ( error) bool {
	return tgerr.Is(, ErrPremiumSubActiveUntil)
}

// IsPreviousChatImportActiveWaitMin reports whether err is PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN.
func ( error) bool {
	return tgerr.Is(, ErrPreviousChatImportActiveWaitMin)
}

// IsPricingChatInvalid reports whether err is PRICING_CHAT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPricingChatInvalid)
}

// IsPrivacyKeyInvalid reports whether err is PRIVACY_KEY_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPrivacyKeyInvalid)
}

// IsPrivacyPremiumRequired reports whether err is PRIVACY_PREMIUM_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPrivacyPremiumRequired)
}

// IsPrivacyTooLong reports whether err is PRIVACY_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrPrivacyTooLong)
}

// IsPrivacyValueInvalid reports whether err is PRIVACY_VALUE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPrivacyValueInvalid)
}

// IsPublicChannelMissing reports whether err is PUBLIC_CHANNEL_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrPublicChannelMissing)
}

// IsPublicKeyRequired reports whether err is PUBLIC_KEY_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrPublicKeyRequired)
}

// IsPurposeInvalid reports whether err is PURPOSE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrPurposeInvalid)
}

// IsQueryIDEmpty reports whether err is QUERY_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrQueryIDEmpty)
}

// IsQueryIDInvalid reports whether err is QUERY_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrQueryIDInvalid)
}

// IsQueryTooShort reports whether err is QUERY_TOO_SHORT.
func ( error) bool {
	return tgerr.Is(, ErrQueryTooShort)
}

// IsQuickRepliesBotNotAllowed reports whether err is QUICK_REPLIES_BOT_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrQuickRepliesBotNotAllowed)
}

// IsQuickRepliesTooMuch reports whether err is QUICK_REPLIES_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrQuickRepliesTooMuch)
}

// IsQuizAnswerMissing reports whether err is QUIZ_ANSWER_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrQuizAnswerMissing)
}

// IsQuizCorrectAnswersEmpty reports whether err is QUIZ_CORRECT_ANSWERS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrQuizCorrectAnswersEmpty)
}

// IsQuizCorrectAnswersTooMuch reports whether err is QUIZ_CORRECT_ANSWERS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrQuizCorrectAnswersTooMuch)
}

// IsQuizCorrectAnswerInvalid reports whether err is QUIZ_CORRECT_ANSWER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrQuizCorrectAnswerInvalid)
}

// IsQuizMultipleInvalid reports whether err is QUIZ_MULTIPLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrQuizMultipleInvalid)
}

// IsQuoteTextInvalid reports whether err is QUOTE_TEXT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrQuoteTextInvalid)
}

// IsRaiseHandForbidden reports whether err is RAISE_HAND_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrRaiseHandForbidden)
}

// IsRandomIDDuplicate reports whether err is RANDOM_ID_DUPLICATE.
func ( error) bool {
	return tgerr.Is(, ErrRandomIDDuplicate)
}

// IsRandomIDEmpty reports whether err is RANDOM_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrRandomIDEmpty)
}

// IsRandomIDExpired reports whether err is RANDOM_ID_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrRandomIDExpired)
}

// IsRandomIDInvalid reports whether err is RANDOM_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRandomIDInvalid)
}

// IsRandomLengthInvalid reports whether err is RANDOM_LENGTH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRandomLengthInvalid)
}

// IsRangesInvalid reports whether err is RANGES_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRangesInvalid)
}

// IsReactionsCountInvalid reports whether err is REACTIONS_COUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReactionsCountInvalid)
}

// IsReactionsTooMany reports whether err is REACTIONS_TOO_MANY.
func ( error) bool {
	return tgerr.Is(, ErrReactionsTooMany)
}

// IsReactionEmpty reports whether err is REACTION_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrReactionEmpty)
}

// IsReactionInvalid reports whether err is REACTION_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReactionInvalid)
}

// IsReceiptEmpty reports whether err is RECEIPT_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrReceiptEmpty)
}

// IsReplyMarkupBuyEmpty reports whether err is REPLY_MARKUP_BUY_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrReplyMarkupBuyEmpty)
}

// IsReplyMarkupGameEmpty reports whether err is REPLY_MARKUP_GAME_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrReplyMarkupGameEmpty)
}

// IsReplyMarkupInvalid reports whether err is REPLY_MARKUP_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReplyMarkupInvalid)
}

// IsReplyMarkupTooLong reports whether err is REPLY_MARKUP_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrReplyMarkupTooLong)
}

// IsReplyMessagesTooMuch reports whether err is REPLY_MESSAGES_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrReplyMessagesTooMuch)
}

// IsReplyMessageIDInvalid reports whether err is REPLY_MESSAGE_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReplyMessageIDInvalid)
}

// IsReplyToInvalid reports whether err is REPLY_TO_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReplyToInvalid)
}

// IsReplyToMonoforumPeerInvalid reports whether err is REPLY_TO_MONOFORUM_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReplyToMonoforumPeerInvalid)
}

// IsReplyToUserInvalid reports whether err is REPLY_TO_USER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrReplyToUserInvalid)
}

// IsRequestTokenInvalid reports whether err is REQUEST_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRequestTokenInvalid)
}

// IsResellStarsTooFew reports whether err is RESELL_STARS_TOO_FEW.
func ( error) bool {
	return tgerr.Is(, ErrResellStarsTooFew)
}

// IsResellStarsTooMuch reports whether err is RESELL_STARS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrResellStarsTooMuch)
}

// IsResetRequestMissing reports whether err is RESET_REQUEST_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrResetRequestMissing)
}

// IsResultsTooMuch reports whether err is RESULTS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrResultsTooMuch)
}

// IsResultIDDuplicate reports whether err is RESULT_ID_DUPLICATE.
func ( error) bool {
	return tgerr.Is(, ErrResultIDDuplicate)
}

// IsResultIDEmpty reports whether err is RESULT_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrResultIDEmpty)
}

// IsResultIDInvalid reports whether err is RESULT_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrResultIDInvalid)
}

// IsResultTypeInvalid reports whether err is RESULT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrResultTypeInvalid)
}

// IsRevoteNotAllowed reports whether err is REVOTE_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrRevoteNotAllowed)
}

// IsRightsNotModified reports whether err is RIGHTS_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrRightsNotModified)
}

// IsRightForbidden reports whether err is RIGHT_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrRightForbidden)
}

// IsRingtoneInvalid reports whether err is RINGTONE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRingtoneInvalid)
}

// IsRingtoneMimeInvalid reports whether err is RINGTONE_MIME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrRingtoneMimeInvalid)
}

// IsRsaDecryptFailed reports whether err is RSA_DECRYPT_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrRsaDecryptFailed)
}

// IsSavedIDEmpty reports whether err is SAVED_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrSavedIDEmpty)
}

// IsSavedPeerInvalid reports whether err is SAVED_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSavedPeerInvalid)
}

// IsScheduleBotNotAllowed reports whether err is SCHEDULE_BOT_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrScheduleBotNotAllowed)
}

// IsScheduleDateInvalid reports whether err is SCHEDULE_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrScheduleDateInvalid)
}

// IsScheduleDateTooLate reports whether err is SCHEDULE_DATE_TOO_LATE.
func ( error) bool {
	return tgerr.Is(, ErrScheduleDateTooLate)
}

// IsScheduleStatusPrivate reports whether err is SCHEDULE_STATUS_PRIVATE.
func ( error) bool {
	return tgerr.Is(, ErrScheduleStatusPrivate)
}

// IsScheduleTooMuch reports whether err is SCHEDULE_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrScheduleTooMuch)
}

// IsScoreInvalid reports whether err is SCORE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrScoreInvalid)
}

// IsSearchQueryEmpty reports whether err is SEARCH_QUERY_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrSearchQueryEmpty)
}

// IsSearchWithLinkNotSupported reports whether err is SEARCH_WITH_LINK_NOT_SUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrSearchWithLinkNotSupported)
}

// IsSecondsInvalid reports whether err is SECONDS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSecondsInvalid)
}

// IsSecureSecretRequired reports whether err is SECURE_SECRET_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrSecureSecretRequired)
}

// IsSelfDeleteRestricted reports whether err is SELF_DELETE_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrSelfDeleteRestricted)
}

// IsSendAsPeerInvalid reports whether err is SEND_AS_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSendAsPeerInvalid)
}

// IsSendCodeUnavailable reports whether err is SEND_CODE_UNAVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrSendCodeUnavailable)
}

// IsSendMediaInvalid reports whether err is SEND_MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSendMediaInvalid)
}

// IsSendMessageGameInvalid reports whether err is SEND_MESSAGE_GAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSendMessageGameInvalid)
}

// IsSendMessageMediaInvalid reports whether err is SEND_MESSAGE_MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSendMessageMediaInvalid)
}

// IsSendMessageTypeInvalid reports whether err is SEND_MESSAGE_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSendMessageTypeInvalid)
}

// IsSensitiveChangeForbidden reports whether err is SENSITIVE_CHANGE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrSensitiveChangeForbidden)
}

// IsSessionTooFresh reports whether err is SESSION_TOO_FRESH.
func ( error) bool {
	return tgerr.Is(, ErrSessionTooFresh)
}

// IsSettingsInvalid reports whether err is SETTINGS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSettingsInvalid)
}

// IsSHA256HashInvalid reports whether err is SHA256_HASH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSHA256HashInvalid)
}

// IsShortcutInvalid reports whether err is SHORTCUT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrShortcutInvalid)
}

// IsShortNameInvalid reports whether err is SHORT_NAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrShortNameInvalid)
}

// IsShortNameOccupied reports whether err is SHORT_NAME_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrShortNameOccupied)
}

// IsSignInFailed reports whether err is SIGN_IN_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrSignInFailed)
}

// IsSlotsEmpty reports whether err is SLOTS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrSlotsEmpty)
}

// IsSlowmodeMultiMsgsDisabled reports whether err is SLOWMODE_MULTI_MSGS_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrSlowmodeMultiMsgsDisabled)
}

// IsSlowmodeWait reports whether err is SLOWMODE_WAIT.
func ( error) bool {
	return tgerr.Is(, ErrSlowmodeWait)
}

// IsSlugInvalid reports whether err is SLUG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSlugInvalid)
}

// IsSmsjobIDInvalid reports whether err is SMSJOB_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSmsjobIDInvalid)
}

// IsSMSCodeCreateFailed reports whether err is SMS_CODE_CREATE_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrSMSCodeCreateFailed)
}

// IsSRPAInvalid reports whether err is SRP_A_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSRPAInvalid)
}

// IsSRPIDInvalid reports whether err is SRP_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSRPIDInvalid)
}

// IsSRPPasswordChanged reports whether err is SRP_PASSWORD_CHANGED.
func ( error) bool {
	return tgerr.Is(, ErrSRPPasswordChanged)
}

// IsStargiftAlreadyConverted reports whether err is STARGIFT_ALREADY_CONVERTED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftAlreadyConverted)
}

// IsStargiftAlreadyRefunded reports whether err is STARGIFT_ALREADY_REFUNDED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftAlreadyRefunded)
}

// IsStargiftAlreadyUpgraded reports whether err is STARGIFT_ALREADY_UPGRADED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftAlreadyUpgraded)
}

// IsStargiftAttributeInvalid reports whether err is STARGIFT_ATTRIBUTE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftAttributeInvalid)
}

// IsStargiftExportInProgress reports whether err is STARGIFT_EXPORT_IN_PROGRESS.
func ( error) bool {
	return tgerr.Is(, ErrStargiftExportInProgress)
}

// IsStargiftInvalid reports whether err is STARGIFT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftInvalid)
}

// IsStargiftMessageInvalid reports whether err is STARGIFT_MESSAGE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftMessageInvalid)
}

// IsStargiftNotFound reports whether err is STARGIFT_NOT_FOUND.
func ( error) bool {
	return tgerr.Is(, ErrStargiftNotFound)
}

// IsStargiftNotOwner reports whether err is STARGIFT_NOT_OWNER.
func ( error) bool {
	return tgerr.Is(, ErrStargiftNotOwner)
}

// IsStargiftNotUnique reports whether err is STARGIFT_NOT_UNIQUE.
func ( error) bool {
	return tgerr.Is(, ErrStargiftNotUnique)
}

// IsStargiftOfferInvalid reports whether err is STARGIFT_OFFER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftOfferInvalid)
}

// IsStargiftOfferNotAllowed reports whether err is STARGIFT_OFFER_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftOfferNotAllowed)
}

// IsStargiftOwnerInvalid reports whether err is STARGIFT_OWNER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftOwnerInvalid)
}

// IsStargiftPeerInvalid reports whether err is STARGIFT_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftPeerInvalid)
}

// IsStargiftResellCurrencyNotAllowed reports whether err is STARGIFT_RESELL_CURRENCY_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftResellCurrencyNotAllowed)
}

// IsStargiftResellTooEarly reports whether err is STARGIFT_RESELL_TOO_EARLY.
func ( error) bool {
	return tgerr.Is(, ErrStargiftResellTooEarly)
}

// IsStargiftSlugInvalid reports whether err is STARGIFT_SLUG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStargiftSlugInvalid)
}

// IsStargiftTransferTooEarly reports whether err is STARGIFT_TRANSFER_TOO_EARLY.
func ( error) bool {
	return tgerr.Is(, ErrStargiftTransferTooEarly)
}

// IsStargiftUpgradeUnavailable reports whether err is STARGIFT_UPGRADE_UNAVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrStargiftUpgradeUnavailable)
}

// IsStargiftUsageLimited reports whether err is STARGIFT_USAGE_LIMITED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftUsageLimited)
}

// IsStargiftUserUsageLimited reports whether err is STARGIFT_USER_USAGE_LIMITED.
func ( error) bool {
	return tgerr.Is(, ErrStargiftUserUsageLimited)
}

// IsStarrefAwaitingEnd reports whether err is STARREF_AWAITING_END.
func ( error) bool {
	return tgerr.Is(, ErrStarrefAwaitingEnd)
}

// IsStarrefExpired reports whether err is STARREF_EXPIRED.
func ( error) bool {
	return tgerr.Is(, ErrStarrefExpired)
}

// IsStarrefHashRevoked reports whether err is STARREF_HASH_REVOKED.
func ( error) bool {
	return tgerr.Is(, ErrStarrefHashRevoked)
}

// IsStarrefPermilleInvalid reports whether err is STARREF_PERMILLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStarrefPermilleInvalid)
}

// IsStarrefPermilleTooLow reports whether err is STARREF_PERMILLE_TOO_LOW.
func ( error) bool {
	return tgerr.Is(, ErrStarrefPermilleTooLow)
}

// IsStarsAmountInvalid reports whether err is STARS_AMOUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStarsAmountInvalid)
}

// IsStarsFormAmountMismatch reports whether err is STARS_FORM_AMOUNT_MISMATCH.
func ( error) bool {
	return tgerr.Is(, ErrStarsFormAmountMismatch)
}

// IsStarsInvoiceInvalid reports whether err is STARS_INVOICE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStarsInvoiceInvalid)
}

// IsStarsPaymentRequired reports whether err is STARS_PAYMENT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrStarsPaymentRequired)
}

// IsStartParamEmpty reports whether err is START_PARAM_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrStartParamEmpty)
}

// IsStartParamInvalid reports whether err is START_PARAM_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStartParamInvalid)
}

// IsStartParamTooLong reports whether err is START_PARAM_TOO_LONG.
func ( error) bool {
	return tgerr.Is(, ErrStartParamTooLong)
}

// IsStickerpackStickersTooMuch reports whether err is STICKERPACK_STICKERS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrStickerpackStickersTooMuch)
}

// IsStickersetInvalid reports whether err is STICKERSET_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickersetInvalid)
}

// IsStickersetOwnerAnonymous reports whether err is STICKERSET_OWNER_ANONYMOUS.
func ( error) bool {
	return tgerr.Is(, ErrStickersetOwnerAnonymous)
}

// IsStickersEmpty reports whether err is STICKERS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrStickersEmpty)
}

// IsStickersTooMuch reports whether err is STICKERS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrStickersTooMuch)
}

// IsStickerDocumentInvalid reports whether err is STICKER_DOCUMENT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerDocumentInvalid)
}

// IsStickerEmojiInvalid reports whether err is STICKER_EMOJI_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerEmojiInvalid)
}

// IsStickerFileInvalid reports whether err is STICKER_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerFileInvalid)
}

// IsStickerGifDimensions reports whether err is STICKER_GIF_DIMENSIONS.
func ( error) bool {
	return tgerr.Is(, ErrStickerGifDimensions)
}

// IsStickerIDInvalid reports whether err is STICKER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerIDInvalid)
}

// IsStickerInvalid reports whether err is STICKER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerInvalid)
}

// IsStickerMimeInvalid reports whether err is STICKER_MIME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStickerMimeInvalid)
}

// IsStickerPngDimensions reports whether err is STICKER_PNG_DIMENSIONS.
func ( error) bool {
	return tgerr.Is(, ErrStickerPngDimensions)
}

// IsStickerPngNopng reports whether err is STICKER_PNG_NOPNG.
func ( error) bool {
	return tgerr.Is(, ErrStickerPngNopng)
}

// IsStickerTgsNodoc reports whether err is STICKER_TGS_NODOC.
func ( error) bool {
	return tgerr.Is(, ErrStickerTgsNodoc)
}

// IsStickerTgsNotgs reports whether err is STICKER_TGS_NOTGS.
func ( error) bool {
	return tgerr.Is(, ErrStickerTgsNotgs)
}

// IsStickerThumbPngNopng reports whether err is STICKER_THUMB_PNG_NOPNG.
func ( error) bool {
	return tgerr.Is(, ErrStickerThumbPngNopng)
}

// IsStickerThumbTgsNotgs reports whether err is STICKER_THUMB_TGS_NOTGS.
func ( error) bool {
	return tgerr.Is(, ErrStickerThumbTgsNotgs)
}

// IsStickerVideoBig reports whether err is STICKER_VIDEO_BIG.
func ( error) bool {
	return tgerr.Is(, ErrStickerVideoBig)
}

// IsStickerVideoNodoc reports whether err is STICKER_VIDEO_NODOC.
func ( error) bool {
	return tgerr.Is(, ErrStickerVideoNodoc)
}

// IsStickerVideoNowebm reports whether err is STICKER_VIDEO_NOWEBM.
func ( error) bool {
	return tgerr.Is(, ErrStickerVideoNowebm)
}

// IsStoriesNeverCreated reports whether err is STORIES_NEVER_CREATED.
func ( error) bool {
	return tgerr.Is(, ErrStoriesNeverCreated)
}

// IsStoriesTooMuch reports whether err is STORIES_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrStoriesTooMuch)
}

// IsStoryIDEmpty reports whether err is STORY_ID_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrStoryIDEmpty)
}

// IsStoryIDInvalid reports whether err is STORY_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStoryIDInvalid)
}

// IsStoryNotModified reports whether err is STORY_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrStoryNotModified)
}

// IsStoryPeriodInvalid reports whether err is STORY_PERIOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrStoryPeriodInvalid)
}

// IsStorySendFloodMonthly reports whether err is STORY_SEND_FLOOD_MONTHLY.
func ( error) bool {
	return tgerr.Is(, ErrStorySendFloodMonthly)
}

// IsStorySendFloodWeekly reports whether err is STORY_SEND_FLOOD_WEEKLY.
func ( error) bool {
	return tgerr.Is(, ErrStorySendFloodWeekly)
}

// IsSubscriptionExportMissing reports whether err is SUBSCRIPTION_EXPORT_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrSubscriptionExportMissing)
}

// IsSubscriptionIDInvalid reports whether err is SUBSCRIPTION_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSubscriptionIDInvalid)
}

// IsSubscriptionPeriodInvalid reports whether err is SUBSCRIPTION_PERIOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSubscriptionPeriodInvalid)
}

// IsSuggestedPostAmountInvalid reports whether err is SUGGESTED_POST_AMOUNT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSuggestedPostAmountInvalid)
}

// IsSuggestedPostPeerInvalid reports whether err is SUGGESTED_POST_PEER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSuggestedPostPeerInvalid)
}

// IsSwitchPmTextEmpty reports whether err is SWITCH_PM_TEXT_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrSwitchPmTextEmpty)
}

// IsSwitchWebviewURLInvalid reports whether err is SWITCH_WEBVIEW_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrSwitchWebviewURLInvalid)
}

// IsTakeoutInitDelay reports whether err is TAKEOUT_INIT_DELAY.
func ( error) bool {
	return tgerr.Is(, ErrTakeoutInitDelay)
}

// IsTakeoutInvalid reports whether err is TAKEOUT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTakeoutInvalid)
}

// IsTakeoutRequired reports whether err is TAKEOUT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrTakeoutRequired)
}

// IsTaskAlreadyExists reports whether err is TASK_ALREADY_EXISTS.
func ( error) bool {
	return tgerr.Is(, ErrTaskAlreadyExists)
}

// IsTempAuthKeyAlreadyBound reports whether err is TEMP_AUTH_KEY_ALREADY_BOUND.
func ( error) bool {
	return tgerr.Is(, ErrTempAuthKeyAlreadyBound)
}

// IsTempAuthKeyEmpty reports whether err is TEMP_AUTH_KEY_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTempAuthKeyEmpty)
}

// IsTermsURLInvalid reports whether err is TERMS_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTermsURLInvalid)
}

// IsThemeFileInvalid reports whether err is THEME_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeFileInvalid)
}

// IsThemeFormatInvalid reports whether err is THEME_FORMAT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeFormatInvalid)
}

// IsThemeInvalid reports whether err is THEME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeInvalid)
}

// IsThemeMimeInvalid reports whether err is THEME_MIME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeMimeInvalid)
}

// IsThemeParamsInvalid reports whether err is THEME_PARAMS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeParamsInvalid)
}

// IsThemeSlugInvalid reports whether err is THEME_SLUG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeSlugInvalid)
}

// IsThemeTitleInvalid reports whether err is THEME_TITLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrThemeTitleInvalid)
}

// IsTimezoneInvalid reports whether err is TIMEZONE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTimezoneInvalid)
}

// IsTitleInvalid reports whether err is TITLE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTitleInvalid)
}

// IsTmpPasswordDisabled reports whether err is TMP_PASSWORD_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrTmpPasswordDisabled)
}

// IsTmpPasswordInvalid reports whether err is TMP_PASSWORD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTmpPasswordInvalid)
}

// IsTodoItemsEmpty reports whether err is TODO_ITEMS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTodoItemsEmpty)
}

// IsTodoItemDuplicate reports whether err is TODO_ITEM_DUPLICATE.
func ( error) bool {
	return tgerr.Is(, ErrTodoItemDuplicate)
}

// IsTodoNotModified reports whether err is TODO_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrTodoNotModified)
}

// IsTokenEmpty reports whether err is TOKEN_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTokenEmpty)
}

// IsTokenInvalid reports whether err is TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTokenInvalid)
}

// IsTokenTypeInvalid reports whether err is TOKEN_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTokenTypeInvalid)
}

// IsTopicClosed reports whether err is TOPIC_CLOSED.
func ( error) bool {
	return tgerr.Is(, ErrTopicClosed)
}

// IsTopicDeleted reports whether err is TOPIC_DELETED.
func ( error) bool {
	return tgerr.Is(, ErrTopicDeleted)
}

// IsTopicIDInvalid reports whether err is TOPIC_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTopicIDInvalid)
}

// IsToIDInvalid reports whether err is TO_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrToIDInvalid)
}

// IsToLangInvalid reports whether err is TO_LANG_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrToLangInvalid)
}

// IsTransactionIDInvalid reports whether err is TRANSACTION_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTransactionIDInvalid)
}

// IsTranscriptionFailed reports whether err is TRANSCRIPTION_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrTranscriptionFailed)
}

// IsTranslateReqFailed reports whether err is TRANSLATE_REQ_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrTranslateReqFailed)
}

// IsTranslateReqQuotaExceeded reports whether err is TRANSLATE_REQ_QUOTA_EXCEEDED.
func ( error) bool {
	return tgerr.Is(, ErrTranslateReqQuotaExceeded)
}

// IsTranslationsDisabled reports whether err is TRANSLATIONS_DISABLED.
func ( error) bool {
	return tgerr.Is(, ErrTranslationsDisabled)
}

// IsTranslationTimeout reports whether err is TRANSLATION_TIMEOUT.
func ( error) bool {
	return tgerr.Is(, ErrTranslationTimeout)
}

// IsTTLDaysInvalid reports whether err is TTL_DAYS_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTTLDaysInvalid)
}

// IsTTLMediaInvalid reports whether err is TTL_MEDIA_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTTLMediaInvalid)
}

// IsTTLPeriodInvalid reports whether err is TTL_PERIOD_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrTTLPeriodInvalid)
}

// IsTypesEmpty reports whether err is TYPES_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTypesEmpty)
}

// IsTimeout reports whether err is Timeout.
func ( error) bool {
	return tgerr.Is(, ErrTimeout)
}

// IsUnsupported reports whether err is UNSUPPORTED.
func ( error) bool {
	return tgerr.Is(, ErrUnsupported)
}

// IsUntilDateInvalid reports whether err is UNTIL_DATE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUntilDateInvalid)
}

// IsUpdateAppToLogin reports whether err is UPDATE_APP_TO_LOGIN.
func ( error) bool {
	return tgerr.Is(, ErrUpdateAppToLogin)
}

// IsURLInvalid reports whether err is URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrURLInvalid)
}

// IsUsageLimitInvalid reports whether err is USAGE_LIMIT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUsageLimitInvalid)
}

// IsUsernamesActiveTooMuch reports whether err is USERNAMES_ACTIVE_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrUsernamesActiveTooMuch)
}

// IsUsernameInvalid reports whether err is USERNAME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUsernameInvalid)
}

// IsUsernameNotModified reports whether err is USERNAME_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrUsernameNotModified)
}

// IsUsernameNotOccupied reports whether err is USERNAME_NOT_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrUsernameNotOccupied)
}

// IsUsernameOccupied reports whether err is USERNAME_OCCUPIED.
func ( error) bool {
	return tgerr.Is(, ErrUsernameOccupied)
}

// IsUsernamePurchaseAvailable reports whether err is USERNAME_PURCHASE_AVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrUsernamePurchaseAvailable)
}

// IsUserpicPrivacyRequired reports whether err is USERPIC_PRIVACY_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrUserpicPrivacyRequired)
}

// IsUserpicUploadRequired reports whether err is USERPIC_UPLOAD_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrUserpicUploadRequired)
}

// IsUsersTooFew reports whether err is USERS_TOO_FEW.
func ( error) bool {
	return tgerr.Is(, ErrUsersTooFew)
}

// IsUsersTooMuch reports whether err is USERS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrUsersTooMuch)
}

// IsUserAdminInvalid reports whether err is USER_ADMIN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUserAdminInvalid)
}

// IsUserAlreadyInvited reports whether err is USER_ALREADY_INVITED.
func ( error) bool {
	return tgerr.Is(, ErrUserAlreadyInvited)
}

// IsUserAlreadyParticipant reports whether err is USER_ALREADY_PARTICIPANT.
func ( error) bool {
	return tgerr.Is(, ErrUserAlreadyParticipant)
}

// IsUserBannedInChannel reports whether err is USER_BANNED_IN_CHANNEL.
func ( error) bool {
	return tgerr.Is(, ErrUserBannedInChannel)
}

// IsUserBlocked reports whether err is USER_BLOCKED.
func ( error) bool {
	return tgerr.Is(, ErrUserBlocked)
}

// IsUserBot reports whether err is USER_BOT.
func ( error) bool {
	return tgerr.Is(, ErrUserBot)
}

// IsUserBotInvalid reports whether err is USER_BOT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUserBotInvalid)
}

// IsUserBotRequired reports whether err is USER_BOT_REQUIRED.
func ( error) bool {
	return tgerr.Is(, ErrUserBotRequired)
}

// IsUserChannelsTooMuch reports whether err is USER_CHANNELS_TOO_MUCH.
func ( error) bool {
	return tgerr.Is(, ErrUserChannelsTooMuch)
}

// IsUserCreator reports whether err is USER_CREATOR.
func ( error) bool {
	return tgerr.Is(, ErrUserCreator)
}

// IsUserDeleted reports whether err is USER_DELETED.
func ( error) bool {
	return tgerr.Is(, ErrUserDeleted)
}

// IsUserGiftUnavailable reports whether err is USER_GIFT_UNAVAILABLE.
func ( error) bool {
	return tgerr.Is(, ErrUserGiftUnavailable)
}

// IsUserIDInvalid reports whether err is USER_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUserIDInvalid)
}

// IsUserInvalid reports whether err is USER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUserInvalid)
}

// IsUserIsBlocked reports whether err is USER_IS_BLOCKED.
func ( error) bool {
	return tgerr.Is(, ErrUserIsBlocked)
}

// IsUserIsBot reports whether err is USER_IS_BOT.
func ( error) bool {
	return tgerr.Is(, ErrUserIsBot)
}

// IsUserKicked reports whether err is USER_KICKED.
func ( error) bool {
	return tgerr.Is(, ErrUserKicked)
}

// IsUserNotMutualContact reports whether err is USER_NOT_MUTUAL_CONTACT.
func ( error) bool {
	return tgerr.Is(, ErrUserNotMutualContact)
}

// IsUserNotParticipant reports whether err is USER_NOT_PARTICIPANT.
func ( error) bool {
	return tgerr.Is(, ErrUserNotParticipant)
}

// IsUserPermissionDenied reports whether err is USER_PERMISSION_DENIED.
func ( error) bool {
	return tgerr.Is(, ErrUserPermissionDenied)
}

// IsUserPrivacyRestricted reports whether err is USER_PRIVACY_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrUserPrivacyRestricted)
}

// IsUserPublicMissing reports whether err is USER_PUBLIC_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrUserPublicMissing)
}

// IsUserRestricted reports whether err is USER_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrUserRestricted)
}

// IsUserVolumeInvalid reports whether err is USER_VOLUME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrUserVolumeInvalid)
}

// IsVenueIDInvalid reports whether err is VENUE_ID_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrVenueIDInvalid)
}

// IsVideoContentTypeInvalid reports whether err is VIDEO_CONTENT_TYPE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrVideoContentTypeInvalid)
}

// IsVideoFileInvalid reports whether err is VIDEO_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrVideoFileInvalid)
}

// IsVideoPauseForbidden reports whether err is VIDEO_PAUSE_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrVideoPauseForbidden)
}

// IsVideoStopForbidden reports whether err is VIDEO_STOP_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrVideoStopForbidden)
}

// IsVideoTitleEmpty reports whether err is VIDEO_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrVideoTitleEmpty)
}

// IsVoiceMessagesForbidden reports whether err is VOICE_MESSAGES_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrVoiceMessagesForbidden)
}

// IsVolumeMoveInvalid reports whether err is VOLUME_MOVE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrVolumeMoveInvalid)
}

// IsWallpaperFileInvalid reports whether err is WALLPAPER_FILE_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWallpaperFileInvalid)
}

// IsWallpaperInvalid reports whether err is WALLPAPER_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWallpaperInvalid)
}

// IsWallpaperMimeInvalid reports whether err is WALLPAPER_MIME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWallpaperMimeInvalid)
}

// IsWallpaperNotFound reports whether err is WALLPAPER_NOT_FOUND.
func ( error) bool {
	return tgerr.Is(, ErrWallpaperNotFound)
}

// IsWcConvertURLInvalid reports whether err is WC_CONVERT_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWcConvertURLInvalid)
}

// IsWebdocumentInvalid reports whether err is WEBDOCUMENT_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebdocumentInvalid)
}

// IsWebdocumentMimeInvalid reports whether err is WEBDOCUMENT_MIME_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebdocumentMimeInvalid)
}

// IsWebdocumentSizeTooBig reports whether err is WEBDOCUMENT_SIZE_TOO_BIG.
func ( error) bool {
	return tgerr.Is(, ErrWebdocumentSizeTooBig)
}

// IsWebdocumentURLEmpty reports whether err is WEBDOCUMENT_URL_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrWebdocumentURLEmpty)
}

// IsWebdocumentURLInvalid reports whether err is WEBDOCUMENT_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebdocumentURLInvalid)
}

// IsWebpageCurlFailed reports whether err is WEBPAGE_CURL_FAILED.
func ( error) bool {
	return tgerr.Is(, ErrWebpageCurlFailed)
}

// IsWebpageMediaEmpty reports whether err is WEBPAGE_MEDIA_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrWebpageMediaEmpty)
}

// IsWebpageNotFound reports whether err is WEBPAGE_NOT_FOUND.
func ( error) bool {
	return tgerr.Is(, ErrWebpageNotFound)
}

// IsWebpageURLInvalid reports whether err is WEBPAGE_URL_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebpageURLInvalid)
}

// IsWebpushAuthInvalid reports whether err is WEBPUSH_AUTH_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebpushAuthInvalid)
}

// IsWebpushKeyInvalid reports whether err is WEBPUSH_KEY_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebpushKeyInvalid)
}

// IsWebpushTokenInvalid reports whether err is WEBPUSH_TOKEN_INVALID.
func ( error) bool {
	return tgerr.Is(, ErrWebpushTokenInvalid)
}

// IsYourPrivacyRestricted reports whether err is YOUR_PRIVACY_RESTRICTED.
func ( error) bool {
	return tgerr.Is(, ErrYourPrivacyRestricted)
}

// IsYouBlockedUser reports whether err is YOU_BLOCKED_USER.
func ( error) bool {
	return tgerr.Is(, ErrYouBlockedUser)
}