// 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"
	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"
	ErrAnonymousReactionsDisabled       = "ANONYMOUS_REACTIONS_DISABLED"
	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"
	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"
	ErrBankCardNumberInvalid            = "BANK_CARD_NUMBER_INVALID"
	ErrBannedRightsInvalid              = "BANNED_RIGHTS_INVALID"
	ErrBoostsEmpty                      = "BOOSTS_EMPTY"
	ErrBoostsRequired                   = "BOOSTS_REQUIRED"
	ErrBoostPeerInvalid                 = "BOOST_PEER_INVALID"
	ErrBotsTooMuch                      = "BOTS_TOO_MUCH"
	ErrBotAppInvalid                    = "BOT_APP_INVALID"
	ErrBotChannelsNa                    = "BOT_CHANNELS_NA"
	ErrBotCommandDescriptionInvalid     = "BOT_COMMAND_DESCRIPTION_INVALID"
	ErrBotCommandInvalid                = "BOT_COMMAND_INVALID"
	ErrBotDomainInvalid                 = "BOT_DOMAIN_INVALID"
	ErrBotGroupsBlocked                 = "BOT_GROUPS_BLOCKED"
	ErrBotInlineDisabled                = "BOT_INLINE_DISABLED"
	ErrBotInvalid                       = "BOT_INVALID"
	ErrBotMissing                       = "BOT_MISSING"
	ErrBotOnesideNotAvail               = "BOT_ONESIDE_NOT_AVAIL"
	ErrBotPaymentsDisabled              = "BOT_PAYMENTS_DISABLED"
	ErrBotResponseTimeout               = "BOT_RESPONSE_TIMEOUT"
	ErrBotScoreNotModified              = "BOT_SCORE_NOT_MODIFIED"
	ErrBroadcastForbidden               = "BROADCAST_FORBIDDEN"
	ErrBroadcastIDInvalid               = "BROADCAST_ID_INVALID"
	ErrBroadcastPublicVotersForbidden   = "BROADCAST_PUBLIC_VOTERS_FORBIDDEN"
	ErrBroadcastRequired                = "BROADCAST_REQUIRED"
	ErrButtonDataInvalid                = "BUTTON_DATA_INVALID"
	ErrButtonTextInvalid                = "BUTTON_TEXT_INVALID"
	ErrButtonTypeInvalid                = "BUTTON_TYPE_INVALID"
	ErrButtonURLInvalid                 = "BUTTON_URL_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"
	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"
	ErrChannelParicipantMissing         = "CHANNEL_PARICIPANT_MISSING"
	ErrChannelPrivate                   = "CHANNEL_PRIVATE"
	ErrChannelPublicGroupNa             = "CHANNEL_PUBLIC_GROUP_NA"
	ErrChannelTooBig                    = "CHANNEL_TOO_BIG"
	ErrChannelTooLarge                  = "CHANNEL_TOO_LARGE"
	ErrChatlistExcludeInvalid           = "CHATLIST_EXCLUDE_INVALID"
	ErrChatAboutNotModified             = "CHAT_ABOUT_NOT_MODIFIED"
	ErrChatAboutTooLong                 = "CHAT_ABOUT_TOO_LONG"
	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"
	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"
	ErrChatSendStickersForbidden        = "CHAT_SEND_STICKERS_FORBIDDEN"
	ErrChatSendVideosForbidden          = "CHAT_SEND_VIDEOS_FORBIDDEN"
	ErrChatSendVoicesForbidden          = "CHAT_SEND_VOICES_FORBIDDEN"
	ErrChatTitleEmpty                   = "CHAT_TITLE_EMPTY"
	ErrChatTooBig                       = "CHAT_TOO_BIG"
	ErrChatWriteForbidden               = "CHAT_WRITE_FORBIDDEN"
	ErrCodeEmpty                        = "CODE_EMPTY"
	ErrCodeHashInvalid                  = "CODE_HASH_INVALID"
	ErrCodeInvalid                      = "CODE_INVALID"
	ErrColorInvalid                     = "COLOR_INVALID"
	ErrConnectionAPIIDInvalid           = "CONNECTION_API_ID_INVALID"
	ErrConnectionAppVersionEmpty        = "CONNECTION_APP_VERSION_EMPTY"
	ErrConnectionLayerInvalid           = "CONNECTION_LAYER_INVALID"
	ErrContactAddMissing                = "CONTACT_ADD_MISSING"
	ErrContactIDInvalid                 = "CONTACT_ID_INVALID"
	ErrContactNameEmpty                 = "CONTACT_NAME_EMPTY"
	ErrContactReqMissing                = "CONTACT_REQ_MISSING"
	ErrCreateCallFailed                 = "CREATE_CALL_FAILED"
	ErrCurrencyTotalAmountInvalid       = "CURRENCY_TOTAL_AMOUNT_INVALID"
	ErrCustomReactionsTooMany           = "CUSTOM_REACTIONS_TOO_MANY"
	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"
	ErrEmailHashExpired                 = "EMAIL_HASH_EXPIRED"
	ErrEmailInvalid                     = "EMAIL_INVALID"
	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"
	ErrEncryptionIDInvalid              = "ENCRYPTION_ID_INVALID"
	ErrEntitiesTooLong                  = "ENTITIES_TOO_LONG"
	ErrEntityBoundsInvalid              = "ENTITY_BOUNDS_INVALID"
	ErrEntityMentionUserInvalid         = "ENTITY_MENTION_USER_INVALID"
	ErrErrorTextEmpty                   = "ERROR_TEXT_EMPTY"
	ErrExpireDateInvalid                = "EXPIRE_DATE_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"
	ErrFileReference                    = "FILE_REFERENCE"
	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"
	ErrFolderIDInvalid                  = "FOLDER_ID_INVALID"
	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"
	ErrGameBotInvalid                   = "GAME_BOT_INVALID"
	ErrGeneralModifyIconForbidden       = "GENERAL_MODIFY_ICON_FORBIDDEN"
	ErrGeoPointInvalid                  = "GEO_POINT_INVALID"
	ErrGiftcodeNotAllowed               = "GIFTCODE_NOT_ALLOWED"
	ErrGiftSlugInvalid                  = "GIFT_SLUG_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"
	ErrHashInvalid                      = "HASH_INVALID"
	ErrHideRequesterMissing             = "HIDE_REQUESTER_MISSING"
	ErrImageProcessFailed               = "IMAGE_PROCESS_FAILED"
	ErrImportFileInvalid                = "IMPORT_FILE_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"
	ErrInputFilterInvalid               = "INPUT_FILTER_INVALID"
	ErrInputTextEmpty                   = "INPUT_TEXT_EMPTY"
	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"
	ErrInvoicePayloadInvalid            = "INVOICE_PAYLOAD_INVALID"
	ErrJoinAsPeerInvalid                = "JOIN_AS_PEER_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"
	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"
	ErrMemberNotFound                   = "MEMBER_NOT_FOUND"
	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"
	ErrMessagePollClosed                = "MESSAGE_POLL_CLOSED"
	ErrMessageTooLong                   = "MESSAGE_TOO_LONG"
	ErrMethodInvalid                    = "METHOD_INVALID"
	ErrMinDateInvalid                   = "MIN_DATE_INVALID"
	ErrMsgIDInvalid                     = "MSG_ID_INVALID"
	ErrMsgTooOld                        = "MSG_TOO_OLD"
	ErrMsgWaitFailed                    = "MSG_WAIT_FAILED"
	ErrMultiMediaTooLong                = "MULTI_MEDIA_TOO_LONG"
	ErrNewSaltInvalid                   = "NEW_SALT_INVALID"
	ErrNewSettingsEmpty                 = "NEW_SETTINGS_EMPTY"
	ErrNewSettingsInvalid               = "NEW_SETTINGS_INVALID"
	ErrNextOffsetInvalid                = "NEXT_OFFSET_INVALID"
	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"
	ErrParticipantsTooFew               = "PARTICIPANTS_TOO_FEW"
	ErrParticipantIDInvalid             = "PARTICIPANT_ID_INVALID"
	ErrParticipantJoinMissing           = "PARTICIPANT_JOIN_MISSING"
	ErrParticipantVersionOutdated       = "PARTICIPANT_VERSION_OUTDATED"
	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"
	ErrPaymentProviderInvalid           = "PAYMENT_PROVIDER_INVALID"
	ErrPaymentUnsupported               = "PAYMENT_UNSUPPORTED"
	ErrPeersListEmpty                   = "PEERS_LIST_EMPTY"
	ErrPeerHistoryEmpty                 = "PEER_HISTORY_EMPTY"
	ErrPeerIDInvalid                    = "PEER_ID_INVALID"
	ErrPeerIDNotSupported               = "PEER_ID_NOT_SUPPORTED"
	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"
	ErrPremiumAccountRequired           = "PREMIUM_ACCOUNT_REQUIRED"
	ErrPreviousChatImportActiveWaitMin  = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN"
	ErrPrivacyKeyInvalid                = "PRIVACY_KEY_INVALID"
	ErrPrivacyTooLong                   = "PRIVACY_TOO_LONG"
	ErrPrivacyValueInvalid              = "PRIVACY_VALUE_INVALID"
	ErrPublicChannelMissing             = "PUBLIC_CHANNEL_MISSING"
	ErrPublicKeyRequired                = "PUBLIC_KEY_REQUIRED"
	ErrQueryIDEmpty                     = "QUERY_ID_EMPTY"
	ErrQueryIDInvalid                   = "QUERY_ID_INVALID"
	ErrQueryTooShort                    = "QUERY_TOO_SHORT"
	ErrQuizAnswerMissing                = "QUIZ_ANSWER_MISSING"
	ErrQuizCorrectAnswersEmpty          = "QUIZ_CORRECT_ANSWERS_EMPTY"
	ErrQuizCorrectAnswersTooMuch        = "QUIZ_CORRECT_ANSWERS_TOO_MUCH"
	ErrQuizCorrectAnswerInvalid         = "QUIZ_CORRECT_ANSWER_INVALID"
	ErrQuizMultipleInvalid              = "QUIZ_MULTIPLE_INVALID"
	ErrRandomIDDuplicate                = "RANDOM_ID_DUPLICATE"
	ErrRandomIDEmpty                    = "RANDOM_ID_EMPTY"
	ErrRandomIDInvalid                  = "RANDOM_ID_INVALID"
	ErrRandomLengthInvalid              = "RANDOM_LENGTH_INVALID"
	ErrRangesInvalid                    = "RANGES_INVALID"
	ErrReactionsTooMany                 = "REACTIONS_TOO_MANY"
	ErrReactionEmpty                    = "REACTION_EMPTY"
	ErrReactionInvalid                  = "REACTION_INVALID"
	ErrReplyMarkupBuyEmpty              = "REPLY_MARKUP_BUY_EMPTY"
	ErrReplyMarkupInvalid               = "REPLY_MARKUP_INVALID"
	ErrReplyMarkupTooLong               = "REPLY_MARKUP_TOO_LONG"
	ErrReplyToInvalid                   = "REPLY_TO_INVALID"
	ErrReplyToUserInvalid               = "REPLY_TO_USER_INVALID"
	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"
	ErrRsaDecryptFailed                 = "RSA_DECRYPT_FAILED"
	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"
	ErrSendAsPeerInvalid                = "SEND_AS_PEER_INVALID"
	ErrSendCodeUnavailable              = "SEND_CODE_UNAVAILABLE"
	ErrSendMediaInvalid                 = "SEND_MEDIA_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"
	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"
	ErrSMSCodeCreateFailed              = "SMS_CODE_CREATE_FAILED"
	ErrSRPIDInvalid                     = "SRP_ID_INVALID"
	ErrSRPPasswordChanged               = "SRP_PASSWORD_CHANGED"
	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"
	ErrSwitchPmTextEmpty                = "SWITCH_PM_TEXT_EMPTY"
	ErrTakeoutInitDelay                 = "TAKEOUT_INIT_DELAY"
	ErrTakeoutRequired                  = "TAKEOUT_REQUIRED"
	ErrTaskAlreadyExists                = "TASK_ALREADY_EXISTS"
	ErrTempAuthKeyAlreadyBound          = "TEMP_AUTH_KEY_ALREADY_BOUND"
	ErrTempAuthKeyEmpty                 = "TEMP_AUTH_KEY_EMPTY"
	ErrThemeFileInvalid                 = "THEME_FILE_INVALID"
	ErrThemeFormatInvalid               = "THEME_FORMAT_INVALID"
	ErrThemeInvalid                     = "THEME_INVALID"
	ErrThemeMimeInvalid                 = "THEME_MIME_INVALID"
	ErrThemeTitleInvalid                = "THEME_TITLE_INVALID"
	ErrTitleInvalid                     = "TITLE_INVALID"
	ErrTmpPasswordDisabled              = "TMP_PASSWORD_DISABLED"
	ErrTokenEmpty                       = "TOKEN_EMPTY"
	ErrTokenInvalid                     = "TOKEN_INVALID"
	ErrTokenTypeInvalid                 = "TOKEN_TYPE_INVALID"
	ErrTopicsEmpty                      = "TOPICS_EMPTY"
	ErrTopicClosed                      = "TOPIC_CLOSED"
	ErrTopicCloseSeparately             = "TOPIC_CLOSE_SEPARATELY"
	ErrTopicDeleted                     = "TOPIC_DELETED"
	ErrTopicHideSeparately              = "TOPIC_HIDE_SEPARATELY"
	ErrTopicIDInvalid                   = "TOPIC_ID_INVALID"
	ErrTopicNotModified                 = "TOPIC_NOT_MODIFIED"
	ErrTopicTitleEmpty                  = "TOPIC_TITLE_EMPTY"
	ErrToLangInvalid                    = "TO_LANG_INVALID"
	ErrTranscriptionFailed              = "TRANSCRIPTION_FAILED"
	ErrTTLDaysInvalid                   = "TTL_DAYS_INVALID"
	ErrTTLMediaInvalid                  = "TTL_MEDIA_INVALID"
	ErrTTLPeriodInvalid                 = "TTL_PERIOD_INVALID"
	ErrTypesEmpty                       = "TYPES_EMPTY"
	ErrTimeout                          = "Timeout"
	ErrUntilDateInvalid                 = "UNTIL_DATE_INVALID"
	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"
	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"
	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"
	ErrVideoTitleEmpty                  = "VIDEO_TITLE_EMPTY"
	ErrVoiceMessagesForbidden           = "VOICE_MESSAGES_FORBIDDEN"
	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"
	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"
	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)
}

// 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)
}

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

// IsBotMissing reports whether err is BOT_MISSING.
func ( error) bool {
	return tgerr.Is(, ErrBotMissing)
}

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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

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

// 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)
}

// 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)
}

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

// 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)
}

// IsFileReference reports whether err is FILE_REFERENCE.
func ( error) bool {
	return tgerr.Is(, ErrFileReference)
}

// 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)
}

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

// 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)
}

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

// IsGeneralModifyIconForbidden reports whether err is GENERAL_MODIFY_ICON_FORBIDDEN.
func ( error) bool {
	return tgerr.Is(, ErrGeneralModifyIconForbidden)
}

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

// IsGiftcodeNotAllowed reports whether err is GIFTCODE_NOT_ALLOWED.
func ( error) bool {
	return tgerr.Is(, ErrGiftcodeNotAllowed)
}

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

// 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)
}

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

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

// 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)
}

// 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)
}

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

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// IsMemberNotFound reports whether err is MEMBER_NOT_FOUND.
func ( error) bool {
	return tgerr.Is(, ErrMemberNotFound)
}

// 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)
}

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

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

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

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

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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

// 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)
}

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

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

// 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)
}

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

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

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

// 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)
}

// 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)
}

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

// 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)
}

// 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)
}

// IsTopicsEmpty reports whether err is TOPICS_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTopicsEmpty)
}

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

// IsTopicCloseSeparately reports whether err is TOPIC_CLOSE_SEPARATELY.
func ( error) bool {
	return tgerr.Is(, ErrTopicCloseSeparately)
}

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

// IsTopicHideSeparately reports whether err is TOPIC_HIDE_SEPARATELY.
func ( error) bool {
	return tgerr.Is(, ErrTopicHideSeparately)
}

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

// IsTopicNotModified reports whether err is TOPIC_NOT_MODIFIED.
func ( error) bool {
	return tgerr.Is(, ErrTopicNotModified)
}

// IsTopicTitleEmpty reports whether err is TOPIC_TITLE_EMPTY.
func ( error) bool {
	return tgerr.Is(, ErrTopicTitleEmpty)
}

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

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

// 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)
}

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

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

// 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)
}

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