Files
mautrix-telegram/pkg/gotd/tg/tl_errors_gen.go
T
2025-12-03 17:11:20 +02:00

4045 lines
145 KiB
Go
Generated

// Code generated by gotdgen, DO NOT EDIT.
package tg
import (
"context"
"errors"
"fmt"
"sort"
"strings"
"go.uber.org/multierr"
"go.mau.fi/mautrix-telegram/pkg/gotd/bin"
"go.mau.fi/mautrix-telegram/pkg/gotd/tdjson"
"go.mau.fi/mautrix-telegram/pkg/gotd/tdp"
"go.mau.fi/mautrix-telegram/pkg/gotd/tgerr"
)
// 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"
ErrAllowPaymentRequired = "ALLOW_PAYMENT_REQUIRED"
ErrAnonymousReactionsDisabled = "ANONYMOUS_REACTIONS_DISABLED"
ErrAPIGiftRestrictedUpdateApp = "API_GIFT_RESTRICTED_UPDATE_APP"
ErrAPIIDInvalid = "API_ID_INVALID"
ErrAPIIDPublishedFlood = "API_ID_PUBLISHED_FLOOD"
ErrArticleTitleEmpty = "ARTICLE_TITLE_EMPTY"
ErrAudioContentURLEmpty = "AUDIO_CONTENT_URL_EMPTY"
ErrAudioTitleEmpty = "AUDIO_TITLE_EMPTY"
ErrAuthBytesInvalid = "AUTH_BYTES_INVALID"
ErrAuthKeyUnsynchronized = "AUTH_KEY_UNSYNCHRONIZED"
ErrAuthRestart = "AUTH_RESTART"
ErrAuthTokenAlreadyAccepted = "AUTH_TOKEN_ALREADY_ACCEPTED"
ErrAuthTokenException = "AUTH_TOKEN_EXCEPTION"
ErrAuthTokenExpired = "AUTH_TOKEN_EXPIRED"
ErrAuthTokenInvalid = "AUTH_TOKEN_INVALID"
ErrAuthTokenInvalidx = "AUTH_TOKEN_INVALIDX"
ErrAutoarchiveNotAvailable = "AUTOARCHIVE_NOT_AVAILABLE"
ErrBalanceTooLow = "BALANCE_TOO_LOW"
ErrBankCardNumberInvalid = "BANK_CARD_NUMBER_INVALID"
ErrBannedRightsInvalid = "BANNED_RIGHTS_INVALID"
ErrBirthdayInvalid = "BIRTHDAY_INVALID"
ErrBoostsEmpty = "BOOSTS_EMPTY"
ErrBoostsRequired = "BOOSTS_REQUIRED"
ErrBoostPeerInvalid = "BOOST_PEER_INVALID"
ErrBotsTooMuch = "BOTS_TOO_MUCH"
ErrBotAccessForbidden = "BOT_ACCESS_FORBIDDEN"
ErrBotAlreadyDisabled = "BOT_ALREADY_DISABLED"
ErrBotAppBotInvalid = "BOT_APP_BOT_INVALID"
ErrBotAppInvalid = "BOT_APP_INVALID"
ErrBotAppShortnameInvalid = "BOT_APP_SHORTNAME_INVALID"
ErrBotBusinessMissing = "BOT_BUSINESS_MISSING"
ErrBotChannelsNa = "BOT_CHANNELS_NA"
ErrBotCommandDescriptionInvalid = "BOT_COMMAND_DESCRIPTION_INVALID"
ErrBotCommandInvalid = "BOT_COMMAND_INVALID"
ErrBotDomainInvalid = "BOT_DOMAIN_INVALID"
ErrBotFallbackUnsupported = "BOT_FALLBACK_UNSUPPORTED"
ErrBotGamesDisabled = "BOT_GAMES_DISABLED"
ErrBotGroupsBlocked = "BOT_GROUPS_BLOCKED"
ErrBotInlineDisabled = "BOT_INLINE_DISABLED"
ErrBotInvalid = "BOT_INVALID"
ErrBotInvoiceInvalid = "BOT_INVOICE_INVALID"
ErrBotNotConnectedYet = "BOT_NOT_CONNECTED_YET"
ErrBotOnesideNotAvail = "BOT_ONESIDE_NOT_AVAIL"
ErrBotPaymentsDisabled = "BOT_PAYMENTS_DISABLED"
ErrBotResponseTimeout = "BOT_RESPONSE_TIMEOUT"
ErrBotScoreNotModified = "BOT_SCORE_NOT_MODIFIED"
ErrBotVerifierForbidden = "BOT_VERIFIER_FORBIDDEN"
ErrBotWebviewDisabled = "BOT_WEBVIEW_DISABLED"
ErrBroadcastForbidden = "BROADCAST_FORBIDDEN"
ErrBroadcastIDInvalid = "BROADCAST_ID_INVALID"
ErrBroadcastPublicVotersForbidden = "BROADCAST_PUBLIC_VOTERS_FORBIDDEN"
ErrBroadcastRequired = "BROADCAST_REQUIRED"
ErrBusinessAddressActive = "BUSINESS_ADDRESS_ACTIVE"
ErrBusinessConnectionInvalid = "BUSINESS_CONNECTION_INVALID"
ErrBusinessPeerInvalid = "BUSINESS_PEER_INVALID"
ErrBusinessPeerUsageMissing = "BUSINESS_PEER_USAGE_MISSING"
ErrBusinessRecipientsEmpty = "BUSINESS_RECIPIENTS_EMPTY"
ErrBusinessWorkHoursEmpty = "BUSINESS_WORK_HOURS_EMPTY"
ErrBusinessWorkHoursPeriodInvalid = "BUSINESS_WORK_HOURS_PERIOD_INVALID"
ErrButtonCopyTextInvalid = "BUTTON_COPY_TEXT_INVALID"
ErrButtonDataInvalid = "BUTTON_DATA_INVALID"
ErrButtonIDInvalid = "BUTTON_ID_INVALID"
ErrButtonInvalid = "BUTTON_INVALID"
ErrButtonPosInvalid = "BUTTON_POS_INVALID"
ErrButtonTextInvalid = "BUTTON_TEXT_INVALID"
ErrButtonTypeInvalid = "BUTTON_TYPE_INVALID"
ErrButtonURLInvalid = "BUTTON_URL_INVALID"
ErrButtonUserInvalid = "BUTTON_USER_INVALID"
ErrButtonUserPrivacyRestricted = "BUTTON_USER_PRIVACY_RESTRICTED"
ErrCallAlreadyAccepted = "CALL_ALREADY_ACCEPTED"
ErrCallAlreadyDeclined = "CALL_ALREADY_DECLINED"
ErrCallOccupyFailed = "CALL_OCCUPY_FAILED"
ErrCallPeerInvalid = "CALL_PEER_INVALID"
ErrCallProtocolCompatLayerInvalid = "CALL_PROTOCOL_COMPAT_LAYER_INVALID"
ErrCallProtocolFlagsInvalid = "CALL_PROTOCOL_FLAGS_INVALID"
ErrCallProtocolLayerInvalid = "CALL_PROTOCOL_LAYER_INVALID"
ErrCDNMethodInvalid = "CDN_METHOD_INVALID"
ErrCDNUploadTimeout = "CDN_UPLOAD_TIMEOUT"
ErrChannelsAdminLocatedTooMuch = "CHANNELS_ADMIN_LOCATED_TOO_MUCH"
ErrChannelsAdminPublicTooMuch = "CHANNELS_ADMIN_PUBLIC_TOO_MUCH"
ErrChannelsTooMuch = "CHANNELS_TOO_MUCH"
ErrChannelIDInvalid = "CHANNEL_ID_INVALID"
ErrChannelInvalid = "CHANNEL_INVALID"
ErrChannelMonoforumUnsupported = "CHANNEL_MONOFORUM_UNSUPPORTED"
ErrChannelParicipantMissing = "CHANNEL_PARICIPANT_MISSING"
ErrChannelPrivate = "CHANNEL_PRIVATE"
ErrChannelPublicGroupNa = "CHANNEL_PUBLIC_GROUP_NA"
ErrChannelTooBig = "CHANNEL_TOO_BIG"
ErrChannelTooLarge = "CHANNEL_TOO_LARGE"
ErrChargeAlreadyRefunded = "CHARGE_ALREADY_REFUNDED"
ErrChargeIDEmpty = "CHARGE_ID_EMPTY"
ErrChargeIDInvalid = "CHARGE_ID_INVALID"
ErrChatlinksTooMuch = "CHATLINKS_TOO_MUCH"
ErrChatlinkSlugEmpty = "CHATLINK_SLUG_EMPTY"
ErrChatlinkSlugExpired = "CHATLINK_SLUG_EXPIRED"
ErrChatlistsTooMuch = "CHATLISTS_TOO_MUCH"
ErrChatlistExcludeInvalid = "CHATLIST_EXCLUDE_INVALID"
ErrChatAboutNotModified = "CHAT_ABOUT_NOT_MODIFIED"
ErrChatAboutTooLong = "CHAT_ABOUT_TOO_LONG"
ErrChatActionForbidden = "CHAT_ACTION_FORBIDDEN"
ErrChatAdminInviteRequired = "CHAT_ADMIN_INVITE_REQUIRED"
ErrChatAdminRequired = "CHAT_ADMIN_REQUIRED"
ErrChatDiscussionUnallowed = "CHAT_DISCUSSION_UNALLOWED"
ErrChatForwardsRestricted = "CHAT_FORWARDS_RESTRICTED"
ErrChatGuestSendForbidden = "CHAT_GUEST_SEND_FORBIDDEN"
ErrChatIDEmpty = "CHAT_ID_EMPTY"
ErrChatIDGenerateFailed = "CHAT_ID_GENERATE_FAILED"
ErrChatIDInvalid = "CHAT_ID_INVALID"
ErrChatInvalid = "CHAT_INVALID"
ErrChatInvitePermanent = "CHAT_INVITE_PERMANENT"
ErrChatLinkExists = "CHAT_LINK_EXISTS"
ErrChatMemberAddFailed = "CHAT_MEMBER_ADD_FAILED"
ErrChatNotModified = "CHAT_NOT_MODIFIED"
ErrChatPublicRequired = "CHAT_PUBLIC_REQUIRED"
ErrChatRestricted = "CHAT_RESTRICTED"
ErrChatRevokeDateUnsupported = "CHAT_REVOKE_DATE_UNSUPPORTED"
ErrChatSendAudiosForbidden = "CHAT_SEND_AUDIOS_FORBIDDEN"
ErrChatSendDocsForbidden = "CHAT_SEND_DOCS_FORBIDDEN"
ErrChatSendGameForbidden = "CHAT_SEND_GAME_FORBIDDEN"
ErrChatSendGifsForbidden = "CHAT_SEND_GIFS_FORBIDDEN"
ErrChatSendInlineForbidden = "CHAT_SEND_INLINE_FORBIDDEN"
ErrChatSendMediaForbidden = "CHAT_SEND_MEDIA_FORBIDDEN"
ErrChatSendPhotosForbidden = "CHAT_SEND_PHOTOS_FORBIDDEN"
ErrChatSendPlainForbidden = "CHAT_SEND_PLAIN_FORBIDDEN"
ErrChatSendPollForbidden = "CHAT_SEND_POLL_FORBIDDEN"
ErrChatSendRoundvideosForbidden = "CHAT_SEND_ROUNDVIDEOS_FORBIDDEN"
ErrChatSendStickersForbidden = "CHAT_SEND_STICKERS_FORBIDDEN"
ErrChatSendVideosForbidden = "CHAT_SEND_VIDEOS_FORBIDDEN"
ErrChatSendVoicesForbidden = "CHAT_SEND_VOICES_FORBIDDEN"
ErrChatSendWebpageForbidden = "CHAT_SEND_WEBPAGE_FORBIDDEN"
ErrChatTitleEmpty = "CHAT_TITLE_EMPTY"
ErrChatTooBig = "CHAT_TOO_BIG"
ErrChatTypeInvalid = "CHAT_TYPE_INVALID"
ErrChatWriteForbidden = "CHAT_WRITE_FORBIDDEN"
ErrCodeEmpty = "CODE_EMPTY"
ErrCodeHashInvalid = "CODE_HASH_INVALID"
ErrCodeInvalid = "CODE_INVALID"
ErrCollectibleInvalid = "COLLECTIBLE_INVALID"
ErrCollectibleNotFound = "COLLECTIBLE_NOT_FOUND"
ErrColorInvalid = "COLOR_INVALID"
ErrConnectionAPIIDInvalid = "CONNECTION_API_ID_INVALID"
ErrConnectionAppVersionEmpty = "CONNECTION_APP_VERSION_EMPTY"
ErrConnectionIDInvalid = "CONNECTION_ID_INVALID"
ErrConnectionLayerInvalid = "CONNECTION_LAYER_INVALID"
ErrContactAddMissing = "CONTACT_ADD_MISSING"
ErrContactIDInvalid = "CONTACT_ID_INVALID"
ErrContactMissing = "CONTACT_MISSING"
ErrContactNameEmpty = "CONTACT_NAME_EMPTY"
ErrContactReqMissing = "CONTACT_REQ_MISSING"
ErrCreateCallFailed = "CREATE_CALL_FAILED"
ErrCurrencyTotalAmountInvalid = "CURRENCY_TOTAL_AMOUNT_INVALID"
ErrCustomReactionsTooMany = "CUSTOM_REACTIONS_TOO_MANY"
ErrDataHashSizeInvalid = "DATA_HASH_SIZE_INVALID"
ErrDataInvalid = "DATA_INVALID"
ErrDataJSONInvalid = "DATA_JSON_INVALID"
ErrDataTooLong = "DATA_TOO_LONG"
ErrDateEmpty = "DATE_EMPTY"
ErrDCIDInvalid = "DC_ID_INVALID"
ErrDhGAInvalid = "DH_G_A_INVALID"
ErrDocumentInvalid = "DOCUMENT_INVALID"
ErrEditBotInviteForbidden = "EDIT_BOT_INVITE_FORBIDDEN"
ErrEffectIDInvalid = "EFFECT_ID_INVALID"
ErrEmailHashExpired = "EMAIL_HASH_EXPIRED"
ErrEmailInvalid = "EMAIL_INVALID"
ErrEmailNotAllowed = "EMAIL_NOT_ALLOWED"
ErrEmailNotSetup = "EMAIL_NOT_SETUP"
ErrEmailUnconfirmed = "EMAIL_UNCONFIRMED"
ErrEmailVerifyExpired = "EMAIL_VERIFY_EXPIRED"
ErrEmojiInvalid = "EMOJI_INVALID"
ErrEmojiMarkupInvalid = "EMOJI_MARKUP_INVALID"
ErrEmojiNotModified = "EMOJI_NOT_MODIFIED"
ErrEmoticonEmpty = "EMOTICON_EMPTY"
ErrEmoticonInvalid = "EMOTICON_INVALID"
ErrEmoticonStickerpackMissing = "EMOTICON_STICKERPACK_MISSING"
ErrEncryptedMessageInvalid = "ENCRYPTED_MESSAGE_INVALID"
ErrEncryptionAlreadyAccepted = "ENCRYPTION_ALREADY_ACCEPTED"
ErrEncryptionAlreadyDeclined = "ENCRYPTION_ALREADY_DECLINED"
ErrEncryptionDeclined = "ENCRYPTION_DECLINED"
ErrEncryptionIDInvalid = "ENCRYPTION_ID_INVALID"
ErrEntitiesTooLong = "ENTITIES_TOO_LONG"
ErrEntityBoundsInvalid = "ENTITY_BOUNDS_INVALID"
ErrEntityMentionUserInvalid = "ENTITY_MENTION_USER_INVALID"
ErrErrorTextEmpty = "ERROR_TEXT_EMPTY"
ErrExpiresAtInvalid = "EXPIRES_AT_INVALID"
ErrExpireDateInvalid = "EXPIRE_DATE_INVALID"
ErrExtendedMediaAmountInvalid = "EXTENDED_MEDIA_AMOUNT_INVALID"
ErrExtendedMediaInvalid = "EXTENDED_MEDIA_INVALID"
ErrExternalURLInvalid = "EXTERNAL_URL_INVALID"
ErrFilerefUpgradeNeeded = "FILEREF_UPGRADE_NEEDED"
ErrFileContentTypeInvalid = "FILE_CONTENT_TYPE_INVALID"
ErrFileEmtpy = "FILE_EMTPY"
ErrFileIDInvalid = "FILE_ID_INVALID"
ErrFilePartsInvalid = "FILE_PARTS_INVALID"
ErrFilePartEmpty = "FILE_PART_EMPTY"
ErrFilePartInvalid = "FILE_PART_INVALID"
ErrFilePartLengthInvalid = "FILE_PART_LENGTH_INVALID"
ErrFilePartSizeChanged = "FILE_PART_SIZE_CHANGED"
ErrFilePartSizeInvalid = "FILE_PART_SIZE_INVALID"
ErrFilePartTooBig = "FILE_PART_TOO_BIG"
ErrFilePartTooSmall = "FILE_PART_TOO_SMALL"
ErrFileReferenceEmpty = "FILE_REFERENCE_EMPTY"
ErrFileReferenceExpired = "FILE_REFERENCE_EXPIRED"
ErrFileReferenceInvalid = "FILE_REFERENCE_INVALID"
ErrFileTitleEmpty = "FILE_TITLE_EMPTY"
ErrFileTokenInvalid = "FILE_TOKEN_INVALID"
ErrFilterIDInvalid = "FILTER_ID_INVALID"
ErrFilterIncludeEmpty = "FILTER_INCLUDE_EMPTY"
ErrFilterNotSupported = "FILTER_NOT_SUPPORTED"
ErrFilterTitleEmpty = "FILTER_TITLE_EMPTY"
ErrFirstnameInvalid = "FIRSTNAME_INVALID"
ErrFloodPremiumWait = "FLOOD_PREMIUM_WAIT"
ErrFolderIDInvalid = "FOLDER_ID_INVALID"
ErrFormExpired = "FORM_EXPIRED"
ErrFormIDEmpty = "FORM_ID_EMPTY"
ErrFormSubmitDuplicate = "FORM_SUBMIT_DUPLICATE"
ErrFormUnsupported = "FORM_UNSUPPORTED"
ErrForumEnabled = "FORUM_ENABLED"
ErrFreshChangeAdminsForbidden = "FRESH_CHANGE_ADMINS_FORBIDDEN"
ErrFreshChangePhoneForbidden = "FRESH_CHANGE_PHONE_FORBIDDEN"
ErrFreshResetAuthorisationForbidden = "FRESH_RESET_AUTHORISATION_FORBIDDEN"
ErrFromMessageBotDisabled = "FROM_MESSAGE_BOT_DISABLED"
ErrFromPeerInvalid = "FROM_PEER_INVALID"
ErrFrozenMethodInvalid = "FROZEN_METHOD_INVALID"
ErrFrozenParticipantMissing = "FROZEN_PARTICIPANT_MISSING"
ErrGameBotInvalid = "GAME_BOT_INVALID"
ErrGeoPointInvalid = "GEO_POINT_INVALID"
ErrGiftMonthsInvalid = "GIFT_MONTHS_INVALID"
ErrGiftSlugExpired = "GIFT_SLUG_EXPIRED"
ErrGiftSlugInvalid = "GIFT_SLUG_INVALID"
ErrGiftStarsInvalid = "GIFT_STARS_INVALID"
ErrGifContentTypeInvalid = "GIF_CONTENT_TYPE_INVALID"
ErrGifIDInvalid = "GIF_ID_INVALID"
ErrGraphExpiredReload = "GRAPH_EXPIRED_RELOAD"
ErrGraphInvalidReload = "GRAPH_INVALID_RELOAD"
ErrGraphOutdatedReload = "GRAPH_OUTDATED_RELOAD"
ErrGroupcallAlreadyDiscarded = "GROUPCALL_ALREADY_DISCARDED"
ErrGroupcallAlreadyStarted = "GROUPCALL_ALREADY_STARTED"
ErrGroupcallForbidden = "GROUPCALL_FORBIDDEN"
ErrGroupcallInvalid = "GROUPCALL_INVALID"
ErrGroupcallJoinMissing = "GROUPCALL_JOIN_MISSING"
ErrGroupcallNotModified = "GROUPCALL_NOT_MODIFIED"
ErrGroupcallSsrcDuplicateMuch = "GROUPCALL_SSRC_DUPLICATE_MUCH"
ErrGroupedMediaInvalid = "GROUPED_MEDIA_INVALID"
ErrHashtagInvalid = "HASHTAG_INVALID"
ErrHashInvalid = "HASH_INVALID"
ErrHashSizeInvalid = "HASH_SIZE_INVALID"
ErrHideRequesterMissing = "HIDE_REQUESTER_MISSING"
ErrIDExpired = "ID_EXPIRED"
ErrIDInvalid = "ID_INVALID"
ErrImageProcessFailed = "IMAGE_PROCESS_FAILED"
ErrImportFileInvalid = "IMPORT_FILE_INVALID"
ErrImportFormatDateInvalid = "IMPORT_FORMAT_DATE_INVALID"
ErrImportFormatUnrecognized = "IMPORT_FORMAT_UNRECOGNIZED"
ErrImportIDInvalid = "IMPORT_ID_INVALID"
ErrImportTokenInvalid = "IMPORT_TOKEN_INVALID"
ErrInlineBotRequired = "INLINE_BOT_REQUIRED"
ErrInlineResultExpired = "INLINE_RESULT_EXPIRED"
ErrInputChatlistInvalid = "INPUT_CHATLIST_INVALID"
ErrInputFileInvalid = "INPUT_FILE_INVALID"
ErrInputFilterInvalid = "INPUT_FILTER_INVALID"
ErrInputPeersEmpty = "INPUT_PEERS_EMPTY"
ErrInputPurposeInvalid = "INPUT_PURPOSE_INVALID"
ErrInputTextEmpty = "INPUT_TEXT_EMPTY"
ErrInputTextTooLong = "INPUT_TEXT_TOO_LONG"
ErrInputUserDeactivated = "INPUT_USER_DEACTIVATED"
ErrInvitesTooMuch = "INVITES_TOO_MUCH"
ErrInviteForbiddenWithJoinas = "INVITE_FORBIDDEN_WITH_JOINAS"
ErrInviteHashEmpty = "INVITE_HASH_EMPTY"
ErrInviteHashExpired = "INVITE_HASH_EXPIRED"
ErrInviteHashInvalid = "INVITE_HASH_INVALID"
ErrInviteRequestSent = "INVITE_REQUEST_SENT"
ErrInviteRevokedMissing = "INVITE_REVOKED_MISSING"
ErrInviteSlugEmpty = "INVITE_SLUG_EMPTY"
ErrInviteSlugExpired = "INVITE_SLUG_EXPIRED"
ErrInviteSlugInvalid = "INVITE_SLUG_INVALID"
ErrInvoiceInvalid = "INVOICE_INVALID"
ErrInvoicePayloadInvalid = "INVOICE_PAYLOAD_INVALID"
ErrJoinAsPeerInvalid = "JOIN_AS_PEER_INVALID"
ErrLanguageInvalid = "LANGUAGE_INVALID"
ErrLangCodeInvalid = "LANG_CODE_INVALID"
ErrLangCodeNotSupported = "LANG_CODE_NOT_SUPPORTED"
ErrLangPackInvalid = "LANG_PACK_INVALID"
ErrLastnameInvalid = "LASTNAME_INVALID"
ErrLimitInvalid = "LIMIT_INVALID"
ErrLinkNotModified = "LINK_NOT_MODIFIED"
ErrLocationInvalid = "LOCATION_INVALID"
ErrMaxDateInvalid = "MAX_DATE_INVALID"
ErrMaxIDInvalid = "MAX_ID_INVALID"
ErrMaxQtsInvalid = "MAX_QTS_INVALID"
ErrMD5ChecksumInvalid = "MD5_CHECKSUM_INVALID"
ErrMediaAlreadyPaid = "MEDIA_ALREADY_PAID"
ErrMediaCaptionTooLong = "MEDIA_CAPTION_TOO_LONG"
ErrMediaEmpty = "MEDIA_EMPTY"
ErrMediaFileInvalid = "MEDIA_FILE_INVALID"
ErrMediaGroupedInvalid = "MEDIA_GROUPED_INVALID"
ErrMediaInvalid = "MEDIA_INVALID"
ErrMediaNewInvalid = "MEDIA_NEW_INVALID"
ErrMediaPrevInvalid = "MEDIA_PREV_INVALID"
ErrMediaTTLInvalid = "MEDIA_TTL_INVALID"
ErrMediaTypeInvalid = "MEDIA_TYPE_INVALID"
ErrMediaVideoStoryMissing = "MEDIA_VIDEO_STORY_MISSING"
ErrMegagroupGeoRequired = "MEGAGROUP_GEO_REQUIRED"
ErrMegagroupIDInvalid = "MEGAGROUP_ID_INVALID"
ErrMegagroupPrehistoryHidden = "MEGAGROUP_PREHISTORY_HIDDEN"
ErrMegagroupRequired = "MEGAGROUP_REQUIRED"
ErrMessageAuthorRequired = "MESSAGE_AUTHOR_REQUIRED"
ErrMessageDeleteForbidden = "MESSAGE_DELETE_FORBIDDEN"
ErrMessageEditTimeExpired = "MESSAGE_EDIT_TIME_EXPIRED"
ErrMessageEmpty = "MESSAGE_EMPTY"
ErrMessageIDsEmpty = "MESSAGE_IDS_EMPTY"
ErrMessageIDInvalid = "MESSAGE_ID_INVALID"
ErrMessageNotModified = "MESSAGE_NOT_MODIFIED"
ErrMessageNotReadYet = "MESSAGE_NOT_READ_YET"
ErrMessagePollClosed = "MESSAGE_POLL_CLOSED"
ErrMessageTooLong = "MESSAGE_TOO_LONG"
ErrMessageTooOld = "MESSAGE_TOO_OLD"
ErrMethodInvalid = "METHOD_INVALID"
ErrMinDateInvalid = "MIN_DATE_INVALID"
ErrMonthInvalid = "MONTH_INVALID"
ErrMsgIDInvalid = "MSG_ID_INVALID"
ErrMsgTooOld = "MSG_TOO_OLD"
ErrMsgVoiceMissing = "MSG_VOICE_MISSING"
ErrMsgWaitFailed = "MSG_WAIT_FAILED"
ErrMultiMediaTooLong = "MULTI_MEDIA_TOO_LONG"
ErrNewSaltInvalid = "NEW_SALT_INVALID"
ErrNewSettingsEmpty = "NEW_SETTINGS_EMPTY"
ErrNewSettingsInvalid = "NEW_SETTINGS_INVALID"
ErrNextOffsetInvalid = "NEXT_OFFSET_INVALID"
ErrNotEligible = "NOT_ELIGIBLE"
ErrNotJoined = "NOT_JOINED"
ErrNoPaymentNeeded = "NO_PAYMENT_NEEDED"
ErrOffsetInvalid = "OFFSET_INVALID"
ErrOffsetPeerIDInvalid = "OFFSET_PEER_ID_INVALID"
ErrOptionsTooMuch = "OPTIONS_TOO_MUCH"
ErrOptionInvalid = "OPTION_INVALID"
ErrOrderInvalid = "ORDER_INVALID"
ErrPackShortNameInvalid = "PACK_SHORT_NAME_INVALID"
ErrPackShortNameOccupied = "PACK_SHORT_NAME_OCCUPIED"
ErrPackTitleInvalid = "PACK_TITLE_INVALID"
ErrPackTypeInvalid = "PACK_TYPE_INVALID"
ErrParentPeerInvalid = "PARENT_PEER_INVALID"
ErrParticipantsTooFew = "PARTICIPANTS_TOO_FEW"
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"
ErrPaymentCredentialsInvalid = "PAYMENT_CREDENTIALS_INVALID"
ErrPaymentProviderInvalid = "PAYMENT_PROVIDER_INVALID"
ErrPaymentRequired = "PAYMENT_REQUIRED"
ErrPaymentUnsupported = "PAYMENT_UNSUPPORTED"
ErrPeersListEmpty = "PEERS_LIST_EMPTY"
ErrPeerHistoryEmpty = "PEER_HISTORY_EMPTY"
ErrPeerIDInvalid = "PEER_ID_INVALID"
ErrPeerIDNotSupported = "PEER_ID_NOT_SUPPORTED"
ErrPeerTypesInvalid = "PEER_TYPES_INVALID"
ErrPersistentTimestampEmpty = "PERSISTENT_TIMESTAMP_EMPTY"
ErrPersistentTimestampInvalid = "PERSISTENT_TIMESTAMP_INVALID"
ErrPersistentTimestampOutdated = "PERSISTENT_TIMESTAMP_OUTDATED"
ErrPhoneCodeEmpty = "PHONE_CODE_EMPTY"
ErrPhoneCodeExpired = "PHONE_CODE_EXPIRED"
ErrPhoneCodeHashEmpty = "PHONE_CODE_HASH_EMPTY"
ErrPhoneCodeInvalid = "PHONE_CODE_INVALID"
ErrPhoneHashExpired = "PHONE_HASH_EXPIRED"
ErrPhoneNotOccupied = "PHONE_NOT_OCCUPIED"
ErrPhoneNumberAppSignupForbidden = "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN"
ErrPhoneNumberBanned = "PHONE_NUMBER_BANNED"
ErrPhoneNumberFlood = "PHONE_NUMBER_FLOOD"
ErrPhoneNumberInvalid = "PHONE_NUMBER_INVALID"
ErrPhoneNumberOccupied = "PHONE_NUMBER_OCCUPIED"
ErrPhoneNumberUnoccupied = "PHONE_NUMBER_UNOCCUPIED"
ErrPhonePasswordFlood = "PHONE_PASSWORD_FLOOD"
ErrPhonePasswordProtected = "PHONE_PASSWORD_PROTECTED"
ErrPhotoContentTypeInvalid = "PHOTO_CONTENT_TYPE_INVALID"
ErrPhotoContentURLEmpty = "PHOTO_CONTENT_URL_EMPTY"
ErrPhotoCropFileMissing = "PHOTO_CROP_FILE_MISSING"
ErrPhotoCropSizeSmall = "PHOTO_CROP_SIZE_SMALL"
ErrPhotoExtInvalid = "PHOTO_EXT_INVALID"
ErrPhotoFileMissing = "PHOTO_FILE_MISSING"
ErrPhotoIDInvalid = "PHOTO_ID_INVALID"
ErrPhotoInvalid = "PHOTO_INVALID"
ErrPhotoInvalidDimensions = "PHOTO_INVALID_DIMENSIONS"
ErrPhotoSaveFileInvalid = "PHOTO_SAVE_FILE_INVALID"
ErrPhotoThumbURLEmpty = "PHOTO_THUMB_URL_EMPTY"
ErrPinnedDialogsTooMuch = "PINNED_DIALOGS_TOO_MUCH"
ErrPinRestricted = "PIN_RESTRICTED"
ErrPollAnswersInvalid = "POLL_ANSWERS_INVALID"
ErrPollAnswerInvalid = "POLL_ANSWER_INVALID"
ErrPollOptionDuplicate = "POLL_OPTION_DUPLICATE"
ErrPollOptionInvalid = "POLL_OPTION_INVALID"
ErrPollQuestionInvalid = "POLL_QUESTION_INVALID"
ErrPollVoteRequired = "POLL_VOTE_REQUIRED"
ErrPrecheckoutFailed = "PRECHECKOUT_FAILED"
ErrPremiumAccountRequired = "PREMIUM_ACCOUNT_REQUIRED"
ErrPremiumCurrentlyUnavailable = "PREMIUM_CURRENTLY_UNAVAILABLE"
ErrPremiumSubActiveUntil = "PREMIUM_SUB_ACTIVE_UNTIL"
ErrPreviousChatImportActiveWaitMin = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN"
ErrPricingChatInvalid = "PRICING_CHAT_INVALID"
ErrPrivacyKeyInvalid = "PRIVACY_KEY_INVALID"
ErrPrivacyPremiumRequired = "PRIVACY_PREMIUM_REQUIRED"
ErrPrivacyTooLong = "PRIVACY_TOO_LONG"
ErrPrivacyValueInvalid = "PRIVACY_VALUE_INVALID"
ErrPublicChannelMissing = "PUBLIC_CHANNEL_MISSING"
ErrPublicKeyRequired = "PUBLIC_KEY_REQUIRED"
ErrPurposeInvalid = "PURPOSE_INVALID"
ErrQueryIDEmpty = "QUERY_ID_EMPTY"
ErrQueryIDInvalid = "QUERY_ID_INVALID"
ErrQueryTooShort = "QUERY_TOO_SHORT"
ErrQuickRepliesBotNotAllowed = "QUICK_REPLIES_BOT_NOT_ALLOWED"
ErrQuickRepliesTooMuch = "QUICK_REPLIES_TOO_MUCH"
ErrQuizAnswerMissing = "QUIZ_ANSWER_MISSING"
ErrQuizCorrectAnswersEmpty = "QUIZ_CORRECT_ANSWERS_EMPTY"
ErrQuizCorrectAnswersTooMuch = "QUIZ_CORRECT_ANSWERS_TOO_MUCH"
ErrQuizCorrectAnswerInvalid = "QUIZ_CORRECT_ANSWER_INVALID"
ErrQuizMultipleInvalid = "QUIZ_MULTIPLE_INVALID"
ErrQuoteTextInvalid = "QUOTE_TEXT_INVALID"
ErrRaiseHandForbidden = "RAISE_HAND_FORBIDDEN"
ErrRandomIDDuplicate = "RANDOM_ID_DUPLICATE"
ErrRandomIDEmpty = "RANDOM_ID_EMPTY"
ErrRandomIDExpired = "RANDOM_ID_EXPIRED"
ErrRandomIDInvalid = "RANDOM_ID_INVALID"
ErrRandomLengthInvalid = "RANDOM_LENGTH_INVALID"
ErrRangesInvalid = "RANGES_INVALID"
ErrReactionsCountInvalid = "REACTIONS_COUNT_INVALID"
ErrReactionsTooMany = "REACTIONS_TOO_MANY"
ErrReactionEmpty = "REACTION_EMPTY"
ErrReactionInvalid = "REACTION_INVALID"
ErrReceiptEmpty = "RECEIPT_EMPTY"
ErrReplyMarkupBuyEmpty = "REPLY_MARKUP_BUY_EMPTY"
ErrReplyMarkupGameEmpty = "REPLY_MARKUP_GAME_EMPTY"
ErrReplyMarkupInvalid = "REPLY_MARKUP_INVALID"
ErrReplyMarkupTooLong = "REPLY_MARKUP_TOO_LONG"
ErrReplyMessagesTooMuch = "REPLY_MESSAGES_TOO_MUCH"
ErrReplyMessageIDInvalid = "REPLY_MESSAGE_ID_INVALID"
ErrReplyToInvalid = "REPLY_TO_INVALID"
ErrReplyToMonoforumPeerInvalid = "REPLY_TO_MONOFORUM_PEER_INVALID"
ErrReplyToUserInvalid = "REPLY_TO_USER_INVALID"
ErrRequestTokenInvalid = "REQUEST_TOKEN_INVALID"
ErrResetRequestMissing = "RESET_REQUEST_MISSING"
ErrResultsTooMuch = "RESULTS_TOO_MUCH"
ErrResultIDDuplicate = "RESULT_ID_DUPLICATE"
ErrResultIDEmpty = "RESULT_ID_EMPTY"
ErrResultIDInvalid = "RESULT_ID_INVALID"
ErrResultTypeInvalid = "RESULT_TYPE_INVALID"
ErrRevoteNotAllowed = "REVOTE_NOT_ALLOWED"
ErrRightsNotModified = "RIGHTS_NOT_MODIFIED"
ErrRightForbidden = "RIGHT_FORBIDDEN"
ErrRingtoneInvalid = "RINGTONE_INVALID"
ErrRingtoneMimeInvalid = "RINGTONE_MIME_INVALID"
ErrRsaDecryptFailed = "RSA_DECRYPT_FAILED"
ErrSavedIDEmpty = "SAVED_ID_EMPTY"
ErrScheduleBotNotAllowed = "SCHEDULE_BOT_NOT_ALLOWED"
ErrScheduleDateInvalid = "SCHEDULE_DATE_INVALID"
ErrScheduleDateTooLate = "SCHEDULE_DATE_TOO_LATE"
ErrScheduleStatusPrivate = "SCHEDULE_STATUS_PRIVATE"
ErrScheduleTooMuch = "SCHEDULE_TOO_MUCH"
ErrScoreInvalid = "SCORE_INVALID"
ErrSearchQueryEmpty = "SEARCH_QUERY_EMPTY"
ErrSearchWithLinkNotSupported = "SEARCH_WITH_LINK_NOT_SUPPORTED"
ErrSecondsInvalid = "SECONDS_INVALID"
ErrSecureSecretRequired = "SECURE_SECRET_REQUIRED"
ErrSelfDeleteRestricted = "SELF_DELETE_RESTRICTED"
ErrSendAsPeerInvalid = "SEND_AS_PEER_INVALID"
ErrSendCodeUnavailable = "SEND_CODE_UNAVAILABLE"
ErrSendMediaInvalid = "SEND_MEDIA_INVALID"
ErrSendMessageGameInvalid = "SEND_MESSAGE_GAME_INVALID"
ErrSendMessageMediaInvalid = "SEND_MESSAGE_MEDIA_INVALID"
ErrSendMessageTypeInvalid = "SEND_MESSAGE_TYPE_INVALID"
ErrSensitiveChangeForbidden = "SENSITIVE_CHANGE_FORBIDDEN"
ErrSessionTooFresh = "SESSION_TOO_FRESH"
ErrSettingsInvalid = "SETTINGS_INVALID"
ErrSHA256HashInvalid = "SHA256_HASH_INVALID"
ErrShortcutInvalid = "SHORTCUT_INVALID"
ErrShortNameInvalid = "SHORT_NAME_INVALID"
ErrShortNameOccupied = "SHORT_NAME_OCCUPIED"
ErrSignInFailed = "SIGN_IN_FAILED"
ErrSlotsEmpty = "SLOTS_EMPTY"
ErrSlowmodeMultiMsgsDisabled = "SLOWMODE_MULTI_MSGS_DISABLED"
ErrSlowmodeWait = "SLOWMODE_WAIT"
ErrSlugInvalid = "SLUG_INVALID"
ErrSmsjobIDInvalid = "SMSJOB_ID_INVALID"
ErrSMSCodeCreateFailed = "SMS_CODE_CREATE_FAILED"
ErrSRPAInvalid = "SRP_A_INVALID"
ErrSRPIDInvalid = "SRP_ID_INVALID"
ErrSRPPasswordChanged = "SRP_PASSWORD_CHANGED"
ErrStargiftAlreadyConverted = "STARGIFT_ALREADY_CONVERTED"
ErrStargiftAlreadyRefunded = "STARGIFT_ALREADY_REFUNDED"
ErrStargiftAlreadyUpgraded = "STARGIFT_ALREADY_UPGRADED"
ErrStargiftExportInProgress = "STARGIFT_EXPORT_IN_PROGRESS"
ErrStargiftInvalid = "STARGIFT_INVALID"
ErrStargiftNotFound = "STARGIFT_NOT_FOUND"
ErrStargiftOwnerInvalid = "STARGIFT_OWNER_INVALID"
ErrStargiftPeerInvalid = "STARGIFT_PEER_INVALID"
ErrStargiftResellCurrencyNotAllowed = "STARGIFT_RESELL_CURRENCY_NOT_ALLOWED"
ErrStargiftSlugInvalid = "STARGIFT_SLUG_INVALID"
ErrStargiftTransferTooEarly = "STARGIFT_TRANSFER_TOO_EARLY"
ErrStargiftUpgradeUnavailable = "STARGIFT_UPGRADE_UNAVAILABLE"
ErrStargiftUsageLimited = "STARGIFT_USAGE_LIMITED"
ErrStargiftUserUsageLimited = "STARGIFT_USER_USAGE_LIMITED"
ErrStarrefAwaitingEnd = "STARREF_AWAITING_END"
ErrStarrefExpired = "STARREF_EXPIRED"
ErrStarrefHashRevoked = "STARREF_HASH_REVOKED"
ErrStarrefPermilleInvalid = "STARREF_PERMILLE_INVALID"
ErrStarrefPermilleTooLow = "STARREF_PERMILLE_TOO_LOW"
ErrStarsAmountInvalid = "STARS_AMOUNT_INVALID"
ErrStarsFormAmountMismatch = "STARS_FORM_AMOUNT_MISMATCH"
ErrStarsInvoiceInvalid = "STARS_INVOICE_INVALID"
ErrStarsPaymentRequired = "STARS_PAYMENT_REQUIRED"
ErrStartParamEmpty = "START_PARAM_EMPTY"
ErrStartParamInvalid = "START_PARAM_INVALID"
ErrStartParamTooLong = "START_PARAM_TOO_LONG"
ErrStickerpackStickersTooMuch = "STICKERPACK_STICKERS_TOO_MUCH"
ErrStickersetInvalid = "STICKERSET_INVALID"
ErrStickersetOwnerAnonymous = "STICKERSET_OWNER_ANONYMOUS"
ErrStickersEmpty = "STICKERS_EMPTY"
ErrStickersTooMuch = "STICKERS_TOO_MUCH"
ErrStickerDocumentInvalid = "STICKER_DOCUMENT_INVALID"
ErrStickerEmojiInvalid = "STICKER_EMOJI_INVALID"
ErrStickerFileInvalid = "STICKER_FILE_INVALID"
ErrStickerGifDimensions = "STICKER_GIF_DIMENSIONS"
ErrStickerIDInvalid = "STICKER_ID_INVALID"
ErrStickerInvalid = "STICKER_INVALID"
ErrStickerMimeInvalid = "STICKER_MIME_INVALID"
ErrStickerPngDimensions = "STICKER_PNG_DIMENSIONS"
ErrStickerPngNopng = "STICKER_PNG_NOPNG"
ErrStickerTgsNodoc = "STICKER_TGS_NODOC"
ErrStickerTgsNotgs = "STICKER_TGS_NOTGS"
ErrStickerThumbPngNopng = "STICKER_THUMB_PNG_NOPNG"
ErrStickerThumbTgsNotgs = "STICKER_THUMB_TGS_NOTGS"
ErrStickerVideoBig = "STICKER_VIDEO_BIG"
ErrStickerVideoNodoc = "STICKER_VIDEO_NODOC"
ErrStickerVideoNowebm = "STICKER_VIDEO_NOWEBM"
ErrStoriesNeverCreated = "STORIES_NEVER_CREATED"
ErrStoriesTooMuch = "STORIES_TOO_MUCH"
ErrStoryIDEmpty = "STORY_ID_EMPTY"
ErrStoryIDInvalid = "STORY_ID_INVALID"
ErrStoryNotModified = "STORY_NOT_MODIFIED"
ErrStoryPeriodInvalid = "STORY_PERIOD_INVALID"
ErrStorySendFloodMonthly = "STORY_SEND_FLOOD_MONTHLY"
ErrStorySendFloodWeekly = "STORY_SEND_FLOOD_WEEKLY"
ErrSubscriptionExportMissing = "SUBSCRIPTION_EXPORT_MISSING"
ErrSubscriptionIDInvalid = "SUBSCRIPTION_ID_INVALID"
ErrSubscriptionPeriodInvalid = "SUBSCRIPTION_PERIOD_INVALID"
ErrSuggestedPostAmountInvalid = "SUGGESTED_POST_AMOUNT_INVALID"
ErrSuggestedPostPeerInvalid = "SUGGESTED_POST_PEER_INVALID"
ErrSwitchPmTextEmpty = "SWITCH_PM_TEXT_EMPTY"
ErrSwitchWebviewURLInvalid = "SWITCH_WEBVIEW_URL_INVALID"
ErrTakeoutInitDelay = "TAKEOUT_INIT_DELAY"
ErrTakeoutInvalid = "TAKEOUT_INVALID"
ErrTakeoutRequired = "TAKEOUT_REQUIRED"
ErrTaskAlreadyExists = "TASK_ALREADY_EXISTS"
ErrTempAuthKeyAlreadyBound = "TEMP_AUTH_KEY_ALREADY_BOUND"
ErrTempAuthKeyEmpty = "TEMP_AUTH_KEY_EMPTY"
ErrTermsURLInvalid = "TERMS_URL_INVALID"
ErrThemeFileInvalid = "THEME_FILE_INVALID"
ErrThemeFormatInvalid = "THEME_FORMAT_INVALID"
ErrThemeInvalid = "THEME_INVALID"
ErrThemeMimeInvalid = "THEME_MIME_INVALID"
ErrThemeParamsInvalid = "THEME_PARAMS_INVALID"
ErrThemeSlugInvalid = "THEME_SLUG_INVALID"
ErrThemeTitleInvalid = "THEME_TITLE_INVALID"
ErrTimezoneInvalid = "TIMEZONE_INVALID"
ErrTitleInvalid = "TITLE_INVALID"
ErrTmpPasswordDisabled = "TMP_PASSWORD_DISABLED"
ErrTmpPasswordInvalid = "TMP_PASSWORD_INVALID"
ErrTodoItemsEmpty = "TODO_ITEMS_EMPTY"
ErrTodoItemDuplicate = "TODO_ITEM_DUPLICATE"
ErrTodoNotModified = "TODO_NOT_MODIFIED"
ErrTokenEmpty = "TOKEN_EMPTY"
ErrTokenInvalid = "TOKEN_INVALID"
ErrTokenTypeInvalid = "TOKEN_TYPE_INVALID"
ErrTopicClosed = "TOPIC_CLOSED"
ErrTopicDeleted = "TOPIC_DELETED"
ErrTopicIDInvalid = "TOPIC_ID_INVALID"
ErrToIDInvalid = "TO_ID_INVALID"
ErrToLangInvalid = "TO_LANG_INVALID"
ErrTransactionIDInvalid = "TRANSACTION_ID_INVALID"
ErrTranscriptionFailed = "TRANSCRIPTION_FAILED"
ErrTranslateReqFailed = "TRANSLATE_REQ_FAILED"
ErrTranslateReqQuotaExceeded = "TRANSLATE_REQ_QUOTA_EXCEEDED"
ErrTranslationsDisabled = "TRANSLATIONS_DISABLED"
ErrTranslationTimeout = "TRANSLATION_TIMEOUT"
ErrTTLDaysInvalid = "TTL_DAYS_INVALID"
ErrTTLMediaInvalid = "TTL_MEDIA_INVALID"
ErrTTLPeriodInvalid = "TTL_PERIOD_INVALID"
ErrTypesEmpty = "TYPES_EMPTY"
ErrTimeout = "Timeout"
ErrUnsupported = "UNSUPPORTED"
ErrUntilDateInvalid = "UNTIL_DATE_INVALID"
ErrUpdateAppToLogin = "UPDATE_APP_TO_LOGIN"
ErrURLInvalid = "URL_INVALID"
ErrUsageLimitInvalid = "USAGE_LIMIT_INVALID"
ErrUsernamesActiveTooMuch = "USERNAMES_ACTIVE_TOO_MUCH"
ErrUsernameInvalid = "USERNAME_INVALID"
ErrUsernameNotModified = "USERNAME_NOT_MODIFIED"
ErrUsernameNotOccupied = "USERNAME_NOT_OCCUPIED"
ErrUsernameOccupied = "USERNAME_OCCUPIED"
ErrUsernamePurchaseAvailable = "USERNAME_PURCHASE_AVAILABLE"
ErrUserpicPrivacyRequired = "USERPIC_PRIVACY_REQUIRED"
ErrUserpicUploadRequired = "USERPIC_UPLOAD_REQUIRED"
ErrUsersTooFew = "USERS_TOO_FEW"
ErrUsersTooMuch = "USERS_TOO_MUCH"
ErrUserAdminInvalid = "USER_ADMIN_INVALID"
ErrUserAlreadyInvited = "USER_ALREADY_INVITED"
ErrUserAlreadyParticipant = "USER_ALREADY_PARTICIPANT"
ErrUserBannedInChannel = "USER_BANNED_IN_CHANNEL"
ErrUserBlocked = "USER_BLOCKED"
ErrUserBot = "USER_BOT"
ErrUserBotInvalid = "USER_BOT_INVALID"
ErrUserBotRequired = "USER_BOT_REQUIRED"
ErrUserChannelsTooMuch = "USER_CHANNELS_TOO_MUCH"
ErrUserCreator = "USER_CREATOR"
ErrUserDeleted = "USER_DELETED"
ErrUserGiftUnavailable = "USER_GIFT_UNAVAILABLE"
ErrUserIDInvalid = "USER_ID_INVALID"
ErrUserInvalid = "USER_INVALID"
ErrUserIsBlocked = "USER_IS_BLOCKED"
ErrUserIsBot = "USER_IS_BOT"
ErrUserKicked = "USER_KICKED"
ErrUserNotMutualContact = "USER_NOT_MUTUAL_CONTACT"
ErrUserNotParticipant = "USER_NOT_PARTICIPANT"
ErrUserPermissionDenied = "USER_PERMISSION_DENIED"
ErrUserPrivacyRestricted = "USER_PRIVACY_RESTRICTED"
ErrUserPublicMissing = "USER_PUBLIC_MISSING"
ErrUserRestricted = "USER_RESTRICTED"
ErrUserVolumeInvalid = "USER_VOLUME_INVALID"
ErrVenueIDInvalid = "VENUE_ID_INVALID"
ErrVideoContentTypeInvalid = "VIDEO_CONTENT_TYPE_INVALID"
ErrVideoFileInvalid = "VIDEO_FILE_INVALID"
ErrVideoPauseForbidden = "VIDEO_PAUSE_FORBIDDEN"
ErrVideoStopForbidden = "VIDEO_STOP_FORBIDDEN"
ErrVideoTitleEmpty = "VIDEO_TITLE_EMPTY"
ErrVoiceMessagesForbidden = "VOICE_MESSAGES_FORBIDDEN"
ErrWallpaperFileInvalid = "WALLPAPER_FILE_INVALID"
ErrWallpaperInvalid = "WALLPAPER_INVALID"
ErrWallpaperMimeInvalid = "WALLPAPER_MIME_INVALID"
ErrWallpaperNotFound = "WALLPAPER_NOT_FOUND"
ErrWcConvertURLInvalid = "WC_CONVERT_URL_INVALID"
ErrWebdocumentInvalid = "WEBDOCUMENT_INVALID"
ErrWebdocumentMimeInvalid = "WEBDOCUMENT_MIME_INVALID"
ErrWebdocumentSizeTooBig = "WEBDOCUMENT_SIZE_TOO_BIG"
ErrWebdocumentURLEmpty = "WEBDOCUMENT_URL_EMPTY"
ErrWebdocumentURLInvalid = "WEBDOCUMENT_URL_INVALID"
ErrWebpageCurlFailed = "WEBPAGE_CURL_FAILED"
ErrWebpageMediaEmpty = "WEBPAGE_MEDIA_EMPTY"
ErrWebpageNotFound = "WEBPAGE_NOT_FOUND"
ErrWebpageURLInvalid = "WEBPAGE_URL_INVALID"
ErrWebpushAuthInvalid = "WEBPUSH_AUTH_INVALID"
ErrWebpushKeyInvalid = "WEBPUSH_KEY_INVALID"
ErrWebpushTokenInvalid = "WEBPUSH_TOKEN_INVALID"
ErrYourPrivacyRestricted = "YOUR_PRIVACY_RESTRICTED"
ErrYouBlockedUser = "YOU_BLOCKED_USER"
)
// Is2FAConfirmWait reports whether err is 2FA_CONFIRM_WAIT.
func Is2FAConfirmWait(err error) bool {
return tgerr.Is(err, Err2FAConfirmWait)
}
// IsAboutTooLong reports whether err is ABOUT_TOO_LONG.
func IsAboutTooLong(err error) bool {
return tgerr.Is(err, ErrAboutTooLong)
}
// IsAccessTokenExpired reports whether err is ACCESS_TOKEN_EXPIRED.
func IsAccessTokenExpired(err error) bool {
return tgerr.Is(err, ErrAccessTokenExpired)
}
// IsAccessTokenInvalid reports whether err is ACCESS_TOKEN_INVALID.
func IsAccessTokenInvalid(err error) bool {
return tgerr.Is(err, ErrAccessTokenInvalid)
}
// IsAddressInvalid reports whether err is ADDRESS_INVALID.
func IsAddressInvalid(err error) bool {
return tgerr.Is(err, ErrAddressInvalid)
}
// IsAdminsTooMuch reports whether err is ADMINS_TOO_MUCH.
func IsAdminsTooMuch(err error) bool {
return tgerr.Is(err, ErrAdminsTooMuch)
}
// IsAdminIDInvalid reports whether err is ADMIN_ID_INVALID.
func IsAdminIDInvalid(err error) bool {
return tgerr.Is(err, ErrAdminIDInvalid)
}
// IsAdminRankEmojiNotAllowed reports whether err is ADMIN_RANK_EMOJI_NOT_ALLOWED.
func IsAdminRankEmojiNotAllowed(err error) bool {
return tgerr.Is(err, ErrAdminRankEmojiNotAllowed)
}
// IsAdminRankInvalid reports whether err is ADMIN_RANK_INVALID.
func IsAdminRankInvalid(err error) bool {
return tgerr.Is(err, ErrAdminRankInvalid)
}
// IsAdminRightsEmpty reports whether err is ADMIN_RIGHTS_EMPTY.
func IsAdminRightsEmpty(err error) bool {
return tgerr.Is(err, ErrAdminRightsEmpty)
}
// IsAlbumPhotosTooMany reports whether err is ALBUM_PHOTOS_TOO_MANY.
func IsAlbumPhotosTooMany(err error) bool {
return tgerr.Is(err, ErrAlbumPhotosTooMany)
}
// IsAllowPaymentRequired reports whether err is ALLOW_PAYMENT_REQUIRED.
func IsAllowPaymentRequired(err error) bool {
return tgerr.Is(err, ErrAllowPaymentRequired)
}
// IsAnonymousReactionsDisabled reports whether err is ANONYMOUS_REACTIONS_DISABLED.
func IsAnonymousReactionsDisabled(err error) bool {
return tgerr.Is(err, ErrAnonymousReactionsDisabled)
}
// IsAPIGiftRestrictedUpdateApp reports whether err is API_GIFT_RESTRICTED_UPDATE_APP.
func IsAPIGiftRestrictedUpdateApp(err error) bool {
return tgerr.Is(err, ErrAPIGiftRestrictedUpdateApp)
}
// IsAPIIDInvalid reports whether err is API_ID_INVALID.
func IsAPIIDInvalid(err error) bool {
return tgerr.Is(err, ErrAPIIDInvalid)
}
// IsAPIIDPublishedFlood reports whether err is API_ID_PUBLISHED_FLOOD.
func IsAPIIDPublishedFlood(err error) bool {
return tgerr.Is(err, ErrAPIIDPublishedFlood)
}
// IsArticleTitleEmpty reports whether err is ARTICLE_TITLE_EMPTY.
func IsArticleTitleEmpty(err error) bool {
return tgerr.Is(err, ErrArticleTitleEmpty)
}
// IsAudioContentURLEmpty reports whether err is AUDIO_CONTENT_URL_EMPTY.
func IsAudioContentURLEmpty(err error) bool {
return tgerr.Is(err, ErrAudioContentURLEmpty)
}
// IsAudioTitleEmpty reports whether err is AUDIO_TITLE_EMPTY.
func IsAudioTitleEmpty(err error) bool {
return tgerr.Is(err, ErrAudioTitleEmpty)
}
// IsAuthBytesInvalid reports whether err is AUTH_BYTES_INVALID.
func IsAuthBytesInvalid(err error) bool {
return tgerr.Is(err, ErrAuthBytesInvalid)
}
// IsAuthKeyUnsynchronized reports whether err is AUTH_KEY_UNSYNCHRONIZED.
func IsAuthKeyUnsynchronized(err error) bool {
return tgerr.Is(err, ErrAuthKeyUnsynchronized)
}
// IsAuthRestart reports whether err is AUTH_RESTART.
func IsAuthRestart(err error) bool {
return tgerr.Is(err, ErrAuthRestart)
}
// IsAuthTokenAlreadyAccepted reports whether err is AUTH_TOKEN_ALREADY_ACCEPTED.
func IsAuthTokenAlreadyAccepted(err error) bool {
return tgerr.Is(err, ErrAuthTokenAlreadyAccepted)
}
// IsAuthTokenException reports whether err is AUTH_TOKEN_EXCEPTION.
func IsAuthTokenException(err error) bool {
return tgerr.Is(err, ErrAuthTokenException)
}
// IsAuthTokenExpired reports whether err is AUTH_TOKEN_EXPIRED.
func IsAuthTokenExpired(err error) bool {
return tgerr.Is(err, ErrAuthTokenExpired)
}
// IsAuthTokenInvalid reports whether err is AUTH_TOKEN_INVALID.
func IsAuthTokenInvalid(err error) bool {
return tgerr.Is(err, ErrAuthTokenInvalid)
}
// IsAuthTokenInvalidx reports whether err is AUTH_TOKEN_INVALIDX.
func IsAuthTokenInvalidx(err error) bool {
return tgerr.Is(err, ErrAuthTokenInvalidx)
}
// IsAutoarchiveNotAvailable reports whether err is AUTOARCHIVE_NOT_AVAILABLE.
func IsAutoarchiveNotAvailable(err error) bool {
return tgerr.Is(err, ErrAutoarchiveNotAvailable)
}
// IsBalanceTooLow reports whether err is BALANCE_TOO_LOW.
func IsBalanceTooLow(err error) bool {
return tgerr.Is(err, ErrBalanceTooLow)
}
// IsBankCardNumberInvalid reports whether err is BANK_CARD_NUMBER_INVALID.
func IsBankCardNumberInvalid(err error) bool {
return tgerr.Is(err, ErrBankCardNumberInvalid)
}
// IsBannedRightsInvalid reports whether err is BANNED_RIGHTS_INVALID.
func IsBannedRightsInvalid(err error) bool {
return tgerr.Is(err, ErrBannedRightsInvalid)
}
// IsBirthdayInvalid reports whether err is BIRTHDAY_INVALID.
func IsBirthdayInvalid(err error) bool {
return tgerr.Is(err, ErrBirthdayInvalid)
}
// IsBoostsEmpty reports whether err is BOOSTS_EMPTY.
func IsBoostsEmpty(err error) bool {
return tgerr.Is(err, ErrBoostsEmpty)
}
// IsBoostsRequired reports whether err is BOOSTS_REQUIRED.
func IsBoostsRequired(err error) bool {
return tgerr.Is(err, ErrBoostsRequired)
}
// IsBoostPeerInvalid reports whether err is BOOST_PEER_INVALID.
func IsBoostPeerInvalid(err error) bool {
return tgerr.Is(err, ErrBoostPeerInvalid)
}
// IsBotsTooMuch reports whether err is BOTS_TOO_MUCH.
func IsBotsTooMuch(err error) bool {
return tgerr.Is(err, ErrBotsTooMuch)
}
// IsBotAccessForbidden reports whether err is BOT_ACCESS_FORBIDDEN.
func IsBotAccessForbidden(err error) bool {
return tgerr.Is(err, ErrBotAccessForbidden)
}
// IsBotAlreadyDisabled reports whether err is BOT_ALREADY_DISABLED.
func IsBotAlreadyDisabled(err error) bool {
return tgerr.Is(err, ErrBotAlreadyDisabled)
}
// IsBotAppBotInvalid reports whether err is BOT_APP_BOT_INVALID.
func IsBotAppBotInvalid(err error) bool {
return tgerr.Is(err, ErrBotAppBotInvalid)
}
// IsBotAppInvalid reports whether err is BOT_APP_INVALID.
func IsBotAppInvalid(err error) bool {
return tgerr.Is(err, ErrBotAppInvalid)
}
// IsBotAppShortnameInvalid reports whether err is BOT_APP_SHORTNAME_INVALID.
func IsBotAppShortnameInvalid(err error) bool {
return tgerr.Is(err, ErrBotAppShortnameInvalid)
}
// IsBotBusinessMissing reports whether err is BOT_BUSINESS_MISSING.
func IsBotBusinessMissing(err error) bool {
return tgerr.Is(err, ErrBotBusinessMissing)
}
// IsBotChannelsNa reports whether err is BOT_CHANNELS_NA.
func IsBotChannelsNa(err error) bool {
return tgerr.Is(err, ErrBotChannelsNa)
}
// IsBotCommandDescriptionInvalid reports whether err is BOT_COMMAND_DESCRIPTION_INVALID.
func IsBotCommandDescriptionInvalid(err error) bool {
return tgerr.Is(err, ErrBotCommandDescriptionInvalid)
}
// IsBotCommandInvalid reports whether err is BOT_COMMAND_INVALID.
func IsBotCommandInvalid(err error) bool {
return tgerr.Is(err, ErrBotCommandInvalid)
}
// IsBotDomainInvalid reports whether err is BOT_DOMAIN_INVALID.
func IsBotDomainInvalid(err error) bool {
return tgerr.Is(err, ErrBotDomainInvalid)
}
// IsBotFallbackUnsupported reports whether err is BOT_FALLBACK_UNSUPPORTED.
func IsBotFallbackUnsupported(err error) bool {
return tgerr.Is(err, ErrBotFallbackUnsupported)
}
// IsBotGamesDisabled reports whether err is BOT_GAMES_DISABLED.
func IsBotGamesDisabled(err error) bool {
return tgerr.Is(err, ErrBotGamesDisabled)
}
// IsBotGroupsBlocked reports whether err is BOT_GROUPS_BLOCKED.
func IsBotGroupsBlocked(err error) bool {
return tgerr.Is(err, ErrBotGroupsBlocked)
}
// IsBotInlineDisabled reports whether err is BOT_INLINE_DISABLED.
func IsBotInlineDisabled(err error) bool {
return tgerr.Is(err, ErrBotInlineDisabled)
}
// IsBotInvalid reports whether err is BOT_INVALID.
func IsBotInvalid(err error) bool {
return tgerr.Is(err, ErrBotInvalid)
}
// IsBotInvoiceInvalid reports whether err is BOT_INVOICE_INVALID.
func IsBotInvoiceInvalid(err error) bool {
return tgerr.Is(err, ErrBotInvoiceInvalid)
}
// IsBotNotConnectedYet reports whether err is BOT_NOT_CONNECTED_YET.
func IsBotNotConnectedYet(err error) bool {
return tgerr.Is(err, ErrBotNotConnectedYet)
}
// IsBotOnesideNotAvail reports whether err is BOT_ONESIDE_NOT_AVAIL.
func IsBotOnesideNotAvail(err error) bool {
return tgerr.Is(err, ErrBotOnesideNotAvail)
}
// IsBotPaymentsDisabled reports whether err is BOT_PAYMENTS_DISABLED.
func IsBotPaymentsDisabled(err error) bool {
return tgerr.Is(err, ErrBotPaymentsDisabled)
}
// IsBotResponseTimeout reports whether err is BOT_RESPONSE_TIMEOUT.
func IsBotResponseTimeout(err error) bool {
return tgerr.Is(err, ErrBotResponseTimeout)
}
// IsBotScoreNotModified reports whether err is BOT_SCORE_NOT_MODIFIED.
func IsBotScoreNotModified(err error) bool {
return tgerr.Is(err, ErrBotScoreNotModified)
}
// IsBotVerifierForbidden reports whether err is BOT_VERIFIER_FORBIDDEN.
func IsBotVerifierForbidden(err error) bool {
return tgerr.Is(err, ErrBotVerifierForbidden)
}
// IsBotWebviewDisabled reports whether err is BOT_WEBVIEW_DISABLED.
func IsBotWebviewDisabled(err error) bool {
return tgerr.Is(err, ErrBotWebviewDisabled)
}
// IsBroadcastForbidden reports whether err is BROADCAST_FORBIDDEN.
func IsBroadcastForbidden(err error) bool {
return tgerr.Is(err, ErrBroadcastForbidden)
}
// IsBroadcastIDInvalid reports whether err is BROADCAST_ID_INVALID.
func IsBroadcastIDInvalid(err error) bool {
return tgerr.Is(err, ErrBroadcastIDInvalid)
}
// IsBroadcastPublicVotersForbidden reports whether err is BROADCAST_PUBLIC_VOTERS_FORBIDDEN.
func IsBroadcastPublicVotersForbidden(err error) bool {
return tgerr.Is(err, ErrBroadcastPublicVotersForbidden)
}
// IsBroadcastRequired reports whether err is BROADCAST_REQUIRED.
func IsBroadcastRequired(err error) bool {
return tgerr.Is(err, ErrBroadcastRequired)
}
// IsBusinessAddressActive reports whether err is BUSINESS_ADDRESS_ACTIVE.
func IsBusinessAddressActive(err error) bool {
return tgerr.Is(err, ErrBusinessAddressActive)
}
// IsBusinessConnectionInvalid reports whether err is BUSINESS_CONNECTION_INVALID.
func IsBusinessConnectionInvalid(err error) bool {
return tgerr.Is(err, ErrBusinessConnectionInvalid)
}
// IsBusinessPeerInvalid reports whether err is BUSINESS_PEER_INVALID.
func IsBusinessPeerInvalid(err error) bool {
return tgerr.Is(err, ErrBusinessPeerInvalid)
}
// IsBusinessPeerUsageMissing reports whether err is BUSINESS_PEER_USAGE_MISSING.
func IsBusinessPeerUsageMissing(err error) bool {
return tgerr.Is(err, ErrBusinessPeerUsageMissing)
}
// IsBusinessRecipientsEmpty reports whether err is BUSINESS_RECIPIENTS_EMPTY.
func IsBusinessRecipientsEmpty(err error) bool {
return tgerr.Is(err, ErrBusinessRecipientsEmpty)
}
// IsBusinessWorkHoursEmpty reports whether err is BUSINESS_WORK_HOURS_EMPTY.
func IsBusinessWorkHoursEmpty(err error) bool {
return tgerr.Is(err, ErrBusinessWorkHoursEmpty)
}
// IsBusinessWorkHoursPeriodInvalid reports whether err is BUSINESS_WORK_HOURS_PERIOD_INVALID.
func IsBusinessWorkHoursPeriodInvalid(err error) bool {
return tgerr.Is(err, ErrBusinessWorkHoursPeriodInvalid)
}
// IsButtonCopyTextInvalid reports whether err is BUTTON_COPY_TEXT_INVALID.
func IsButtonCopyTextInvalid(err error) bool {
return tgerr.Is(err, ErrButtonCopyTextInvalid)
}
// IsButtonDataInvalid reports whether err is BUTTON_DATA_INVALID.
func IsButtonDataInvalid(err error) bool {
return tgerr.Is(err, ErrButtonDataInvalid)
}
// IsButtonIDInvalid reports whether err is BUTTON_ID_INVALID.
func IsButtonIDInvalid(err error) bool {
return tgerr.Is(err, ErrButtonIDInvalid)
}
// IsButtonInvalid reports whether err is BUTTON_INVALID.
func IsButtonInvalid(err error) bool {
return tgerr.Is(err, ErrButtonInvalid)
}
// IsButtonPosInvalid reports whether err is BUTTON_POS_INVALID.
func IsButtonPosInvalid(err error) bool {
return tgerr.Is(err, ErrButtonPosInvalid)
}
// IsButtonTextInvalid reports whether err is BUTTON_TEXT_INVALID.
func IsButtonTextInvalid(err error) bool {
return tgerr.Is(err, ErrButtonTextInvalid)
}
// IsButtonTypeInvalid reports whether err is BUTTON_TYPE_INVALID.
func IsButtonTypeInvalid(err error) bool {
return tgerr.Is(err, ErrButtonTypeInvalid)
}
// IsButtonURLInvalid reports whether err is BUTTON_URL_INVALID.
func IsButtonURLInvalid(err error) bool {
return tgerr.Is(err, ErrButtonURLInvalid)
}
// IsButtonUserInvalid reports whether err is BUTTON_USER_INVALID.
func IsButtonUserInvalid(err error) bool {
return tgerr.Is(err, ErrButtonUserInvalid)
}
// IsButtonUserPrivacyRestricted reports whether err is BUTTON_USER_PRIVACY_RESTRICTED.
func IsButtonUserPrivacyRestricted(err error) bool {
return tgerr.Is(err, ErrButtonUserPrivacyRestricted)
}
// IsCallAlreadyAccepted reports whether err is CALL_ALREADY_ACCEPTED.
func IsCallAlreadyAccepted(err error) bool {
return tgerr.Is(err, ErrCallAlreadyAccepted)
}
// IsCallAlreadyDeclined reports whether err is CALL_ALREADY_DECLINED.
func IsCallAlreadyDeclined(err error) bool {
return tgerr.Is(err, ErrCallAlreadyDeclined)
}
// IsCallOccupyFailed reports whether err is CALL_OCCUPY_FAILED.
func IsCallOccupyFailed(err error) bool {
return tgerr.Is(err, ErrCallOccupyFailed)
}
// IsCallPeerInvalid reports whether err is CALL_PEER_INVALID.
func IsCallPeerInvalid(err error) bool {
return tgerr.Is(err, ErrCallPeerInvalid)
}
// IsCallProtocolCompatLayerInvalid reports whether err is CALL_PROTOCOL_COMPAT_LAYER_INVALID.
func IsCallProtocolCompatLayerInvalid(err error) bool {
return tgerr.Is(err, ErrCallProtocolCompatLayerInvalid)
}
// IsCallProtocolFlagsInvalid reports whether err is CALL_PROTOCOL_FLAGS_INVALID.
func IsCallProtocolFlagsInvalid(err error) bool {
return tgerr.Is(err, ErrCallProtocolFlagsInvalid)
}
// IsCallProtocolLayerInvalid reports whether err is CALL_PROTOCOL_LAYER_INVALID.
func IsCallProtocolLayerInvalid(err error) bool {
return tgerr.Is(err, ErrCallProtocolLayerInvalid)
}
// IsCDNMethodInvalid reports whether err is CDN_METHOD_INVALID.
func IsCDNMethodInvalid(err error) bool {
return tgerr.Is(err, ErrCDNMethodInvalid)
}
// IsCDNUploadTimeout reports whether err is CDN_UPLOAD_TIMEOUT.
func IsCDNUploadTimeout(err error) bool {
return tgerr.Is(err, ErrCDNUploadTimeout)
}
// IsChannelsAdminLocatedTooMuch reports whether err is CHANNELS_ADMIN_LOCATED_TOO_MUCH.
func IsChannelsAdminLocatedTooMuch(err error) bool {
return tgerr.Is(err, ErrChannelsAdminLocatedTooMuch)
}
// IsChannelsAdminPublicTooMuch reports whether err is CHANNELS_ADMIN_PUBLIC_TOO_MUCH.
func IsChannelsAdminPublicTooMuch(err error) bool {
return tgerr.Is(err, ErrChannelsAdminPublicTooMuch)
}
// IsChannelsTooMuch reports whether err is CHANNELS_TOO_MUCH.
func IsChannelsTooMuch(err error) bool {
return tgerr.Is(err, ErrChannelsTooMuch)
}
// IsChannelIDInvalid reports whether err is CHANNEL_ID_INVALID.
func IsChannelIDInvalid(err error) bool {
return tgerr.Is(err, ErrChannelIDInvalid)
}
// IsChannelInvalid reports whether err is CHANNEL_INVALID.
func IsChannelInvalid(err error) bool {
return tgerr.Is(err, ErrChannelInvalid)
}
// IsChannelMonoforumUnsupported reports whether err is CHANNEL_MONOFORUM_UNSUPPORTED.
func IsChannelMonoforumUnsupported(err error) bool {
return tgerr.Is(err, ErrChannelMonoforumUnsupported)
}
// IsChannelParicipantMissing reports whether err is CHANNEL_PARICIPANT_MISSING.
func IsChannelParicipantMissing(err error) bool {
return tgerr.Is(err, ErrChannelParicipantMissing)
}
// IsChannelPrivate reports whether err is CHANNEL_PRIVATE.
func IsChannelPrivate(err error) bool {
return tgerr.Is(err, ErrChannelPrivate)
}
// IsChannelPublicGroupNa reports whether err is CHANNEL_PUBLIC_GROUP_NA.
func IsChannelPublicGroupNa(err error) bool {
return tgerr.Is(err, ErrChannelPublicGroupNa)
}
// IsChannelTooBig reports whether err is CHANNEL_TOO_BIG.
func IsChannelTooBig(err error) bool {
return tgerr.Is(err, ErrChannelTooBig)
}
// IsChannelTooLarge reports whether err is CHANNEL_TOO_LARGE.
func IsChannelTooLarge(err error) bool {
return tgerr.Is(err, ErrChannelTooLarge)
}
// IsChargeAlreadyRefunded reports whether err is CHARGE_ALREADY_REFUNDED.
func IsChargeAlreadyRefunded(err error) bool {
return tgerr.Is(err, ErrChargeAlreadyRefunded)
}
// IsChargeIDEmpty reports whether err is CHARGE_ID_EMPTY.
func IsChargeIDEmpty(err error) bool {
return tgerr.Is(err, ErrChargeIDEmpty)
}
// IsChargeIDInvalid reports whether err is CHARGE_ID_INVALID.
func IsChargeIDInvalid(err error) bool {
return tgerr.Is(err, ErrChargeIDInvalid)
}
// IsChatlinksTooMuch reports whether err is CHATLINKS_TOO_MUCH.
func IsChatlinksTooMuch(err error) bool {
return tgerr.Is(err, ErrChatlinksTooMuch)
}
// IsChatlinkSlugEmpty reports whether err is CHATLINK_SLUG_EMPTY.
func IsChatlinkSlugEmpty(err error) bool {
return tgerr.Is(err, ErrChatlinkSlugEmpty)
}
// IsChatlinkSlugExpired reports whether err is CHATLINK_SLUG_EXPIRED.
func IsChatlinkSlugExpired(err error) bool {
return tgerr.Is(err, ErrChatlinkSlugExpired)
}
// IsChatlistsTooMuch reports whether err is CHATLISTS_TOO_MUCH.
func IsChatlistsTooMuch(err error) bool {
return tgerr.Is(err, ErrChatlistsTooMuch)
}
// IsChatlistExcludeInvalid reports whether err is CHATLIST_EXCLUDE_INVALID.
func IsChatlistExcludeInvalid(err error) bool {
return tgerr.Is(err, ErrChatlistExcludeInvalid)
}
// IsChatAboutNotModified reports whether err is CHAT_ABOUT_NOT_MODIFIED.
func IsChatAboutNotModified(err error) bool {
return tgerr.Is(err, ErrChatAboutNotModified)
}
// IsChatAboutTooLong reports whether err is CHAT_ABOUT_TOO_LONG.
func IsChatAboutTooLong(err error) bool {
return tgerr.Is(err, ErrChatAboutTooLong)
}
// IsChatActionForbidden reports whether err is CHAT_ACTION_FORBIDDEN.
func IsChatActionForbidden(err error) bool {
return tgerr.Is(err, ErrChatActionForbidden)
}
// IsChatAdminInviteRequired reports whether err is CHAT_ADMIN_INVITE_REQUIRED.
func IsChatAdminInviteRequired(err error) bool {
return tgerr.Is(err, ErrChatAdminInviteRequired)
}
// IsChatAdminRequired reports whether err is CHAT_ADMIN_REQUIRED.
func IsChatAdminRequired(err error) bool {
return tgerr.Is(err, ErrChatAdminRequired)
}
// IsChatDiscussionUnallowed reports whether err is CHAT_DISCUSSION_UNALLOWED.
func IsChatDiscussionUnallowed(err error) bool {
return tgerr.Is(err, ErrChatDiscussionUnallowed)
}
// IsChatForwardsRestricted reports whether err is CHAT_FORWARDS_RESTRICTED.
func IsChatForwardsRestricted(err error) bool {
return tgerr.Is(err, ErrChatForwardsRestricted)
}
// IsChatGuestSendForbidden reports whether err is CHAT_GUEST_SEND_FORBIDDEN.
func IsChatGuestSendForbidden(err error) bool {
return tgerr.Is(err, ErrChatGuestSendForbidden)
}
// IsChatIDEmpty reports whether err is CHAT_ID_EMPTY.
func IsChatIDEmpty(err error) bool {
return tgerr.Is(err, ErrChatIDEmpty)
}
// IsChatIDGenerateFailed reports whether err is CHAT_ID_GENERATE_FAILED.
func IsChatIDGenerateFailed(err error) bool {
return tgerr.Is(err, ErrChatIDGenerateFailed)
}
// IsChatIDInvalid reports whether err is CHAT_ID_INVALID.
func IsChatIDInvalid(err error) bool {
return tgerr.Is(err, ErrChatIDInvalid)
}
// IsChatInvalid reports whether err is CHAT_INVALID.
func IsChatInvalid(err error) bool {
return tgerr.Is(err, ErrChatInvalid)
}
// IsChatInvitePermanent reports whether err is CHAT_INVITE_PERMANENT.
func IsChatInvitePermanent(err error) bool {
return tgerr.Is(err, ErrChatInvitePermanent)
}
// IsChatLinkExists reports whether err is CHAT_LINK_EXISTS.
func IsChatLinkExists(err error) bool {
return tgerr.Is(err, ErrChatLinkExists)
}
// IsChatMemberAddFailed reports whether err is CHAT_MEMBER_ADD_FAILED.
func IsChatMemberAddFailed(err error) bool {
return tgerr.Is(err, ErrChatMemberAddFailed)
}
// IsChatNotModified reports whether err is CHAT_NOT_MODIFIED.
func IsChatNotModified(err error) bool {
return tgerr.Is(err, ErrChatNotModified)
}
// IsChatPublicRequired reports whether err is CHAT_PUBLIC_REQUIRED.
func IsChatPublicRequired(err error) bool {
return tgerr.Is(err, ErrChatPublicRequired)
}
// IsChatRestricted reports whether err is CHAT_RESTRICTED.
func IsChatRestricted(err error) bool {
return tgerr.Is(err, ErrChatRestricted)
}
// IsChatRevokeDateUnsupported reports whether err is CHAT_REVOKE_DATE_UNSUPPORTED.
func IsChatRevokeDateUnsupported(err error) bool {
return tgerr.Is(err, ErrChatRevokeDateUnsupported)
}
// IsChatSendAudiosForbidden reports whether err is CHAT_SEND_AUDIOS_FORBIDDEN.
func IsChatSendAudiosForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendAudiosForbidden)
}
// IsChatSendDocsForbidden reports whether err is CHAT_SEND_DOCS_FORBIDDEN.
func IsChatSendDocsForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendDocsForbidden)
}
// IsChatSendGameForbidden reports whether err is CHAT_SEND_GAME_FORBIDDEN.
func IsChatSendGameForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendGameForbidden)
}
// IsChatSendGifsForbidden reports whether err is CHAT_SEND_GIFS_FORBIDDEN.
func IsChatSendGifsForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendGifsForbidden)
}
// IsChatSendInlineForbidden reports whether err is CHAT_SEND_INLINE_FORBIDDEN.
func IsChatSendInlineForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendInlineForbidden)
}
// IsChatSendMediaForbidden reports whether err is CHAT_SEND_MEDIA_FORBIDDEN.
func IsChatSendMediaForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendMediaForbidden)
}
// IsChatSendPhotosForbidden reports whether err is CHAT_SEND_PHOTOS_FORBIDDEN.
func IsChatSendPhotosForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendPhotosForbidden)
}
// IsChatSendPlainForbidden reports whether err is CHAT_SEND_PLAIN_FORBIDDEN.
func IsChatSendPlainForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendPlainForbidden)
}
// IsChatSendPollForbidden reports whether err is CHAT_SEND_POLL_FORBIDDEN.
func IsChatSendPollForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendPollForbidden)
}
// IsChatSendRoundvideosForbidden reports whether err is CHAT_SEND_ROUNDVIDEOS_FORBIDDEN.
func IsChatSendRoundvideosForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendRoundvideosForbidden)
}
// IsChatSendStickersForbidden reports whether err is CHAT_SEND_STICKERS_FORBIDDEN.
func IsChatSendStickersForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendStickersForbidden)
}
// IsChatSendVideosForbidden reports whether err is CHAT_SEND_VIDEOS_FORBIDDEN.
func IsChatSendVideosForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendVideosForbidden)
}
// IsChatSendVoicesForbidden reports whether err is CHAT_SEND_VOICES_FORBIDDEN.
func IsChatSendVoicesForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendVoicesForbidden)
}
// IsChatSendWebpageForbidden reports whether err is CHAT_SEND_WEBPAGE_FORBIDDEN.
func IsChatSendWebpageForbidden(err error) bool {
return tgerr.Is(err, ErrChatSendWebpageForbidden)
}
// IsChatTitleEmpty reports whether err is CHAT_TITLE_EMPTY.
func IsChatTitleEmpty(err error) bool {
return tgerr.Is(err, ErrChatTitleEmpty)
}
// IsChatTooBig reports whether err is CHAT_TOO_BIG.
func IsChatTooBig(err error) bool {
return tgerr.Is(err, ErrChatTooBig)
}
// IsChatTypeInvalid reports whether err is CHAT_TYPE_INVALID.
func IsChatTypeInvalid(err error) bool {
return tgerr.Is(err, ErrChatTypeInvalid)
}
// IsChatWriteForbidden reports whether err is CHAT_WRITE_FORBIDDEN.
func IsChatWriteForbidden(err error) bool {
return tgerr.Is(err, ErrChatWriteForbidden)
}
// IsCodeEmpty reports whether err is CODE_EMPTY.
func IsCodeEmpty(err error) bool {
return tgerr.Is(err, ErrCodeEmpty)
}
// IsCodeHashInvalid reports whether err is CODE_HASH_INVALID.
func IsCodeHashInvalid(err error) bool {
return tgerr.Is(err, ErrCodeHashInvalid)
}
// IsCodeInvalid reports whether err is CODE_INVALID.
func IsCodeInvalid(err error) bool {
return tgerr.Is(err, ErrCodeInvalid)
}
// IsCollectibleInvalid reports whether err is COLLECTIBLE_INVALID.
func IsCollectibleInvalid(err error) bool {
return tgerr.Is(err, ErrCollectibleInvalid)
}
// IsCollectibleNotFound reports whether err is COLLECTIBLE_NOT_FOUND.
func IsCollectibleNotFound(err error) bool {
return tgerr.Is(err, ErrCollectibleNotFound)
}
// IsColorInvalid reports whether err is COLOR_INVALID.
func IsColorInvalid(err error) bool {
return tgerr.Is(err, ErrColorInvalid)
}
// IsConnectionAPIIDInvalid reports whether err is CONNECTION_API_ID_INVALID.
func IsConnectionAPIIDInvalid(err error) bool {
return tgerr.Is(err, ErrConnectionAPIIDInvalid)
}
// IsConnectionAppVersionEmpty reports whether err is CONNECTION_APP_VERSION_EMPTY.
func IsConnectionAppVersionEmpty(err error) bool {
return tgerr.Is(err, ErrConnectionAppVersionEmpty)
}
// IsConnectionIDInvalid reports whether err is CONNECTION_ID_INVALID.
func IsConnectionIDInvalid(err error) bool {
return tgerr.Is(err, ErrConnectionIDInvalid)
}
// IsConnectionLayerInvalid reports whether err is CONNECTION_LAYER_INVALID.
func IsConnectionLayerInvalid(err error) bool {
return tgerr.Is(err, ErrConnectionLayerInvalid)
}
// IsContactAddMissing reports whether err is CONTACT_ADD_MISSING.
func IsContactAddMissing(err error) bool {
return tgerr.Is(err, ErrContactAddMissing)
}
// IsContactIDInvalid reports whether err is CONTACT_ID_INVALID.
func IsContactIDInvalid(err error) bool {
return tgerr.Is(err, ErrContactIDInvalid)
}
// IsContactMissing reports whether err is CONTACT_MISSING.
func IsContactMissing(err error) bool {
return tgerr.Is(err, ErrContactMissing)
}
// IsContactNameEmpty reports whether err is CONTACT_NAME_EMPTY.
func IsContactNameEmpty(err error) bool {
return tgerr.Is(err, ErrContactNameEmpty)
}
// IsContactReqMissing reports whether err is CONTACT_REQ_MISSING.
func IsContactReqMissing(err error) bool {
return tgerr.Is(err, ErrContactReqMissing)
}
// IsCreateCallFailed reports whether err is CREATE_CALL_FAILED.
func IsCreateCallFailed(err error) bool {
return tgerr.Is(err, ErrCreateCallFailed)
}
// IsCurrencyTotalAmountInvalid reports whether err is CURRENCY_TOTAL_AMOUNT_INVALID.
func IsCurrencyTotalAmountInvalid(err error) bool {
return tgerr.Is(err, ErrCurrencyTotalAmountInvalid)
}
// IsCustomReactionsTooMany reports whether err is CUSTOM_REACTIONS_TOO_MANY.
func IsCustomReactionsTooMany(err error) bool {
return tgerr.Is(err, ErrCustomReactionsTooMany)
}
// IsDataHashSizeInvalid reports whether err is DATA_HASH_SIZE_INVALID.
func IsDataHashSizeInvalid(err error) bool {
return tgerr.Is(err, ErrDataHashSizeInvalid)
}
// IsDataInvalid reports whether err is DATA_INVALID.
func IsDataInvalid(err error) bool {
return tgerr.Is(err, ErrDataInvalid)
}
// IsDataJSONInvalid reports whether err is DATA_JSON_INVALID.
func IsDataJSONInvalid(err error) bool {
return tgerr.Is(err, ErrDataJSONInvalid)
}
// IsDataTooLong reports whether err is DATA_TOO_LONG.
func IsDataTooLong(err error) bool {
return tgerr.Is(err, ErrDataTooLong)
}
// IsDateEmpty reports whether err is DATE_EMPTY.
func IsDateEmpty(err error) bool {
return tgerr.Is(err, ErrDateEmpty)
}
// IsDCIDInvalid reports whether err is DC_ID_INVALID.
func IsDCIDInvalid(err error) bool {
return tgerr.Is(err, ErrDCIDInvalid)
}
// IsDhGAInvalid reports whether err is DH_G_A_INVALID.
func IsDhGAInvalid(err error) bool {
return tgerr.Is(err, ErrDhGAInvalid)
}
// IsDocumentInvalid reports whether err is DOCUMENT_INVALID.
func IsDocumentInvalid(err error) bool {
return tgerr.Is(err, ErrDocumentInvalid)
}
// IsEditBotInviteForbidden reports whether err is EDIT_BOT_INVITE_FORBIDDEN.
func IsEditBotInviteForbidden(err error) bool {
return tgerr.Is(err, ErrEditBotInviteForbidden)
}
// IsEffectIDInvalid reports whether err is EFFECT_ID_INVALID.
func IsEffectIDInvalid(err error) bool {
return tgerr.Is(err, ErrEffectIDInvalid)
}
// IsEmailHashExpired reports whether err is EMAIL_HASH_EXPIRED.
func IsEmailHashExpired(err error) bool {
return tgerr.Is(err, ErrEmailHashExpired)
}
// IsEmailInvalid reports whether err is EMAIL_INVALID.
func IsEmailInvalid(err error) bool {
return tgerr.Is(err, ErrEmailInvalid)
}
// IsEmailNotAllowed reports whether err is EMAIL_NOT_ALLOWED.
func IsEmailNotAllowed(err error) bool {
return tgerr.Is(err, ErrEmailNotAllowed)
}
// IsEmailNotSetup reports whether err is EMAIL_NOT_SETUP.
func IsEmailNotSetup(err error) bool {
return tgerr.Is(err, ErrEmailNotSetup)
}
// IsEmailUnconfirmed reports whether err is EMAIL_UNCONFIRMED.
func IsEmailUnconfirmed(err error) bool {
return tgerr.Is(err, ErrEmailUnconfirmed)
}
// IsEmailVerifyExpired reports whether err is EMAIL_VERIFY_EXPIRED.
func IsEmailVerifyExpired(err error) bool {
return tgerr.Is(err, ErrEmailVerifyExpired)
}
// IsEmojiInvalid reports whether err is EMOJI_INVALID.
func IsEmojiInvalid(err error) bool {
return tgerr.Is(err, ErrEmojiInvalid)
}
// IsEmojiMarkupInvalid reports whether err is EMOJI_MARKUP_INVALID.
func IsEmojiMarkupInvalid(err error) bool {
return tgerr.Is(err, ErrEmojiMarkupInvalid)
}
// IsEmojiNotModified reports whether err is EMOJI_NOT_MODIFIED.
func IsEmojiNotModified(err error) bool {
return tgerr.Is(err, ErrEmojiNotModified)
}
// IsEmoticonEmpty reports whether err is EMOTICON_EMPTY.
func IsEmoticonEmpty(err error) bool {
return tgerr.Is(err, ErrEmoticonEmpty)
}
// IsEmoticonInvalid reports whether err is EMOTICON_INVALID.
func IsEmoticonInvalid(err error) bool {
return tgerr.Is(err, ErrEmoticonInvalid)
}
// IsEmoticonStickerpackMissing reports whether err is EMOTICON_STICKERPACK_MISSING.
func IsEmoticonStickerpackMissing(err error) bool {
return tgerr.Is(err, ErrEmoticonStickerpackMissing)
}
// IsEncryptedMessageInvalid reports whether err is ENCRYPTED_MESSAGE_INVALID.
func IsEncryptedMessageInvalid(err error) bool {
return tgerr.Is(err, ErrEncryptedMessageInvalid)
}
// IsEncryptionAlreadyAccepted reports whether err is ENCRYPTION_ALREADY_ACCEPTED.
func IsEncryptionAlreadyAccepted(err error) bool {
return tgerr.Is(err, ErrEncryptionAlreadyAccepted)
}
// IsEncryptionAlreadyDeclined reports whether err is ENCRYPTION_ALREADY_DECLINED.
func IsEncryptionAlreadyDeclined(err error) bool {
return tgerr.Is(err, ErrEncryptionAlreadyDeclined)
}
// IsEncryptionDeclined reports whether err is ENCRYPTION_DECLINED.
func IsEncryptionDeclined(err error) bool {
return tgerr.Is(err, ErrEncryptionDeclined)
}
// IsEncryptionIDInvalid reports whether err is ENCRYPTION_ID_INVALID.
func IsEncryptionIDInvalid(err error) bool {
return tgerr.Is(err, ErrEncryptionIDInvalid)
}
// IsEntitiesTooLong reports whether err is ENTITIES_TOO_LONG.
func IsEntitiesTooLong(err error) bool {
return tgerr.Is(err, ErrEntitiesTooLong)
}
// IsEntityBoundsInvalid reports whether err is ENTITY_BOUNDS_INVALID.
func IsEntityBoundsInvalid(err error) bool {
return tgerr.Is(err, ErrEntityBoundsInvalid)
}
// IsEntityMentionUserInvalid reports whether err is ENTITY_MENTION_USER_INVALID.
func IsEntityMentionUserInvalid(err error) bool {
return tgerr.Is(err, ErrEntityMentionUserInvalid)
}
// IsErrorTextEmpty reports whether err is ERROR_TEXT_EMPTY.
func IsErrorTextEmpty(err error) bool {
return tgerr.Is(err, ErrErrorTextEmpty)
}
// IsExpiresAtInvalid reports whether err is EXPIRES_AT_INVALID.
func IsExpiresAtInvalid(err error) bool {
return tgerr.Is(err, ErrExpiresAtInvalid)
}
// IsExpireDateInvalid reports whether err is EXPIRE_DATE_INVALID.
func IsExpireDateInvalid(err error) bool {
return tgerr.Is(err, ErrExpireDateInvalid)
}
// IsExtendedMediaAmountInvalid reports whether err is EXTENDED_MEDIA_AMOUNT_INVALID.
func IsExtendedMediaAmountInvalid(err error) bool {
return tgerr.Is(err, ErrExtendedMediaAmountInvalid)
}
// IsExtendedMediaInvalid reports whether err is EXTENDED_MEDIA_INVALID.
func IsExtendedMediaInvalid(err error) bool {
return tgerr.Is(err, ErrExtendedMediaInvalid)
}
// IsExternalURLInvalid reports whether err is EXTERNAL_URL_INVALID.
func IsExternalURLInvalid(err error) bool {
return tgerr.Is(err, ErrExternalURLInvalid)
}
// IsFilerefUpgradeNeeded reports whether err is FILEREF_UPGRADE_NEEDED.
func IsFilerefUpgradeNeeded(err error) bool {
return tgerr.Is(err, ErrFilerefUpgradeNeeded)
}
// IsFileContentTypeInvalid reports whether err is FILE_CONTENT_TYPE_INVALID.
func IsFileContentTypeInvalid(err error) bool {
return tgerr.Is(err, ErrFileContentTypeInvalid)
}
// IsFileEmtpy reports whether err is FILE_EMTPY.
func IsFileEmtpy(err error) bool {
return tgerr.Is(err, ErrFileEmtpy)
}
// IsFileIDInvalid reports whether err is FILE_ID_INVALID.
func IsFileIDInvalid(err error) bool {
return tgerr.Is(err, ErrFileIDInvalid)
}
// IsFilePartsInvalid reports whether err is FILE_PARTS_INVALID.
func IsFilePartsInvalid(err error) bool {
return tgerr.Is(err, ErrFilePartsInvalid)
}
// IsFilePartEmpty reports whether err is FILE_PART_EMPTY.
func IsFilePartEmpty(err error) bool {
return tgerr.Is(err, ErrFilePartEmpty)
}
// IsFilePartInvalid reports whether err is FILE_PART_INVALID.
func IsFilePartInvalid(err error) bool {
return tgerr.Is(err, ErrFilePartInvalid)
}
// IsFilePartLengthInvalid reports whether err is FILE_PART_LENGTH_INVALID.
func IsFilePartLengthInvalid(err error) bool {
return tgerr.Is(err, ErrFilePartLengthInvalid)
}
// IsFilePartSizeChanged reports whether err is FILE_PART_SIZE_CHANGED.
func IsFilePartSizeChanged(err error) bool {
return tgerr.Is(err, ErrFilePartSizeChanged)
}
// IsFilePartSizeInvalid reports whether err is FILE_PART_SIZE_INVALID.
func IsFilePartSizeInvalid(err error) bool {
return tgerr.Is(err, ErrFilePartSizeInvalid)
}
// IsFilePartTooBig reports whether err is FILE_PART_TOO_BIG.
func IsFilePartTooBig(err error) bool {
return tgerr.Is(err, ErrFilePartTooBig)
}
// IsFilePartTooSmall reports whether err is FILE_PART_TOO_SMALL.
func IsFilePartTooSmall(err error) bool {
return tgerr.Is(err, ErrFilePartTooSmall)
}
// IsFileReferenceEmpty reports whether err is FILE_REFERENCE_EMPTY.
func IsFileReferenceEmpty(err error) bool {
return tgerr.Is(err, ErrFileReferenceEmpty)
}
// IsFileReferenceExpired reports whether err is FILE_REFERENCE_EXPIRED.
func IsFileReferenceExpired(err error) bool {
return tgerr.Is(err, ErrFileReferenceExpired)
}
// IsFileReferenceInvalid reports whether err is FILE_REFERENCE_INVALID.
func IsFileReferenceInvalid(err error) bool {
return tgerr.Is(err, ErrFileReferenceInvalid)
}
// IsFileTitleEmpty reports whether err is FILE_TITLE_EMPTY.
func IsFileTitleEmpty(err error) bool {
return tgerr.Is(err, ErrFileTitleEmpty)
}
// IsFileTokenInvalid reports whether err is FILE_TOKEN_INVALID.
func IsFileTokenInvalid(err error) bool {
return tgerr.Is(err, ErrFileTokenInvalid)
}
// IsFilterIDInvalid reports whether err is FILTER_ID_INVALID.
func IsFilterIDInvalid(err error) bool {
return tgerr.Is(err, ErrFilterIDInvalid)
}
// IsFilterIncludeEmpty reports whether err is FILTER_INCLUDE_EMPTY.
func IsFilterIncludeEmpty(err error) bool {
return tgerr.Is(err, ErrFilterIncludeEmpty)
}
// IsFilterNotSupported reports whether err is FILTER_NOT_SUPPORTED.
func IsFilterNotSupported(err error) bool {
return tgerr.Is(err, ErrFilterNotSupported)
}
// IsFilterTitleEmpty reports whether err is FILTER_TITLE_EMPTY.
func IsFilterTitleEmpty(err error) bool {
return tgerr.Is(err, ErrFilterTitleEmpty)
}
// IsFirstnameInvalid reports whether err is FIRSTNAME_INVALID.
func IsFirstnameInvalid(err error) bool {
return tgerr.Is(err, ErrFirstnameInvalid)
}
// IsFloodPremiumWait reports whether err is FLOOD_PREMIUM_WAIT.
func IsFloodPremiumWait(err error) bool {
return tgerr.Is(err, ErrFloodPremiumWait)
}
// IsFolderIDInvalid reports whether err is FOLDER_ID_INVALID.
func IsFolderIDInvalid(err error) bool {
return tgerr.Is(err, ErrFolderIDInvalid)
}
// IsFormExpired reports whether err is FORM_EXPIRED.
func IsFormExpired(err error) bool {
return tgerr.Is(err, ErrFormExpired)
}
// IsFormIDEmpty reports whether err is FORM_ID_EMPTY.
func IsFormIDEmpty(err error) bool {
return tgerr.Is(err, ErrFormIDEmpty)
}
// IsFormSubmitDuplicate reports whether err is FORM_SUBMIT_DUPLICATE.
func IsFormSubmitDuplicate(err error) bool {
return tgerr.Is(err, ErrFormSubmitDuplicate)
}
// IsFormUnsupported reports whether err is FORM_UNSUPPORTED.
func IsFormUnsupported(err error) bool {
return tgerr.Is(err, ErrFormUnsupported)
}
// IsForumEnabled reports whether err is FORUM_ENABLED.
func IsForumEnabled(err error) bool {
return tgerr.Is(err, ErrForumEnabled)
}
// IsFreshChangeAdminsForbidden reports whether err is FRESH_CHANGE_ADMINS_FORBIDDEN.
func IsFreshChangeAdminsForbidden(err error) bool {
return tgerr.Is(err, ErrFreshChangeAdminsForbidden)
}
// IsFreshChangePhoneForbidden reports whether err is FRESH_CHANGE_PHONE_FORBIDDEN.
func IsFreshChangePhoneForbidden(err error) bool {
return tgerr.Is(err, ErrFreshChangePhoneForbidden)
}
// IsFreshResetAuthorisationForbidden reports whether err is FRESH_RESET_AUTHORISATION_FORBIDDEN.
func IsFreshResetAuthorisationForbidden(err error) bool {
return tgerr.Is(err, ErrFreshResetAuthorisationForbidden)
}
// IsFromMessageBotDisabled reports whether err is FROM_MESSAGE_BOT_DISABLED.
func IsFromMessageBotDisabled(err error) bool {
return tgerr.Is(err, ErrFromMessageBotDisabled)
}
// IsFromPeerInvalid reports whether err is FROM_PEER_INVALID.
func IsFromPeerInvalid(err error) bool {
return tgerr.Is(err, ErrFromPeerInvalid)
}
// IsFrozenMethodInvalid reports whether err is FROZEN_METHOD_INVALID.
func IsFrozenMethodInvalid(err error) bool {
return tgerr.Is(err, ErrFrozenMethodInvalid)
}
// IsFrozenParticipantMissing reports whether err is FROZEN_PARTICIPANT_MISSING.
func IsFrozenParticipantMissing(err error) bool {
return tgerr.Is(err, ErrFrozenParticipantMissing)
}
// IsGameBotInvalid reports whether err is GAME_BOT_INVALID.
func IsGameBotInvalid(err error) bool {
return tgerr.Is(err, ErrGameBotInvalid)
}
// IsGeoPointInvalid reports whether err is GEO_POINT_INVALID.
func IsGeoPointInvalid(err error) bool {
return tgerr.Is(err, ErrGeoPointInvalid)
}
// IsGiftMonthsInvalid reports whether err is GIFT_MONTHS_INVALID.
func IsGiftMonthsInvalid(err error) bool {
return tgerr.Is(err, ErrGiftMonthsInvalid)
}
// IsGiftSlugExpired reports whether err is GIFT_SLUG_EXPIRED.
func IsGiftSlugExpired(err error) bool {
return tgerr.Is(err, ErrGiftSlugExpired)
}
// IsGiftSlugInvalid reports whether err is GIFT_SLUG_INVALID.
func IsGiftSlugInvalid(err error) bool {
return tgerr.Is(err, ErrGiftSlugInvalid)
}
// IsGiftStarsInvalid reports whether err is GIFT_STARS_INVALID.
func IsGiftStarsInvalid(err error) bool {
return tgerr.Is(err, ErrGiftStarsInvalid)
}
// IsGifContentTypeInvalid reports whether err is GIF_CONTENT_TYPE_INVALID.
func IsGifContentTypeInvalid(err error) bool {
return tgerr.Is(err, ErrGifContentTypeInvalid)
}
// IsGifIDInvalid reports whether err is GIF_ID_INVALID.
func IsGifIDInvalid(err error) bool {
return tgerr.Is(err, ErrGifIDInvalid)
}
// IsGraphExpiredReload reports whether err is GRAPH_EXPIRED_RELOAD.
func IsGraphExpiredReload(err error) bool {
return tgerr.Is(err, ErrGraphExpiredReload)
}
// IsGraphInvalidReload reports whether err is GRAPH_INVALID_RELOAD.
func IsGraphInvalidReload(err error) bool {
return tgerr.Is(err, ErrGraphInvalidReload)
}
// IsGraphOutdatedReload reports whether err is GRAPH_OUTDATED_RELOAD.
func IsGraphOutdatedReload(err error) bool {
return tgerr.Is(err, ErrGraphOutdatedReload)
}
// IsGroupcallAlreadyDiscarded reports whether err is GROUPCALL_ALREADY_DISCARDED.
func IsGroupcallAlreadyDiscarded(err error) bool {
return tgerr.Is(err, ErrGroupcallAlreadyDiscarded)
}
// IsGroupcallAlreadyStarted reports whether err is GROUPCALL_ALREADY_STARTED.
func IsGroupcallAlreadyStarted(err error) bool {
return tgerr.Is(err, ErrGroupcallAlreadyStarted)
}
// IsGroupcallForbidden reports whether err is GROUPCALL_FORBIDDEN.
func IsGroupcallForbidden(err error) bool {
return tgerr.Is(err, ErrGroupcallForbidden)
}
// IsGroupcallInvalid reports whether err is GROUPCALL_INVALID.
func IsGroupcallInvalid(err error) bool {
return tgerr.Is(err, ErrGroupcallInvalid)
}
// IsGroupcallJoinMissing reports whether err is GROUPCALL_JOIN_MISSING.
func IsGroupcallJoinMissing(err error) bool {
return tgerr.Is(err, ErrGroupcallJoinMissing)
}
// IsGroupcallNotModified reports whether err is GROUPCALL_NOT_MODIFIED.
func IsGroupcallNotModified(err error) bool {
return tgerr.Is(err, ErrGroupcallNotModified)
}
// IsGroupcallSsrcDuplicateMuch reports whether err is GROUPCALL_SSRC_DUPLICATE_MUCH.
func IsGroupcallSsrcDuplicateMuch(err error) bool {
return tgerr.Is(err, ErrGroupcallSsrcDuplicateMuch)
}
// IsGroupedMediaInvalid reports whether err is GROUPED_MEDIA_INVALID.
func IsGroupedMediaInvalid(err error) bool {
return tgerr.Is(err, ErrGroupedMediaInvalid)
}
// IsHashtagInvalid reports whether err is HASHTAG_INVALID.
func IsHashtagInvalid(err error) bool {
return tgerr.Is(err, ErrHashtagInvalid)
}
// IsHashInvalid reports whether err is HASH_INVALID.
func IsHashInvalid(err error) bool {
return tgerr.Is(err, ErrHashInvalid)
}
// IsHashSizeInvalid reports whether err is HASH_SIZE_INVALID.
func IsHashSizeInvalid(err error) bool {
return tgerr.Is(err, ErrHashSizeInvalid)
}
// IsHideRequesterMissing reports whether err is HIDE_REQUESTER_MISSING.
func IsHideRequesterMissing(err error) bool {
return tgerr.Is(err, ErrHideRequesterMissing)
}
// IsIDExpired reports whether err is ID_EXPIRED.
func IsIDExpired(err error) bool {
return tgerr.Is(err, ErrIDExpired)
}
// IsIDInvalid reports whether err is ID_INVALID.
func IsIDInvalid(err error) bool {
return tgerr.Is(err, ErrIDInvalid)
}
// IsImageProcessFailed reports whether err is IMAGE_PROCESS_FAILED.
func IsImageProcessFailed(err error) bool {
return tgerr.Is(err, ErrImageProcessFailed)
}
// IsImportFileInvalid reports whether err is IMPORT_FILE_INVALID.
func IsImportFileInvalid(err error) bool {
return tgerr.Is(err, ErrImportFileInvalid)
}
// IsImportFormatDateInvalid reports whether err is IMPORT_FORMAT_DATE_INVALID.
func IsImportFormatDateInvalid(err error) bool {
return tgerr.Is(err, ErrImportFormatDateInvalid)
}
// IsImportFormatUnrecognized reports whether err is IMPORT_FORMAT_UNRECOGNIZED.
func IsImportFormatUnrecognized(err error) bool {
return tgerr.Is(err, ErrImportFormatUnrecognized)
}
// IsImportIDInvalid reports whether err is IMPORT_ID_INVALID.
func IsImportIDInvalid(err error) bool {
return tgerr.Is(err, ErrImportIDInvalid)
}
// IsImportTokenInvalid reports whether err is IMPORT_TOKEN_INVALID.
func IsImportTokenInvalid(err error) bool {
return tgerr.Is(err, ErrImportTokenInvalid)
}
// IsInlineBotRequired reports whether err is INLINE_BOT_REQUIRED.
func IsInlineBotRequired(err error) bool {
return tgerr.Is(err, ErrInlineBotRequired)
}
// IsInlineResultExpired reports whether err is INLINE_RESULT_EXPIRED.
func IsInlineResultExpired(err error) bool {
return tgerr.Is(err, ErrInlineResultExpired)
}
// IsInputChatlistInvalid reports whether err is INPUT_CHATLIST_INVALID.
func IsInputChatlistInvalid(err error) bool {
return tgerr.Is(err, ErrInputChatlistInvalid)
}
// IsInputFileInvalid reports whether err is INPUT_FILE_INVALID.
func IsInputFileInvalid(err error) bool {
return tgerr.Is(err, ErrInputFileInvalid)
}
// IsInputFilterInvalid reports whether err is INPUT_FILTER_INVALID.
func IsInputFilterInvalid(err error) bool {
return tgerr.Is(err, ErrInputFilterInvalid)
}
// IsInputPeersEmpty reports whether err is INPUT_PEERS_EMPTY.
func IsInputPeersEmpty(err error) bool {
return tgerr.Is(err, ErrInputPeersEmpty)
}
// IsInputPurposeInvalid reports whether err is INPUT_PURPOSE_INVALID.
func IsInputPurposeInvalid(err error) bool {
return tgerr.Is(err, ErrInputPurposeInvalid)
}
// IsInputTextEmpty reports whether err is INPUT_TEXT_EMPTY.
func IsInputTextEmpty(err error) bool {
return tgerr.Is(err, ErrInputTextEmpty)
}
// IsInputTextTooLong reports whether err is INPUT_TEXT_TOO_LONG.
func IsInputTextTooLong(err error) bool {
return tgerr.Is(err, ErrInputTextTooLong)
}
// IsInputUserDeactivated reports whether err is INPUT_USER_DEACTIVATED.
func IsInputUserDeactivated(err error) bool {
return tgerr.Is(err, ErrInputUserDeactivated)
}
// IsInvitesTooMuch reports whether err is INVITES_TOO_MUCH.
func IsInvitesTooMuch(err error) bool {
return tgerr.Is(err, ErrInvitesTooMuch)
}
// IsInviteForbiddenWithJoinas reports whether err is INVITE_FORBIDDEN_WITH_JOINAS.
func IsInviteForbiddenWithJoinas(err error) bool {
return tgerr.Is(err, ErrInviteForbiddenWithJoinas)
}
// IsInviteHashEmpty reports whether err is INVITE_HASH_EMPTY.
func IsInviteHashEmpty(err error) bool {
return tgerr.Is(err, ErrInviteHashEmpty)
}
// IsInviteHashExpired reports whether err is INVITE_HASH_EXPIRED.
func IsInviteHashExpired(err error) bool {
return tgerr.Is(err, ErrInviteHashExpired)
}
// IsInviteHashInvalid reports whether err is INVITE_HASH_INVALID.
func IsInviteHashInvalid(err error) bool {
return tgerr.Is(err, ErrInviteHashInvalid)
}
// IsInviteRequestSent reports whether err is INVITE_REQUEST_SENT.
func IsInviteRequestSent(err error) bool {
return tgerr.Is(err, ErrInviteRequestSent)
}
// IsInviteRevokedMissing reports whether err is INVITE_REVOKED_MISSING.
func IsInviteRevokedMissing(err error) bool {
return tgerr.Is(err, ErrInviteRevokedMissing)
}
// IsInviteSlugEmpty reports whether err is INVITE_SLUG_EMPTY.
func IsInviteSlugEmpty(err error) bool {
return tgerr.Is(err, ErrInviteSlugEmpty)
}
// IsInviteSlugExpired reports whether err is INVITE_SLUG_EXPIRED.
func IsInviteSlugExpired(err error) bool {
return tgerr.Is(err, ErrInviteSlugExpired)
}
// IsInviteSlugInvalid reports whether err is INVITE_SLUG_INVALID.
func IsInviteSlugInvalid(err error) bool {
return tgerr.Is(err, ErrInviteSlugInvalid)
}
// IsInvoiceInvalid reports whether err is INVOICE_INVALID.
func IsInvoiceInvalid(err error) bool {
return tgerr.Is(err, ErrInvoiceInvalid)
}
// IsInvoicePayloadInvalid reports whether err is INVOICE_PAYLOAD_INVALID.
func IsInvoicePayloadInvalid(err error) bool {
return tgerr.Is(err, ErrInvoicePayloadInvalid)
}
// IsJoinAsPeerInvalid reports whether err is JOIN_AS_PEER_INVALID.
func IsJoinAsPeerInvalid(err error) bool {
return tgerr.Is(err, ErrJoinAsPeerInvalid)
}
// IsLanguageInvalid reports whether err is LANGUAGE_INVALID.
func IsLanguageInvalid(err error) bool {
return tgerr.Is(err, ErrLanguageInvalid)
}
// IsLangCodeInvalid reports whether err is LANG_CODE_INVALID.
func IsLangCodeInvalid(err error) bool {
return tgerr.Is(err, ErrLangCodeInvalid)
}
// IsLangCodeNotSupported reports whether err is LANG_CODE_NOT_SUPPORTED.
func IsLangCodeNotSupported(err error) bool {
return tgerr.Is(err, ErrLangCodeNotSupported)
}
// IsLangPackInvalid reports whether err is LANG_PACK_INVALID.
func IsLangPackInvalid(err error) bool {
return tgerr.Is(err, ErrLangPackInvalid)
}
// IsLastnameInvalid reports whether err is LASTNAME_INVALID.
func IsLastnameInvalid(err error) bool {
return tgerr.Is(err, ErrLastnameInvalid)
}
// IsLimitInvalid reports whether err is LIMIT_INVALID.
func IsLimitInvalid(err error) bool {
return tgerr.Is(err, ErrLimitInvalid)
}
// IsLinkNotModified reports whether err is LINK_NOT_MODIFIED.
func IsLinkNotModified(err error) bool {
return tgerr.Is(err, ErrLinkNotModified)
}
// IsLocationInvalid reports whether err is LOCATION_INVALID.
func IsLocationInvalid(err error) bool {
return tgerr.Is(err, ErrLocationInvalid)
}
// IsMaxDateInvalid reports whether err is MAX_DATE_INVALID.
func IsMaxDateInvalid(err error) bool {
return tgerr.Is(err, ErrMaxDateInvalid)
}
// IsMaxIDInvalid reports whether err is MAX_ID_INVALID.
func IsMaxIDInvalid(err error) bool {
return tgerr.Is(err, ErrMaxIDInvalid)
}
// IsMaxQtsInvalid reports whether err is MAX_QTS_INVALID.
func IsMaxQtsInvalid(err error) bool {
return tgerr.Is(err, ErrMaxQtsInvalid)
}
// IsMD5ChecksumInvalid reports whether err is MD5_CHECKSUM_INVALID.
func IsMD5ChecksumInvalid(err error) bool {
return tgerr.Is(err, ErrMD5ChecksumInvalid)
}
// IsMediaAlreadyPaid reports whether err is MEDIA_ALREADY_PAID.
func IsMediaAlreadyPaid(err error) bool {
return tgerr.Is(err, ErrMediaAlreadyPaid)
}
// IsMediaCaptionTooLong reports whether err is MEDIA_CAPTION_TOO_LONG.
func IsMediaCaptionTooLong(err error) bool {
return tgerr.Is(err, ErrMediaCaptionTooLong)
}
// IsMediaEmpty reports whether err is MEDIA_EMPTY.
func IsMediaEmpty(err error) bool {
return tgerr.Is(err, ErrMediaEmpty)
}
// IsMediaFileInvalid reports whether err is MEDIA_FILE_INVALID.
func IsMediaFileInvalid(err error) bool {
return tgerr.Is(err, ErrMediaFileInvalid)
}
// IsMediaGroupedInvalid reports whether err is MEDIA_GROUPED_INVALID.
func IsMediaGroupedInvalid(err error) bool {
return tgerr.Is(err, ErrMediaGroupedInvalid)
}
// IsMediaInvalid reports whether err is MEDIA_INVALID.
func IsMediaInvalid(err error) bool {
return tgerr.Is(err, ErrMediaInvalid)
}
// IsMediaNewInvalid reports whether err is MEDIA_NEW_INVALID.
func IsMediaNewInvalid(err error) bool {
return tgerr.Is(err, ErrMediaNewInvalid)
}
// IsMediaPrevInvalid reports whether err is MEDIA_PREV_INVALID.
func IsMediaPrevInvalid(err error) bool {
return tgerr.Is(err, ErrMediaPrevInvalid)
}
// IsMediaTTLInvalid reports whether err is MEDIA_TTL_INVALID.
func IsMediaTTLInvalid(err error) bool {
return tgerr.Is(err, ErrMediaTTLInvalid)
}
// IsMediaTypeInvalid reports whether err is MEDIA_TYPE_INVALID.
func IsMediaTypeInvalid(err error) bool {
return tgerr.Is(err, ErrMediaTypeInvalid)
}
// IsMediaVideoStoryMissing reports whether err is MEDIA_VIDEO_STORY_MISSING.
func IsMediaVideoStoryMissing(err error) bool {
return tgerr.Is(err, ErrMediaVideoStoryMissing)
}
// IsMegagroupGeoRequired reports whether err is MEGAGROUP_GEO_REQUIRED.
func IsMegagroupGeoRequired(err error) bool {
return tgerr.Is(err, ErrMegagroupGeoRequired)
}
// IsMegagroupIDInvalid reports whether err is MEGAGROUP_ID_INVALID.
func IsMegagroupIDInvalid(err error) bool {
return tgerr.Is(err, ErrMegagroupIDInvalid)
}
// IsMegagroupPrehistoryHidden reports whether err is MEGAGROUP_PREHISTORY_HIDDEN.
func IsMegagroupPrehistoryHidden(err error) bool {
return tgerr.Is(err, ErrMegagroupPrehistoryHidden)
}
// IsMegagroupRequired reports whether err is MEGAGROUP_REQUIRED.
func IsMegagroupRequired(err error) bool {
return tgerr.Is(err, ErrMegagroupRequired)
}
// IsMessageAuthorRequired reports whether err is MESSAGE_AUTHOR_REQUIRED.
func IsMessageAuthorRequired(err error) bool {
return tgerr.Is(err, ErrMessageAuthorRequired)
}
// IsMessageDeleteForbidden reports whether err is MESSAGE_DELETE_FORBIDDEN.
func IsMessageDeleteForbidden(err error) bool {
return tgerr.Is(err, ErrMessageDeleteForbidden)
}
// IsMessageEditTimeExpired reports whether err is MESSAGE_EDIT_TIME_EXPIRED.
func IsMessageEditTimeExpired(err error) bool {
return tgerr.Is(err, ErrMessageEditTimeExpired)
}
// IsMessageEmpty reports whether err is MESSAGE_EMPTY.
func IsMessageEmpty(err error) bool {
return tgerr.Is(err, ErrMessageEmpty)
}
// IsMessageIDsEmpty reports whether err is MESSAGE_IDS_EMPTY.
func IsMessageIDsEmpty(err error) bool {
return tgerr.Is(err, ErrMessageIDsEmpty)
}
// IsMessageIDInvalid reports whether err is MESSAGE_ID_INVALID.
func IsMessageIDInvalid(err error) bool {
return tgerr.Is(err, ErrMessageIDInvalid)
}
// IsMessageNotModified reports whether err is MESSAGE_NOT_MODIFIED.
func IsMessageNotModified(err error) bool {
return tgerr.Is(err, ErrMessageNotModified)
}
// IsMessageNotReadYet reports whether err is MESSAGE_NOT_READ_YET.
func IsMessageNotReadYet(err error) bool {
return tgerr.Is(err, ErrMessageNotReadYet)
}
// IsMessagePollClosed reports whether err is MESSAGE_POLL_CLOSED.
func IsMessagePollClosed(err error) bool {
return tgerr.Is(err, ErrMessagePollClosed)
}
// IsMessageTooLong reports whether err is MESSAGE_TOO_LONG.
func IsMessageTooLong(err error) bool {
return tgerr.Is(err, ErrMessageTooLong)
}
// IsMessageTooOld reports whether err is MESSAGE_TOO_OLD.
func IsMessageTooOld(err error) bool {
return tgerr.Is(err, ErrMessageTooOld)
}
// IsMethodInvalid reports whether err is METHOD_INVALID.
func IsMethodInvalid(err error) bool {
return tgerr.Is(err, ErrMethodInvalid)
}
// IsMinDateInvalid reports whether err is MIN_DATE_INVALID.
func IsMinDateInvalid(err error) bool {
return tgerr.Is(err, ErrMinDateInvalid)
}
// IsMonthInvalid reports whether err is MONTH_INVALID.
func IsMonthInvalid(err error) bool {
return tgerr.Is(err, ErrMonthInvalid)
}
// IsMsgIDInvalid reports whether err is MSG_ID_INVALID.
func IsMsgIDInvalid(err error) bool {
return tgerr.Is(err, ErrMsgIDInvalid)
}
// IsMsgTooOld reports whether err is MSG_TOO_OLD.
func IsMsgTooOld(err error) bool {
return tgerr.Is(err, ErrMsgTooOld)
}
// IsMsgVoiceMissing reports whether err is MSG_VOICE_MISSING.
func IsMsgVoiceMissing(err error) bool {
return tgerr.Is(err, ErrMsgVoiceMissing)
}
// IsMsgWaitFailed reports whether err is MSG_WAIT_FAILED.
func IsMsgWaitFailed(err error) bool {
return tgerr.Is(err, ErrMsgWaitFailed)
}
// IsMultiMediaTooLong reports whether err is MULTI_MEDIA_TOO_LONG.
func IsMultiMediaTooLong(err error) bool {
return tgerr.Is(err, ErrMultiMediaTooLong)
}
// IsNewSaltInvalid reports whether err is NEW_SALT_INVALID.
func IsNewSaltInvalid(err error) bool {
return tgerr.Is(err, ErrNewSaltInvalid)
}
// IsNewSettingsEmpty reports whether err is NEW_SETTINGS_EMPTY.
func IsNewSettingsEmpty(err error) bool {
return tgerr.Is(err, ErrNewSettingsEmpty)
}
// IsNewSettingsInvalid reports whether err is NEW_SETTINGS_INVALID.
func IsNewSettingsInvalid(err error) bool {
return tgerr.Is(err, ErrNewSettingsInvalid)
}
// IsNextOffsetInvalid reports whether err is NEXT_OFFSET_INVALID.
func IsNextOffsetInvalid(err error) bool {
return tgerr.Is(err, ErrNextOffsetInvalid)
}
// IsNotEligible reports whether err is NOT_ELIGIBLE.
func IsNotEligible(err error) bool {
return tgerr.Is(err, ErrNotEligible)
}
// IsNotJoined reports whether err is NOT_JOINED.
func IsNotJoined(err error) bool {
return tgerr.Is(err, ErrNotJoined)
}
// IsNoPaymentNeeded reports whether err is NO_PAYMENT_NEEDED.
func IsNoPaymentNeeded(err error) bool {
return tgerr.Is(err, ErrNoPaymentNeeded)
}
// IsOffsetInvalid reports whether err is OFFSET_INVALID.
func IsOffsetInvalid(err error) bool {
return tgerr.Is(err, ErrOffsetInvalid)
}
// IsOffsetPeerIDInvalid reports whether err is OFFSET_PEER_ID_INVALID.
func IsOffsetPeerIDInvalid(err error) bool {
return tgerr.Is(err, ErrOffsetPeerIDInvalid)
}
// IsOptionsTooMuch reports whether err is OPTIONS_TOO_MUCH.
func IsOptionsTooMuch(err error) bool {
return tgerr.Is(err, ErrOptionsTooMuch)
}
// IsOptionInvalid reports whether err is OPTION_INVALID.
func IsOptionInvalid(err error) bool {
return tgerr.Is(err, ErrOptionInvalid)
}
// IsOrderInvalid reports whether err is ORDER_INVALID.
func IsOrderInvalid(err error) bool {
return tgerr.Is(err, ErrOrderInvalid)
}
// IsPackShortNameInvalid reports whether err is PACK_SHORT_NAME_INVALID.
func IsPackShortNameInvalid(err error) bool {
return tgerr.Is(err, ErrPackShortNameInvalid)
}
// IsPackShortNameOccupied reports whether err is PACK_SHORT_NAME_OCCUPIED.
func IsPackShortNameOccupied(err error) bool {
return tgerr.Is(err, ErrPackShortNameOccupied)
}
// IsPackTitleInvalid reports whether err is PACK_TITLE_INVALID.
func IsPackTitleInvalid(err error) bool {
return tgerr.Is(err, ErrPackTitleInvalid)
}
// IsPackTypeInvalid reports whether err is PACK_TYPE_INVALID.
func IsPackTypeInvalid(err error) bool {
return tgerr.Is(err, ErrPackTypeInvalid)
}
// IsParentPeerInvalid reports whether err is PARENT_PEER_INVALID.
func IsParentPeerInvalid(err error) bool {
return tgerr.Is(err, ErrParentPeerInvalid)
}
// IsParticipantsTooFew reports whether err is PARTICIPANTS_TOO_FEW.
func IsParticipantsTooFew(err error) bool {
return tgerr.Is(err, ErrParticipantsTooFew)
}
// IsParticipantIDInvalid reports whether err is PARTICIPANT_ID_INVALID.
func IsParticipantIDInvalid(err error) bool {
return tgerr.Is(err, ErrParticipantIDInvalid)
}
// IsParticipantJoinMissing reports whether err is PARTICIPANT_JOIN_MISSING.
func IsParticipantJoinMissing(err error) bool {
return tgerr.Is(err, ErrParticipantJoinMissing)
}
// IsParticipantVersionOutdated reports whether err is PARTICIPANT_VERSION_OUTDATED.
func IsParticipantVersionOutdated(err error) bool {
return tgerr.Is(err, ErrParticipantVersionOutdated)
}
// IsPasswordEmpty reports whether err is PASSWORD_EMPTY.
func IsPasswordEmpty(err error) bool {
return tgerr.Is(err, ErrPasswordEmpty)
}
// IsPasswordHashInvalid reports whether err is PASSWORD_HASH_INVALID.
func IsPasswordHashInvalid(err error) bool {
return tgerr.Is(err, ErrPasswordHashInvalid)
}
// IsPasswordMissing reports whether err is PASSWORD_MISSING.
func IsPasswordMissing(err error) bool {
return tgerr.Is(err, ErrPasswordMissing)
}
// IsPasswordRecoveryExpired reports whether err is PASSWORD_RECOVERY_EXPIRED.
func IsPasswordRecoveryExpired(err error) bool {
return tgerr.Is(err, ErrPasswordRecoveryExpired)
}
// IsPasswordRecoveryNa reports whether err is PASSWORD_RECOVERY_NA.
func IsPasswordRecoveryNa(err error) bool {
return tgerr.Is(err, ErrPasswordRecoveryNa)
}
// IsPasswordRequired reports whether err is PASSWORD_REQUIRED.
func IsPasswordRequired(err error) bool {
return tgerr.Is(err, ErrPasswordRequired)
}
// IsPasswordTooFresh reports whether err is PASSWORD_TOO_FRESH.
func IsPasswordTooFresh(err error) bool {
return tgerr.Is(err, ErrPasswordTooFresh)
}
// IsPaymentCredentialsInvalid reports whether err is PAYMENT_CREDENTIALS_INVALID.
func IsPaymentCredentialsInvalid(err error) bool {
return tgerr.Is(err, ErrPaymentCredentialsInvalid)
}
// IsPaymentProviderInvalid reports whether err is PAYMENT_PROVIDER_INVALID.
func IsPaymentProviderInvalid(err error) bool {
return tgerr.Is(err, ErrPaymentProviderInvalid)
}
// IsPaymentRequired reports whether err is PAYMENT_REQUIRED.
func IsPaymentRequired(err error) bool {
return tgerr.Is(err, ErrPaymentRequired)
}
// IsPaymentUnsupported reports whether err is PAYMENT_UNSUPPORTED.
func IsPaymentUnsupported(err error) bool {
return tgerr.Is(err, ErrPaymentUnsupported)
}
// IsPeersListEmpty reports whether err is PEERS_LIST_EMPTY.
func IsPeersListEmpty(err error) bool {
return tgerr.Is(err, ErrPeersListEmpty)
}
// IsPeerHistoryEmpty reports whether err is PEER_HISTORY_EMPTY.
func IsPeerHistoryEmpty(err error) bool {
return tgerr.Is(err, ErrPeerHistoryEmpty)
}
// IsPeerIDInvalid reports whether err is PEER_ID_INVALID.
func IsPeerIDInvalid(err error) bool {
return tgerr.Is(err, ErrPeerIDInvalid)
}
// IsPeerIDNotSupported reports whether err is PEER_ID_NOT_SUPPORTED.
func IsPeerIDNotSupported(err error) bool {
return tgerr.Is(err, ErrPeerIDNotSupported)
}
// IsPeerTypesInvalid reports whether err is PEER_TYPES_INVALID.
func IsPeerTypesInvalid(err error) bool {
return tgerr.Is(err, ErrPeerTypesInvalid)
}
// IsPersistentTimestampEmpty reports whether err is PERSISTENT_TIMESTAMP_EMPTY.
func IsPersistentTimestampEmpty(err error) bool {
return tgerr.Is(err, ErrPersistentTimestampEmpty)
}
// IsPersistentTimestampInvalid reports whether err is PERSISTENT_TIMESTAMP_INVALID.
func IsPersistentTimestampInvalid(err error) bool {
return tgerr.Is(err, ErrPersistentTimestampInvalid)
}
// IsPersistentTimestampOutdated reports whether err is PERSISTENT_TIMESTAMP_OUTDATED.
func IsPersistentTimestampOutdated(err error) bool {
return tgerr.Is(err, ErrPersistentTimestampOutdated)
}
// IsPhoneCodeEmpty reports whether err is PHONE_CODE_EMPTY.
func IsPhoneCodeEmpty(err error) bool {
return tgerr.Is(err, ErrPhoneCodeEmpty)
}
// IsPhoneCodeExpired reports whether err is PHONE_CODE_EXPIRED.
func IsPhoneCodeExpired(err error) bool {
return tgerr.Is(err, ErrPhoneCodeExpired)
}
// IsPhoneCodeHashEmpty reports whether err is PHONE_CODE_HASH_EMPTY.
func IsPhoneCodeHashEmpty(err error) bool {
return tgerr.Is(err, ErrPhoneCodeHashEmpty)
}
// IsPhoneCodeInvalid reports whether err is PHONE_CODE_INVALID.
func IsPhoneCodeInvalid(err error) bool {
return tgerr.Is(err, ErrPhoneCodeInvalid)
}
// IsPhoneHashExpired reports whether err is PHONE_HASH_EXPIRED.
func IsPhoneHashExpired(err error) bool {
return tgerr.Is(err, ErrPhoneHashExpired)
}
// IsPhoneNotOccupied reports whether err is PHONE_NOT_OCCUPIED.
func IsPhoneNotOccupied(err error) bool {
return tgerr.Is(err, ErrPhoneNotOccupied)
}
// IsPhoneNumberAppSignupForbidden reports whether err is PHONE_NUMBER_APP_SIGNUP_FORBIDDEN.
func IsPhoneNumberAppSignupForbidden(err error) bool {
return tgerr.Is(err, ErrPhoneNumberAppSignupForbidden)
}
// IsPhoneNumberBanned reports whether err is PHONE_NUMBER_BANNED.
func IsPhoneNumberBanned(err error) bool {
return tgerr.Is(err, ErrPhoneNumberBanned)
}
// IsPhoneNumberFlood reports whether err is PHONE_NUMBER_FLOOD.
func IsPhoneNumberFlood(err error) bool {
return tgerr.Is(err, ErrPhoneNumberFlood)
}
// IsPhoneNumberInvalid reports whether err is PHONE_NUMBER_INVALID.
func IsPhoneNumberInvalid(err error) bool {
return tgerr.Is(err, ErrPhoneNumberInvalid)
}
// IsPhoneNumberOccupied reports whether err is PHONE_NUMBER_OCCUPIED.
func IsPhoneNumberOccupied(err error) bool {
return tgerr.Is(err, ErrPhoneNumberOccupied)
}
// IsPhoneNumberUnoccupied reports whether err is PHONE_NUMBER_UNOCCUPIED.
func IsPhoneNumberUnoccupied(err error) bool {
return tgerr.Is(err, ErrPhoneNumberUnoccupied)
}
// IsPhonePasswordFlood reports whether err is PHONE_PASSWORD_FLOOD.
func IsPhonePasswordFlood(err error) bool {
return tgerr.Is(err, ErrPhonePasswordFlood)
}
// IsPhonePasswordProtected reports whether err is PHONE_PASSWORD_PROTECTED.
func IsPhonePasswordProtected(err error) bool {
return tgerr.Is(err, ErrPhonePasswordProtected)
}
// IsPhotoContentTypeInvalid reports whether err is PHOTO_CONTENT_TYPE_INVALID.
func IsPhotoContentTypeInvalid(err error) bool {
return tgerr.Is(err, ErrPhotoContentTypeInvalid)
}
// IsPhotoContentURLEmpty reports whether err is PHOTO_CONTENT_URL_EMPTY.
func IsPhotoContentURLEmpty(err error) bool {
return tgerr.Is(err, ErrPhotoContentURLEmpty)
}
// IsPhotoCropFileMissing reports whether err is PHOTO_CROP_FILE_MISSING.
func IsPhotoCropFileMissing(err error) bool {
return tgerr.Is(err, ErrPhotoCropFileMissing)
}
// IsPhotoCropSizeSmall reports whether err is PHOTO_CROP_SIZE_SMALL.
func IsPhotoCropSizeSmall(err error) bool {
return tgerr.Is(err, ErrPhotoCropSizeSmall)
}
// IsPhotoExtInvalid reports whether err is PHOTO_EXT_INVALID.
func IsPhotoExtInvalid(err error) bool {
return tgerr.Is(err, ErrPhotoExtInvalid)
}
// IsPhotoFileMissing reports whether err is PHOTO_FILE_MISSING.
func IsPhotoFileMissing(err error) bool {
return tgerr.Is(err, ErrPhotoFileMissing)
}
// IsPhotoIDInvalid reports whether err is PHOTO_ID_INVALID.
func IsPhotoIDInvalid(err error) bool {
return tgerr.Is(err, ErrPhotoIDInvalid)
}
// IsPhotoInvalid reports whether err is PHOTO_INVALID.
func IsPhotoInvalid(err error) bool {
return tgerr.Is(err, ErrPhotoInvalid)
}
// IsPhotoInvalidDimensions reports whether err is PHOTO_INVALID_DIMENSIONS.
func IsPhotoInvalidDimensions(err error) bool {
return tgerr.Is(err, ErrPhotoInvalidDimensions)
}
// IsPhotoSaveFileInvalid reports whether err is PHOTO_SAVE_FILE_INVALID.
func IsPhotoSaveFileInvalid(err error) bool {
return tgerr.Is(err, ErrPhotoSaveFileInvalid)
}
// IsPhotoThumbURLEmpty reports whether err is PHOTO_THUMB_URL_EMPTY.
func IsPhotoThumbURLEmpty(err error) bool {
return tgerr.Is(err, ErrPhotoThumbURLEmpty)
}
// IsPinnedDialogsTooMuch reports whether err is PINNED_DIALOGS_TOO_MUCH.
func IsPinnedDialogsTooMuch(err error) bool {
return tgerr.Is(err, ErrPinnedDialogsTooMuch)
}
// IsPinRestricted reports whether err is PIN_RESTRICTED.
func IsPinRestricted(err error) bool {
return tgerr.Is(err, ErrPinRestricted)
}
// IsPollAnswersInvalid reports whether err is POLL_ANSWERS_INVALID.
func IsPollAnswersInvalid(err error) bool {
return tgerr.Is(err, ErrPollAnswersInvalid)
}
// IsPollAnswerInvalid reports whether err is POLL_ANSWER_INVALID.
func IsPollAnswerInvalid(err error) bool {
return tgerr.Is(err, ErrPollAnswerInvalid)
}
// IsPollOptionDuplicate reports whether err is POLL_OPTION_DUPLICATE.
func IsPollOptionDuplicate(err error) bool {
return tgerr.Is(err, ErrPollOptionDuplicate)
}
// IsPollOptionInvalid reports whether err is POLL_OPTION_INVALID.
func IsPollOptionInvalid(err error) bool {
return tgerr.Is(err, ErrPollOptionInvalid)
}
// IsPollQuestionInvalid reports whether err is POLL_QUESTION_INVALID.
func IsPollQuestionInvalid(err error) bool {
return tgerr.Is(err, ErrPollQuestionInvalid)
}
// IsPollVoteRequired reports whether err is POLL_VOTE_REQUIRED.
func IsPollVoteRequired(err error) bool {
return tgerr.Is(err, ErrPollVoteRequired)
}
// IsPrecheckoutFailed reports whether err is PRECHECKOUT_FAILED.
func IsPrecheckoutFailed(err error) bool {
return tgerr.Is(err, ErrPrecheckoutFailed)
}
// IsPremiumAccountRequired reports whether err is PREMIUM_ACCOUNT_REQUIRED.
func IsPremiumAccountRequired(err error) bool {
return tgerr.Is(err, ErrPremiumAccountRequired)
}
// IsPremiumCurrentlyUnavailable reports whether err is PREMIUM_CURRENTLY_UNAVAILABLE.
func IsPremiumCurrentlyUnavailable(err error) bool {
return tgerr.Is(err, ErrPremiumCurrentlyUnavailable)
}
// IsPremiumSubActiveUntil reports whether err is PREMIUM_SUB_ACTIVE_UNTIL.
func IsPremiumSubActiveUntil(err error) bool {
return tgerr.Is(err, ErrPremiumSubActiveUntil)
}
// IsPreviousChatImportActiveWaitMin reports whether err is PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN.
func IsPreviousChatImportActiveWaitMin(err error) bool {
return tgerr.Is(err, ErrPreviousChatImportActiveWaitMin)
}
// IsPricingChatInvalid reports whether err is PRICING_CHAT_INVALID.
func IsPricingChatInvalid(err error) bool {
return tgerr.Is(err, ErrPricingChatInvalid)
}
// IsPrivacyKeyInvalid reports whether err is PRIVACY_KEY_INVALID.
func IsPrivacyKeyInvalid(err error) bool {
return tgerr.Is(err, ErrPrivacyKeyInvalid)
}
// IsPrivacyPremiumRequired reports whether err is PRIVACY_PREMIUM_REQUIRED.
func IsPrivacyPremiumRequired(err error) bool {
return tgerr.Is(err, ErrPrivacyPremiumRequired)
}
// IsPrivacyTooLong reports whether err is PRIVACY_TOO_LONG.
func IsPrivacyTooLong(err error) bool {
return tgerr.Is(err, ErrPrivacyTooLong)
}
// IsPrivacyValueInvalid reports whether err is PRIVACY_VALUE_INVALID.
func IsPrivacyValueInvalid(err error) bool {
return tgerr.Is(err, ErrPrivacyValueInvalid)
}
// IsPublicChannelMissing reports whether err is PUBLIC_CHANNEL_MISSING.
func IsPublicChannelMissing(err error) bool {
return tgerr.Is(err, ErrPublicChannelMissing)
}
// IsPublicKeyRequired reports whether err is PUBLIC_KEY_REQUIRED.
func IsPublicKeyRequired(err error) bool {
return tgerr.Is(err, ErrPublicKeyRequired)
}
// IsPurposeInvalid reports whether err is PURPOSE_INVALID.
func IsPurposeInvalid(err error) bool {
return tgerr.Is(err, ErrPurposeInvalid)
}
// IsQueryIDEmpty reports whether err is QUERY_ID_EMPTY.
func IsQueryIDEmpty(err error) bool {
return tgerr.Is(err, ErrQueryIDEmpty)
}
// IsQueryIDInvalid reports whether err is QUERY_ID_INVALID.
func IsQueryIDInvalid(err error) bool {
return tgerr.Is(err, ErrQueryIDInvalid)
}
// IsQueryTooShort reports whether err is QUERY_TOO_SHORT.
func IsQueryTooShort(err error) bool {
return tgerr.Is(err, ErrQueryTooShort)
}
// IsQuickRepliesBotNotAllowed reports whether err is QUICK_REPLIES_BOT_NOT_ALLOWED.
func IsQuickRepliesBotNotAllowed(err error) bool {
return tgerr.Is(err, ErrQuickRepliesBotNotAllowed)
}
// IsQuickRepliesTooMuch reports whether err is QUICK_REPLIES_TOO_MUCH.
func IsQuickRepliesTooMuch(err error) bool {
return tgerr.Is(err, ErrQuickRepliesTooMuch)
}
// IsQuizAnswerMissing reports whether err is QUIZ_ANSWER_MISSING.
func IsQuizAnswerMissing(err error) bool {
return tgerr.Is(err, ErrQuizAnswerMissing)
}
// IsQuizCorrectAnswersEmpty reports whether err is QUIZ_CORRECT_ANSWERS_EMPTY.
func IsQuizCorrectAnswersEmpty(err error) bool {
return tgerr.Is(err, ErrQuizCorrectAnswersEmpty)
}
// IsQuizCorrectAnswersTooMuch reports whether err is QUIZ_CORRECT_ANSWERS_TOO_MUCH.
func IsQuizCorrectAnswersTooMuch(err error) bool {
return tgerr.Is(err, ErrQuizCorrectAnswersTooMuch)
}
// IsQuizCorrectAnswerInvalid reports whether err is QUIZ_CORRECT_ANSWER_INVALID.
func IsQuizCorrectAnswerInvalid(err error) bool {
return tgerr.Is(err, ErrQuizCorrectAnswerInvalid)
}
// IsQuizMultipleInvalid reports whether err is QUIZ_MULTIPLE_INVALID.
func IsQuizMultipleInvalid(err error) bool {
return tgerr.Is(err, ErrQuizMultipleInvalid)
}
// IsQuoteTextInvalid reports whether err is QUOTE_TEXT_INVALID.
func IsQuoteTextInvalid(err error) bool {
return tgerr.Is(err, ErrQuoteTextInvalid)
}
// IsRaiseHandForbidden reports whether err is RAISE_HAND_FORBIDDEN.
func IsRaiseHandForbidden(err error) bool {
return tgerr.Is(err, ErrRaiseHandForbidden)
}
// IsRandomIDDuplicate reports whether err is RANDOM_ID_DUPLICATE.
func IsRandomIDDuplicate(err error) bool {
return tgerr.Is(err, ErrRandomIDDuplicate)
}
// IsRandomIDEmpty reports whether err is RANDOM_ID_EMPTY.
func IsRandomIDEmpty(err error) bool {
return tgerr.Is(err, ErrRandomIDEmpty)
}
// IsRandomIDExpired reports whether err is RANDOM_ID_EXPIRED.
func IsRandomIDExpired(err error) bool {
return tgerr.Is(err, ErrRandomIDExpired)
}
// IsRandomIDInvalid reports whether err is RANDOM_ID_INVALID.
func IsRandomIDInvalid(err error) bool {
return tgerr.Is(err, ErrRandomIDInvalid)
}
// IsRandomLengthInvalid reports whether err is RANDOM_LENGTH_INVALID.
func IsRandomLengthInvalid(err error) bool {
return tgerr.Is(err, ErrRandomLengthInvalid)
}
// IsRangesInvalid reports whether err is RANGES_INVALID.
func IsRangesInvalid(err error) bool {
return tgerr.Is(err, ErrRangesInvalid)
}
// IsReactionsCountInvalid reports whether err is REACTIONS_COUNT_INVALID.
func IsReactionsCountInvalid(err error) bool {
return tgerr.Is(err, ErrReactionsCountInvalid)
}
// IsReactionsTooMany reports whether err is REACTIONS_TOO_MANY.
func IsReactionsTooMany(err error) bool {
return tgerr.Is(err, ErrReactionsTooMany)
}
// IsReactionEmpty reports whether err is REACTION_EMPTY.
func IsReactionEmpty(err error) bool {
return tgerr.Is(err, ErrReactionEmpty)
}
// IsReactionInvalid reports whether err is REACTION_INVALID.
func IsReactionInvalid(err error) bool {
return tgerr.Is(err, ErrReactionInvalid)
}
// IsReceiptEmpty reports whether err is RECEIPT_EMPTY.
func IsReceiptEmpty(err error) bool {
return tgerr.Is(err, ErrReceiptEmpty)
}
// IsReplyMarkupBuyEmpty reports whether err is REPLY_MARKUP_BUY_EMPTY.
func IsReplyMarkupBuyEmpty(err error) bool {
return tgerr.Is(err, ErrReplyMarkupBuyEmpty)
}
// IsReplyMarkupGameEmpty reports whether err is REPLY_MARKUP_GAME_EMPTY.
func IsReplyMarkupGameEmpty(err error) bool {
return tgerr.Is(err, ErrReplyMarkupGameEmpty)
}
// IsReplyMarkupInvalid reports whether err is REPLY_MARKUP_INVALID.
func IsReplyMarkupInvalid(err error) bool {
return tgerr.Is(err, ErrReplyMarkupInvalid)
}
// IsReplyMarkupTooLong reports whether err is REPLY_MARKUP_TOO_LONG.
func IsReplyMarkupTooLong(err error) bool {
return tgerr.Is(err, ErrReplyMarkupTooLong)
}
// IsReplyMessagesTooMuch reports whether err is REPLY_MESSAGES_TOO_MUCH.
func IsReplyMessagesTooMuch(err error) bool {
return tgerr.Is(err, ErrReplyMessagesTooMuch)
}
// IsReplyMessageIDInvalid reports whether err is REPLY_MESSAGE_ID_INVALID.
func IsReplyMessageIDInvalid(err error) bool {
return tgerr.Is(err, ErrReplyMessageIDInvalid)
}
// IsReplyToInvalid reports whether err is REPLY_TO_INVALID.
func IsReplyToInvalid(err error) bool {
return tgerr.Is(err, ErrReplyToInvalid)
}
// IsReplyToMonoforumPeerInvalid reports whether err is REPLY_TO_MONOFORUM_PEER_INVALID.
func IsReplyToMonoforumPeerInvalid(err error) bool {
return tgerr.Is(err, ErrReplyToMonoforumPeerInvalid)
}
// IsReplyToUserInvalid reports whether err is REPLY_TO_USER_INVALID.
func IsReplyToUserInvalid(err error) bool {
return tgerr.Is(err, ErrReplyToUserInvalid)
}
// IsRequestTokenInvalid reports whether err is REQUEST_TOKEN_INVALID.
func IsRequestTokenInvalid(err error) bool {
return tgerr.Is(err, ErrRequestTokenInvalid)
}
// IsResetRequestMissing reports whether err is RESET_REQUEST_MISSING.
func IsResetRequestMissing(err error) bool {
return tgerr.Is(err, ErrResetRequestMissing)
}
// IsResultsTooMuch reports whether err is RESULTS_TOO_MUCH.
func IsResultsTooMuch(err error) bool {
return tgerr.Is(err, ErrResultsTooMuch)
}
// IsResultIDDuplicate reports whether err is RESULT_ID_DUPLICATE.
func IsResultIDDuplicate(err error) bool {
return tgerr.Is(err, ErrResultIDDuplicate)
}
// IsResultIDEmpty reports whether err is RESULT_ID_EMPTY.
func IsResultIDEmpty(err error) bool {
return tgerr.Is(err, ErrResultIDEmpty)
}
// IsResultIDInvalid reports whether err is RESULT_ID_INVALID.
func IsResultIDInvalid(err error) bool {
return tgerr.Is(err, ErrResultIDInvalid)
}
// IsResultTypeInvalid reports whether err is RESULT_TYPE_INVALID.
func IsResultTypeInvalid(err error) bool {
return tgerr.Is(err, ErrResultTypeInvalid)
}
// IsRevoteNotAllowed reports whether err is REVOTE_NOT_ALLOWED.
func IsRevoteNotAllowed(err error) bool {
return tgerr.Is(err, ErrRevoteNotAllowed)
}
// IsRightsNotModified reports whether err is RIGHTS_NOT_MODIFIED.
func IsRightsNotModified(err error) bool {
return tgerr.Is(err, ErrRightsNotModified)
}
// IsRightForbidden reports whether err is RIGHT_FORBIDDEN.
func IsRightForbidden(err error) bool {
return tgerr.Is(err, ErrRightForbidden)
}
// IsRingtoneInvalid reports whether err is RINGTONE_INVALID.
func IsRingtoneInvalid(err error) bool {
return tgerr.Is(err, ErrRingtoneInvalid)
}
// IsRingtoneMimeInvalid reports whether err is RINGTONE_MIME_INVALID.
func IsRingtoneMimeInvalid(err error) bool {
return tgerr.Is(err, ErrRingtoneMimeInvalid)
}
// IsRsaDecryptFailed reports whether err is RSA_DECRYPT_FAILED.
func IsRsaDecryptFailed(err error) bool {
return tgerr.Is(err, ErrRsaDecryptFailed)
}
// IsSavedIDEmpty reports whether err is SAVED_ID_EMPTY.
func IsSavedIDEmpty(err error) bool {
return tgerr.Is(err, ErrSavedIDEmpty)
}
// IsScheduleBotNotAllowed reports whether err is SCHEDULE_BOT_NOT_ALLOWED.
func IsScheduleBotNotAllowed(err error) bool {
return tgerr.Is(err, ErrScheduleBotNotAllowed)
}
// IsScheduleDateInvalid reports whether err is SCHEDULE_DATE_INVALID.
func IsScheduleDateInvalid(err error) bool {
return tgerr.Is(err, ErrScheduleDateInvalid)
}
// IsScheduleDateTooLate reports whether err is SCHEDULE_DATE_TOO_LATE.
func IsScheduleDateTooLate(err error) bool {
return tgerr.Is(err, ErrScheduleDateTooLate)
}
// IsScheduleStatusPrivate reports whether err is SCHEDULE_STATUS_PRIVATE.
func IsScheduleStatusPrivate(err error) bool {
return tgerr.Is(err, ErrScheduleStatusPrivate)
}
// IsScheduleTooMuch reports whether err is SCHEDULE_TOO_MUCH.
func IsScheduleTooMuch(err error) bool {
return tgerr.Is(err, ErrScheduleTooMuch)
}
// IsScoreInvalid reports whether err is SCORE_INVALID.
func IsScoreInvalid(err error) bool {
return tgerr.Is(err, ErrScoreInvalid)
}
// IsSearchQueryEmpty reports whether err is SEARCH_QUERY_EMPTY.
func IsSearchQueryEmpty(err error) bool {
return tgerr.Is(err, ErrSearchQueryEmpty)
}
// IsSearchWithLinkNotSupported reports whether err is SEARCH_WITH_LINK_NOT_SUPPORTED.
func IsSearchWithLinkNotSupported(err error) bool {
return tgerr.Is(err, ErrSearchWithLinkNotSupported)
}
// IsSecondsInvalid reports whether err is SECONDS_INVALID.
func IsSecondsInvalid(err error) bool {
return tgerr.Is(err, ErrSecondsInvalid)
}
// IsSecureSecretRequired reports whether err is SECURE_SECRET_REQUIRED.
func IsSecureSecretRequired(err error) bool {
return tgerr.Is(err, ErrSecureSecretRequired)
}
// IsSelfDeleteRestricted reports whether err is SELF_DELETE_RESTRICTED.
func IsSelfDeleteRestricted(err error) bool {
return tgerr.Is(err, ErrSelfDeleteRestricted)
}
// IsSendAsPeerInvalid reports whether err is SEND_AS_PEER_INVALID.
func IsSendAsPeerInvalid(err error) bool {
return tgerr.Is(err, ErrSendAsPeerInvalid)
}
// IsSendCodeUnavailable reports whether err is SEND_CODE_UNAVAILABLE.
func IsSendCodeUnavailable(err error) bool {
return tgerr.Is(err, ErrSendCodeUnavailable)
}
// IsSendMediaInvalid reports whether err is SEND_MEDIA_INVALID.
func IsSendMediaInvalid(err error) bool {
return tgerr.Is(err, ErrSendMediaInvalid)
}
// IsSendMessageGameInvalid reports whether err is SEND_MESSAGE_GAME_INVALID.
func IsSendMessageGameInvalid(err error) bool {
return tgerr.Is(err, ErrSendMessageGameInvalid)
}
// IsSendMessageMediaInvalid reports whether err is SEND_MESSAGE_MEDIA_INVALID.
func IsSendMessageMediaInvalid(err error) bool {
return tgerr.Is(err, ErrSendMessageMediaInvalid)
}
// IsSendMessageTypeInvalid reports whether err is SEND_MESSAGE_TYPE_INVALID.
func IsSendMessageTypeInvalid(err error) bool {
return tgerr.Is(err, ErrSendMessageTypeInvalid)
}
// IsSensitiveChangeForbidden reports whether err is SENSITIVE_CHANGE_FORBIDDEN.
func IsSensitiveChangeForbidden(err error) bool {
return tgerr.Is(err, ErrSensitiveChangeForbidden)
}
// IsSessionTooFresh reports whether err is SESSION_TOO_FRESH.
func IsSessionTooFresh(err error) bool {
return tgerr.Is(err, ErrSessionTooFresh)
}
// IsSettingsInvalid reports whether err is SETTINGS_INVALID.
func IsSettingsInvalid(err error) bool {
return tgerr.Is(err, ErrSettingsInvalid)
}
// IsSHA256HashInvalid reports whether err is SHA256_HASH_INVALID.
func IsSHA256HashInvalid(err error) bool {
return tgerr.Is(err, ErrSHA256HashInvalid)
}
// IsShortcutInvalid reports whether err is SHORTCUT_INVALID.
func IsShortcutInvalid(err error) bool {
return tgerr.Is(err, ErrShortcutInvalid)
}
// IsShortNameInvalid reports whether err is SHORT_NAME_INVALID.
func IsShortNameInvalid(err error) bool {
return tgerr.Is(err, ErrShortNameInvalid)
}
// IsShortNameOccupied reports whether err is SHORT_NAME_OCCUPIED.
func IsShortNameOccupied(err error) bool {
return tgerr.Is(err, ErrShortNameOccupied)
}
// IsSignInFailed reports whether err is SIGN_IN_FAILED.
func IsSignInFailed(err error) bool {
return tgerr.Is(err, ErrSignInFailed)
}
// IsSlotsEmpty reports whether err is SLOTS_EMPTY.
func IsSlotsEmpty(err error) bool {
return tgerr.Is(err, ErrSlotsEmpty)
}
// IsSlowmodeMultiMsgsDisabled reports whether err is SLOWMODE_MULTI_MSGS_DISABLED.
func IsSlowmodeMultiMsgsDisabled(err error) bool {
return tgerr.Is(err, ErrSlowmodeMultiMsgsDisabled)
}
// IsSlowmodeWait reports whether err is SLOWMODE_WAIT.
func IsSlowmodeWait(err error) bool {
return tgerr.Is(err, ErrSlowmodeWait)
}
// IsSlugInvalid reports whether err is SLUG_INVALID.
func IsSlugInvalid(err error) bool {
return tgerr.Is(err, ErrSlugInvalid)
}
// IsSmsjobIDInvalid reports whether err is SMSJOB_ID_INVALID.
func IsSmsjobIDInvalid(err error) bool {
return tgerr.Is(err, ErrSmsjobIDInvalid)
}
// IsSMSCodeCreateFailed reports whether err is SMS_CODE_CREATE_FAILED.
func IsSMSCodeCreateFailed(err error) bool {
return tgerr.Is(err, ErrSMSCodeCreateFailed)
}
// IsSRPAInvalid reports whether err is SRP_A_INVALID.
func IsSRPAInvalid(err error) bool {
return tgerr.Is(err, ErrSRPAInvalid)
}
// IsSRPIDInvalid reports whether err is SRP_ID_INVALID.
func IsSRPIDInvalid(err error) bool {
return tgerr.Is(err, ErrSRPIDInvalid)
}
// IsSRPPasswordChanged reports whether err is SRP_PASSWORD_CHANGED.
func IsSRPPasswordChanged(err error) bool {
return tgerr.Is(err, ErrSRPPasswordChanged)
}
// IsStargiftAlreadyConverted reports whether err is STARGIFT_ALREADY_CONVERTED.
func IsStargiftAlreadyConverted(err error) bool {
return tgerr.Is(err, ErrStargiftAlreadyConverted)
}
// IsStargiftAlreadyRefunded reports whether err is STARGIFT_ALREADY_REFUNDED.
func IsStargiftAlreadyRefunded(err error) bool {
return tgerr.Is(err, ErrStargiftAlreadyRefunded)
}
// IsStargiftAlreadyUpgraded reports whether err is STARGIFT_ALREADY_UPGRADED.
func IsStargiftAlreadyUpgraded(err error) bool {
return tgerr.Is(err, ErrStargiftAlreadyUpgraded)
}
// IsStargiftExportInProgress reports whether err is STARGIFT_EXPORT_IN_PROGRESS.
func IsStargiftExportInProgress(err error) bool {
return tgerr.Is(err, ErrStargiftExportInProgress)
}
// IsStargiftInvalid reports whether err is STARGIFT_INVALID.
func IsStargiftInvalid(err error) bool {
return tgerr.Is(err, ErrStargiftInvalid)
}
// IsStargiftNotFound reports whether err is STARGIFT_NOT_FOUND.
func IsStargiftNotFound(err error) bool {
return tgerr.Is(err, ErrStargiftNotFound)
}
// IsStargiftOwnerInvalid reports whether err is STARGIFT_OWNER_INVALID.
func IsStargiftOwnerInvalid(err error) bool {
return tgerr.Is(err, ErrStargiftOwnerInvalid)
}
// IsStargiftPeerInvalid reports whether err is STARGIFT_PEER_INVALID.
func IsStargiftPeerInvalid(err error) bool {
return tgerr.Is(err, ErrStargiftPeerInvalid)
}
// IsStargiftResellCurrencyNotAllowed reports whether err is STARGIFT_RESELL_CURRENCY_NOT_ALLOWED.
func IsStargiftResellCurrencyNotAllowed(err error) bool {
return tgerr.Is(err, ErrStargiftResellCurrencyNotAllowed)
}
// IsStargiftSlugInvalid reports whether err is STARGIFT_SLUG_INVALID.
func IsStargiftSlugInvalid(err error) bool {
return tgerr.Is(err, ErrStargiftSlugInvalid)
}
// IsStargiftTransferTooEarly reports whether err is STARGIFT_TRANSFER_TOO_EARLY.
func IsStargiftTransferTooEarly(err error) bool {
return tgerr.Is(err, ErrStargiftTransferTooEarly)
}
// IsStargiftUpgradeUnavailable reports whether err is STARGIFT_UPGRADE_UNAVAILABLE.
func IsStargiftUpgradeUnavailable(err error) bool {
return tgerr.Is(err, ErrStargiftUpgradeUnavailable)
}
// IsStargiftUsageLimited reports whether err is STARGIFT_USAGE_LIMITED.
func IsStargiftUsageLimited(err error) bool {
return tgerr.Is(err, ErrStargiftUsageLimited)
}
// IsStargiftUserUsageLimited reports whether err is STARGIFT_USER_USAGE_LIMITED.
func IsStargiftUserUsageLimited(err error) bool {
return tgerr.Is(err, ErrStargiftUserUsageLimited)
}
// IsStarrefAwaitingEnd reports whether err is STARREF_AWAITING_END.
func IsStarrefAwaitingEnd(err error) bool {
return tgerr.Is(err, ErrStarrefAwaitingEnd)
}
// IsStarrefExpired reports whether err is STARREF_EXPIRED.
func IsStarrefExpired(err error) bool {
return tgerr.Is(err, ErrStarrefExpired)
}
// IsStarrefHashRevoked reports whether err is STARREF_HASH_REVOKED.
func IsStarrefHashRevoked(err error) bool {
return tgerr.Is(err, ErrStarrefHashRevoked)
}
// IsStarrefPermilleInvalid reports whether err is STARREF_PERMILLE_INVALID.
func IsStarrefPermilleInvalid(err error) bool {
return tgerr.Is(err, ErrStarrefPermilleInvalid)
}
// IsStarrefPermilleTooLow reports whether err is STARREF_PERMILLE_TOO_LOW.
func IsStarrefPermilleTooLow(err error) bool {
return tgerr.Is(err, ErrStarrefPermilleTooLow)
}
// IsStarsAmountInvalid reports whether err is STARS_AMOUNT_INVALID.
func IsStarsAmountInvalid(err error) bool {
return tgerr.Is(err, ErrStarsAmountInvalid)
}
// IsStarsFormAmountMismatch reports whether err is STARS_FORM_AMOUNT_MISMATCH.
func IsStarsFormAmountMismatch(err error) bool {
return tgerr.Is(err, ErrStarsFormAmountMismatch)
}
// IsStarsInvoiceInvalid reports whether err is STARS_INVOICE_INVALID.
func IsStarsInvoiceInvalid(err error) bool {
return tgerr.Is(err, ErrStarsInvoiceInvalid)
}
// IsStarsPaymentRequired reports whether err is STARS_PAYMENT_REQUIRED.
func IsStarsPaymentRequired(err error) bool {
return tgerr.Is(err, ErrStarsPaymentRequired)
}
// IsStartParamEmpty reports whether err is START_PARAM_EMPTY.
func IsStartParamEmpty(err error) bool {
return tgerr.Is(err, ErrStartParamEmpty)
}
// IsStartParamInvalid reports whether err is START_PARAM_INVALID.
func IsStartParamInvalid(err error) bool {
return tgerr.Is(err, ErrStartParamInvalid)
}
// IsStartParamTooLong reports whether err is START_PARAM_TOO_LONG.
func IsStartParamTooLong(err error) bool {
return tgerr.Is(err, ErrStartParamTooLong)
}
// IsStickerpackStickersTooMuch reports whether err is STICKERPACK_STICKERS_TOO_MUCH.
func IsStickerpackStickersTooMuch(err error) bool {
return tgerr.Is(err, ErrStickerpackStickersTooMuch)
}
// IsStickersetInvalid reports whether err is STICKERSET_INVALID.
func IsStickersetInvalid(err error) bool {
return tgerr.Is(err, ErrStickersetInvalid)
}
// IsStickersetOwnerAnonymous reports whether err is STICKERSET_OWNER_ANONYMOUS.
func IsStickersetOwnerAnonymous(err error) bool {
return tgerr.Is(err, ErrStickersetOwnerAnonymous)
}
// IsStickersEmpty reports whether err is STICKERS_EMPTY.
func IsStickersEmpty(err error) bool {
return tgerr.Is(err, ErrStickersEmpty)
}
// IsStickersTooMuch reports whether err is STICKERS_TOO_MUCH.
func IsStickersTooMuch(err error) bool {
return tgerr.Is(err, ErrStickersTooMuch)
}
// IsStickerDocumentInvalid reports whether err is STICKER_DOCUMENT_INVALID.
func IsStickerDocumentInvalid(err error) bool {
return tgerr.Is(err, ErrStickerDocumentInvalid)
}
// IsStickerEmojiInvalid reports whether err is STICKER_EMOJI_INVALID.
func IsStickerEmojiInvalid(err error) bool {
return tgerr.Is(err, ErrStickerEmojiInvalid)
}
// IsStickerFileInvalid reports whether err is STICKER_FILE_INVALID.
func IsStickerFileInvalid(err error) bool {
return tgerr.Is(err, ErrStickerFileInvalid)
}
// IsStickerGifDimensions reports whether err is STICKER_GIF_DIMENSIONS.
func IsStickerGifDimensions(err error) bool {
return tgerr.Is(err, ErrStickerGifDimensions)
}
// IsStickerIDInvalid reports whether err is STICKER_ID_INVALID.
func IsStickerIDInvalid(err error) bool {
return tgerr.Is(err, ErrStickerIDInvalid)
}
// IsStickerInvalid reports whether err is STICKER_INVALID.
func IsStickerInvalid(err error) bool {
return tgerr.Is(err, ErrStickerInvalid)
}
// IsStickerMimeInvalid reports whether err is STICKER_MIME_INVALID.
func IsStickerMimeInvalid(err error) bool {
return tgerr.Is(err, ErrStickerMimeInvalid)
}
// IsStickerPngDimensions reports whether err is STICKER_PNG_DIMENSIONS.
func IsStickerPngDimensions(err error) bool {
return tgerr.Is(err, ErrStickerPngDimensions)
}
// IsStickerPngNopng reports whether err is STICKER_PNG_NOPNG.
func IsStickerPngNopng(err error) bool {
return tgerr.Is(err, ErrStickerPngNopng)
}
// IsStickerTgsNodoc reports whether err is STICKER_TGS_NODOC.
func IsStickerTgsNodoc(err error) bool {
return tgerr.Is(err, ErrStickerTgsNodoc)
}
// IsStickerTgsNotgs reports whether err is STICKER_TGS_NOTGS.
func IsStickerTgsNotgs(err error) bool {
return tgerr.Is(err, ErrStickerTgsNotgs)
}
// IsStickerThumbPngNopng reports whether err is STICKER_THUMB_PNG_NOPNG.
func IsStickerThumbPngNopng(err error) bool {
return tgerr.Is(err, ErrStickerThumbPngNopng)
}
// IsStickerThumbTgsNotgs reports whether err is STICKER_THUMB_TGS_NOTGS.
func IsStickerThumbTgsNotgs(err error) bool {
return tgerr.Is(err, ErrStickerThumbTgsNotgs)
}
// IsStickerVideoBig reports whether err is STICKER_VIDEO_BIG.
func IsStickerVideoBig(err error) bool {
return tgerr.Is(err, ErrStickerVideoBig)
}
// IsStickerVideoNodoc reports whether err is STICKER_VIDEO_NODOC.
func IsStickerVideoNodoc(err error) bool {
return tgerr.Is(err, ErrStickerVideoNodoc)
}
// IsStickerVideoNowebm reports whether err is STICKER_VIDEO_NOWEBM.
func IsStickerVideoNowebm(err error) bool {
return tgerr.Is(err, ErrStickerVideoNowebm)
}
// IsStoriesNeverCreated reports whether err is STORIES_NEVER_CREATED.
func IsStoriesNeverCreated(err error) bool {
return tgerr.Is(err, ErrStoriesNeverCreated)
}
// IsStoriesTooMuch reports whether err is STORIES_TOO_MUCH.
func IsStoriesTooMuch(err error) bool {
return tgerr.Is(err, ErrStoriesTooMuch)
}
// IsStoryIDEmpty reports whether err is STORY_ID_EMPTY.
func IsStoryIDEmpty(err error) bool {
return tgerr.Is(err, ErrStoryIDEmpty)
}
// IsStoryIDInvalid reports whether err is STORY_ID_INVALID.
func IsStoryIDInvalid(err error) bool {
return tgerr.Is(err, ErrStoryIDInvalid)
}
// IsStoryNotModified reports whether err is STORY_NOT_MODIFIED.
func IsStoryNotModified(err error) bool {
return tgerr.Is(err, ErrStoryNotModified)
}
// IsStoryPeriodInvalid reports whether err is STORY_PERIOD_INVALID.
func IsStoryPeriodInvalid(err error) bool {
return tgerr.Is(err, ErrStoryPeriodInvalid)
}
// IsStorySendFloodMonthly reports whether err is STORY_SEND_FLOOD_MONTHLY.
func IsStorySendFloodMonthly(err error) bool {
return tgerr.Is(err, ErrStorySendFloodMonthly)
}
// IsStorySendFloodWeekly reports whether err is STORY_SEND_FLOOD_WEEKLY.
func IsStorySendFloodWeekly(err error) bool {
return tgerr.Is(err, ErrStorySendFloodWeekly)
}
// IsSubscriptionExportMissing reports whether err is SUBSCRIPTION_EXPORT_MISSING.
func IsSubscriptionExportMissing(err error) bool {
return tgerr.Is(err, ErrSubscriptionExportMissing)
}
// IsSubscriptionIDInvalid reports whether err is SUBSCRIPTION_ID_INVALID.
func IsSubscriptionIDInvalid(err error) bool {
return tgerr.Is(err, ErrSubscriptionIDInvalid)
}
// IsSubscriptionPeriodInvalid reports whether err is SUBSCRIPTION_PERIOD_INVALID.
func IsSubscriptionPeriodInvalid(err error) bool {
return tgerr.Is(err, ErrSubscriptionPeriodInvalid)
}
// IsSuggestedPostAmountInvalid reports whether err is SUGGESTED_POST_AMOUNT_INVALID.
func IsSuggestedPostAmountInvalid(err error) bool {
return tgerr.Is(err, ErrSuggestedPostAmountInvalid)
}
// IsSuggestedPostPeerInvalid reports whether err is SUGGESTED_POST_PEER_INVALID.
func IsSuggestedPostPeerInvalid(err error) bool {
return tgerr.Is(err, ErrSuggestedPostPeerInvalid)
}
// IsSwitchPmTextEmpty reports whether err is SWITCH_PM_TEXT_EMPTY.
func IsSwitchPmTextEmpty(err error) bool {
return tgerr.Is(err, ErrSwitchPmTextEmpty)
}
// IsSwitchWebviewURLInvalid reports whether err is SWITCH_WEBVIEW_URL_INVALID.
func IsSwitchWebviewURLInvalid(err error) bool {
return tgerr.Is(err, ErrSwitchWebviewURLInvalid)
}
// IsTakeoutInitDelay reports whether err is TAKEOUT_INIT_DELAY.
func IsTakeoutInitDelay(err error) bool {
return tgerr.Is(err, ErrTakeoutInitDelay)
}
// IsTakeoutInvalid reports whether err is TAKEOUT_INVALID.
func IsTakeoutInvalid(err error) bool {
return tgerr.Is(err, ErrTakeoutInvalid)
}
// IsTakeoutRequired reports whether err is TAKEOUT_REQUIRED.
func IsTakeoutRequired(err error) bool {
return tgerr.Is(err, ErrTakeoutRequired)
}
// IsTaskAlreadyExists reports whether err is TASK_ALREADY_EXISTS.
func IsTaskAlreadyExists(err error) bool {
return tgerr.Is(err, ErrTaskAlreadyExists)
}
// IsTempAuthKeyAlreadyBound reports whether err is TEMP_AUTH_KEY_ALREADY_BOUND.
func IsTempAuthKeyAlreadyBound(err error) bool {
return tgerr.Is(err, ErrTempAuthKeyAlreadyBound)
}
// IsTempAuthKeyEmpty reports whether err is TEMP_AUTH_KEY_EMPTY.
func IsTempAuthKeyEmpty(err error) bool {
return tgerr.Is(err, ErrTempAuthKeyEmpty)
}
// IsTermsURLInvalid reports whether err is TERMS_URL_INVALID.
func IsTermsURLInvalid(err error) bool {
return tgerr.Is(err, ErrTermsURLInvalid)
}
// IsThemeFileInvalid reports whether err is THEME_FILE_INVALID.
func IsThemeFileInvalid(err error) bool {
return tgerr.Is(err, ErrThemeFileInvalid)
}
// IsThemeFormatInvalid reports whether err is THEME_FORMAT_INVALID.
func IsThemeFormatInvalid(err error) bool {
return tgerr.Is(err, ErrThemeFormatInvalid)
}
// IsThemeInvalid reports whether err is THEME_INVALID.
func IsThemeInvalid(err error) bool {
return tgerr.Is(err, ErrThemeInvalid)
}
// IsThemeMimeInvalid reports whether err is THEME_MIME_INVALID.
func IsThemeMimeInvalid(err error) bool {
return tgerr.Is(err, ErrThemeMimeInvalid)
}
// IsThemeParamsInvalid reports whether err is THEME_PARAMS_INVALID.
func IsThemeParamsInvalid(err error) bool {
return tgerr.Is(err, ErrThemeParamsInvalid)
}
// IsThemeSlugInvalid reports whether err is THEME_SLUG_INVALID.
func IsThemeSlugInvalid(err error) bool {
return tgerr.Is(err, ErrThemeSlugInvalid)
}
// IsThemeTitleInvalid reports whether err is THEME_TITLE_INVALID.
func IsThemeTitleInvalid(err error) bool {
return tgerr.Is(err, ErrThemeTitleInvalid)
}
// IsTimezoneInvalid reports whether err is TIMEZONE_INVALID.
func IsTimezoneInvalid(err error) bool {
return tgerr.Is(err, ErrTimezoneInvalid)
}
// IsTitleInvalid reports whether err is TITLE_INVALID.
func IsTitleInvalid(err error) bool {
return tgerr.Is(err, ErrTitleInvalid)
}
// IsTmpPasswordDisabled reports whether err is TMP_PASSWORD_DISABLED.
func IsTmpPasswordDisabled(err error) bool {
return tgerr.Is(err, ErrTmpPasswordDisabled)
}
// IsTmpPasswordInvalid reports whether err is TMP_PASSWORD_INVALID.
func IsTmpPasswordInvalid(err error) bool {
return tgerr.Is(err, ErrTmpPasswordInvalid)
}
// IsTodoItemsEmpty reports whether err is TODO_ITEMS_EMPTY.
func IsTodoItemsEmpty(err error) bool {
return tgerr.Is(err, ErrTodoItemsEmpty)
}
// IsTodoItemDuplicate reports whether err is TODO_ITEM_DUPLICATE.
func IsTodoItemDuplicate(err error) bool {
return tgerr.Is(err, ErrTodoItemDuplicate)
}
// IsTodoNotModified reports whether err is TODO_NOT_MODIFIED.
func IsTodoNotModified(err error) bool {
return tgerr.Is(err, ErrTodoNotModified)
}
// IsTokenEmpty reports whether err is TOKEN_EMPTY.
func IsTokenEmpty(err error) bool {
return tgerr.Is(err, ErrTokenEmpty)
}
// IsTokenInvalid reports whether err is TOKEN_INVALID.
func IsTokenInvalid(err error) bool {
return tgerr.Is(err, ErrTokenInvalid)
}
// IsTokenTypeInvalid reports whether err is TOKEN_TYPE_INVALID.
func IsTokenTypeInvalid(err error) bool {
return tgerr.Is(err, ErrTokenTypeInvalid)
}
// IsTopicClosed reports whether err is TOPIC_CLOSED.
func IsTopicClosed(err error) bool {
return tgerr.Is(err, ErrTopicClosed)
}
// IsTopicDeleted reports whether err is TOPIC_DELETED.
func IsTopicDeleted(err error) bool {
return tgerr.Is(err, ErrTopicDeleted)
}
// IsTopicIDInvalid reports whether err is TOPIC_ID_INVALID.
func IsTopicIDInvalid(err error) bool {
return tgerr.Is(err, ErrTopicIDInvalid)
}
// IsToIDInvalid reports whether err is TO_ID_INVALID.
func IsToIDInvalid(err error) bool {
return tgerr.Is(err, ErrToIDInvalid)
}
// IsToLangInvalid reports whether err is TO_LANG_INVALID.
func IsToLangInvalid(err error) bool {
return tgerr.Is(err, ErrToLangInvalid)
}
// IsTransactionIDInvalid reports whether err is TRANSACTION_ID_INVALID.
func IsTransactionIDInvalid(err error) bool {
return tgerr.Is(err, ErrTransactionIDInvalid)
}
// IsTranscriptionFailed reports whether err is TRANSCRIPTION_FAILED.
func IsTranscriptionFailed(err error) bool {
return tgerr.Is(err, ErrTranscriptionFailed)
}
// IsTranslateReqFailed reports whether err is TRANSLATE_REQ_FAILED.
func IsTranslateReqFailed(err error) bool {
return tgerr.Is(err, ErrTranslateReqFailed)
}
// IsTranslateReqQuotaExceeded reports whether err is TRANSLATE_REQ_QUOTA_EXCEEDED.
func IsTranslateReqQuotaExceeded(err error) bool {
return tgerr.Is(err, ErrTranslateReqQuotaExceeded)
}
// IsTranslationsDisabled reports whether err is TRANSLATIONS_DISABLED.
func IsTranslationsDisabled(err error) bool {
return tgerr.Is(err, ErrTranslationsDisabled)
}
// IsTranslationTimeout reports whether err is TRANSLATION_TIMEOUT.
func IsTranslationTimeout(err error) bool {
return tgerr.Is(err, ErrTranslationTimeout)
}
// IsTTLDaysInvalid reports whether err is TTL_DAYS_INVALID.
func IsTTLDaysInvalid(err error) bool {
return tgerr.Is(err, ErrTTLDaysInvalid)
}
// IsTTLMediaInvalid reports whether err is TTL_MEDIA_INVALID.
func IsTTLMediaInvalid(err error) bool {
return tgerr.Is(err, ErrTTLMediaInvalid)
}
// IsTTLPeriodInvalid reports whether err is TTL_PERIOD_INVALID.
func IsTTLPeriodInvalid(err error) bool {
return tgerr.Is(err, ErrTTLPeriodInvalid)
}
// IsTypesEmpty reports whether err is TYPES_EMPTY.
func IsTypesEmpty(err error) bool {
return tgerr.Is(err, ErrTypesEmpty)
}
// IsTimeout reports whether err is Timeout.
func IsTimeout(err error) bool {
return tgerr.Is(err, ErrTimeout)
}
// IsUnsupported reports whether err is UNSUPPORTED.
func IsUnsupported(err error) bool {
return tgerr.Is(err, ErrUnsupported)
}
// IsUntilDateInvalid reports whether err is UNTIL_DATE_INVALID.
func IsUntilDateInvalid(err error) bool {
return tgerr.Is(err, ErrUntilDateInvalid)
}
// IsUpdateAppToLogin reports whether err is UPDATE_APP_TO_LOGIN.
func IsUpdateAppToLogin(err error) bool {
return tgerr.Is(err, ErrUpdateAppToLogin)
}
// IsURLInvalid reports whether err is URL_INVALID.
func IsURLInvalid(err error) bool {
return tgerr.Is(err, ErrURLInvalid)
}
// IsUsageLimitInvalid reports whether err is USAGE_LIMIT_INVALID.
func IsUsageLimitInvalid(err error) bool {
return tgerr.Is(err, ErrUsageLimitInvalid)
}
// IsUsernamesActiveTooMuch reports whether err is USERNAMES_ACTIVE_TOO_MUCH.
func IsUsernamesActiveTooMuch(err error) bool {
return tgerr.Is(err, ErrUsernamesActiveTooMuch)
}
// IsUsernameInvalid reports whether err is USERNAME_INVALID.
func IsUsernameInvalid(err error) bool {
return tgerr.Is(err, ErrUsernameInvalid)
}
// IsUsernameNotModified reports whether err is USERNAME_NOT_MODIFIED.
func IsUsernameNotModified(err error) bool {
return tgerr.Is(err, ErrUsernameNotModified)
}
// IsUsernameNotOccupied reports whether err is USERNAME_NOT_OCCUPIED.
func IsUsernameNotOccupied(err error) bool {
return tgerr.Is(err, ErrUsernameNotOccupied)
}
// IsUsernameOccupied reports whether err is USERNAME_OCCUPIED.
func IsUsernameOccupied(err error) bool {
return tgerr.Is(err, ErrUsernameOccupied)
}
// IsUsernamePurchaseAvailable reports whether err is USERNAME_PURCHASE_AVAILABLE.
func IsUsernamePurchaseAvailable(err error) bool {
return tgerr.Is(err, ErrUsernamePurchaseAvailable)
}
// IsUserpicPrivacyRequired reports whether err is USERPIC_PRIVACY_REQUIRED.
func IsUserpicPrivacyRequired(err error) bool {
return tgerr.Is(err, ErrUserpicPrivacyRequired)
}
// IsUserpicUploadRequired reports whether err is USERPIC_UPLOAD_REQUIRED.
func IsUserpicUploadRequired(err error) bool {
return tgerr.Is(err, ErrUserpicUploadRequired)
}
// IsUsersTooFew reports whether err is USERS_TOO_FEW.
func IsUsersTooFew(err error) bool {
return tgerr.Is(err, ErrUsersTooFew)
}
// IsUsersTooMuch reports whether err is USERS_TOO_MUCH.
func IsUsersTooMuch(err error) bool {
return tgerr.Is(err, ErrUsersTooMuch)
}
// IsUserAdminInvalid reports whether err is USER_ADMIN_INVALID.
func IsUserAdminInvalid(err error) bool {
return tgerr.Is(err, ErrUserAdminInvalid)
}
// IsUserAlreadyInvited reports whether err is USER_ALREADY_INVITED.
func IsUserAlreadyInvited(err error) bool {
return tgerr.Is(err, ErrUserAlreadyInvited)
}
// IsUserAlreadyParticipant reports whether err is USER_ALREADY_PARTICIPANT.
func IsUserAlreadyParticipant(err error) bool {
return tgerr.Is(err, ErrUserAlreadyParticipant)
}
// IsUserBannedInChannel reports whether err is USER_BANNED_IN_CHANNEL.
func IsUserBannedInChannel(err error) bool {
return tgerr.Is(err, ErrUserBannedInChannel)
}
// IsUserBlocked reports whether err is USER_BLOCKED.
func IsUserBlocked(err error) bool {
return tgerr.Is(err, ErrUserBlocked)
}
// IsUserBot reports whether err is USER_BOT.
func IsUserBot(err error) bool {
return tgerr.Is(err, ErrUserBot)
}
// IsUserBotInvalid reports whether err is USER_BOT_INVALID.
func IsUserBotInvalid(err error) bool {
return tgerr.Is(err, ErrUserBotInvalid)
}
// IsUserBotRequired reports whether err is USER_BOT_REQUIRED.
func IsUserBotRequired(err error) bool {
return tgerr.Is(err, ErrUserBotRequired)
}
// IsUserChannelsTooMuch reports whether err is USER_CHANNELS_TOO_MUCH.
func IsUserChannelsTooMuch(err error) bool {
return tgerr.Is(err, ErrUserChannelsTooMuch)
}
// IsUserCreator reports whether err is USER_CREATOR.
func IsUserCreator(err error) bool {
return tgerr.Is(err, ErrUserCreator)
}
// IsUserDeleted reports whether err is USER_DELETED.
func IsUserDeleted(err error) bool {
return tgerr.Is(err, ErrUserDeleted)
}
// IsUserGiftUnavailable reports whether err is USER_GIFT_UNAVAILABLE.
func IsUserGiftUnavailable(err error) bool {
return tgerr.Is(err, ErrUserGiftUnavailable)
}
// IsUserIDInvalid reports whether err is USER_ID_INVALID.
func IsUserIDInvalid(err error) bool {
return tgerr.Is(err, ErrUserIDInvalid)
}
// IsUserInvalid reports whether err is USER_INVALID.
func IsUserInvalid(err error) bool {
return tgerr.Is(err, ErrUserInvalid)
}
// IsUserIsBlocked reports whether err is USER_IS_BLOCKED.
func IsUserIsBlocked(err error) bool {
return tgerr.Is(err, ErrUserIsBlocked)
}
// IsUserIsBot reports whether err is USER_IS_BOT.
func IsUserIsBot(err error) bool {
return tgerr.Is(err, ErrUserIsBot)
}
// IsUserKicked reports whether err is USER_KICKED.
func IsUserKicked(err error) bool {
return tgerr.Is(err, ErrUserKicked)
}
// IsUserNotMutualContact reports whether err is USER_NOT_MUTUAL_CONTACT.
func IsUserNotMutualContact(err error) bool {
return tgerr.Is(err, ErrUserNotMutualContact)
}
// IsUserNotParticipant reports whether err is USER_NOT_PARTICIPANT.
func IsUserNotParticipant(err error) bool {
return tgerr.Is(err, ErrUserNotParticipant)
}
// IsUserPermissionDenied reports whether err is USER_PERMISSION_DENIED.
func IsUserPermissionDenied(err error) bool {
return tgerr.Is(err, ErrUserPermissionDenied)
}
// IsUserPrivacyRestricted reports whether err is USER_PRIVACY_RESTRICTED.
func IsUserPrivacyRestricted(err error) bool {
return tgerr.Is(err, ErrUserPrivacyRestricted)
}
// IsUserPublicMissing reports whether err is USER_PUBLIC_MISSING.
func IsUserPublicMissing(err error) bool {
return tgerr.Is(err, ErrUserPublicMissing)
}
// IsUserRestricted reports whether err is USER_RESTRICTED.
func IsUserRestricted(err error) bool {
return tgerr.Is(err, ErrUserRestricted)
}
// IsUserVolumeInvalid reports whether err is USER_VOLUME_INVALID.
func IsUserVolumeInvalid(err error) bool {
return tgerr.Is(err, ErrUserVolumeInvalid)
}
// IsVenueIDInvalid reports whether err is VENUE_ID_INVALID.
func IsVenueIDInvalid(err error) bool {
return tgerr.Is(err, ErrVenueIDInvalid)
}
// IsVideoContentTypeInvalid reports whether err is VIDEO_CONTENT_TYPE_INVALID.
func IsVideoContentTypeInvalid(err error) bool {
return tgerr.Is(err, ErrVideoContentTypeInvalid)
}
// IsVideoFileInvalid reports whether err is VIDEO_FILE_INVALID.
func IsVideoFileInvalid(err error) bool {
return tgerr.Is(err, ErrVideoFileInvalid)
}
// IsVideoPauseForbidden reports whether err is VIDEO_PAUSE_FORBIDDEN.
func IsVideoPauseForbidden(err error) bool {
return tgerr.Is(err, ErrVideoPauseForbidden)
}
// IsVideoStopForbidden reports whether err is VIDEO_STOP_FORBIDDEN.
func IsVideoStopForbidden(err error) bool {
return tgerr.Is(err, ErrVideoStopForbidden)
}
// IsVideoTitleEmpty reports whether err is VIDEO_TITLE_EMPTY.
func IsVideoTitleEmpty(err error) bool {
return tgerr.Is(err, ErrVideoTitleEmpty)
}
// IsVoiceMessagesForbidden reports whether err is VOICE_MESSAGES_FORBIDDEN.
func IsVoiceMessagesForbidden(err error) bool {
return tgerr.Is(err, ErrVoiceMessagesForbidden)
}
// IsWallpaperFileInvalid reports whether err is WALLPAPER_FILE_INVALID.
func IsWallpaperFileInvalid(err error) bool {
return tgerr.Is(err, ErrWallpaperFileInvalid)
}
// IsWallpaperInvalid reports whether err is WALLPAPER_INVALID.
func IsWallpaperInvalid(err error) bool {
return tgerr.Is(err, ErrWallpaperInvalid)
}
// IsWallpaperMimeInvalid reports whether err is WALLPAPER_MIME_INVALID.
func IsWallpaperMimeInvalid(err error) bool {
return tgerr.Is(err, ErrWallpaperMimeInvalid)
}
// IsWallpaperNotFound reports whether err is WALLPAPER_NOT_FOUND.
func IsWallpaperNotFound(err error) bool {
return tgerr.Is(err, ErrWallpaperNotFound)
}
// IsWcConvertURLInvalid reports whether err is WC_CONVERT_URL_INVALID.
func IsWcConvertURLInvalid(err error) bool {
return tgerr.Is(err, ErrWcConvertURLInvalid)
}
// IsWebdocumentInvalid reports whether err is WEBDOCUMENT_INVALID.
func IsWebdocumentInvalid(err error) bool {
return tgerr.Is(err, ErrWebdocumentInvalid)
}
// IsWebdocumentMimeInvalid reports whether err is WEBDOCUMENT_MIME_INVALID.
func IsWebdocumentMimeInvalid(err error) bool {
return tgerr.Is(err, ErrWebdocumentMimeInvalid)
}
// IsWebdocumentSizeTooBig reports whether err is WEBDOCUMENT_SIZE_TOO_BIG.
func IsWebdocumentSizeTooBig(err error) bool {
return tgerr.Is(err, ErrWebdocumentSizeTooBig)
}
// IsWebdocumentURLEmpty reports whether err is WEBDOCUMENT_URL_EMPTY.
func IsWebdocumentURLEmpty(err error) bool {
return tgerr.Is(err, ErrWebdocumentURLEmpty)
}
// IsWebdocumentURLInvalid reports whether err is WEBDOCUMENT_URL_INVALID.
func IsWebdocumentURLInvalid(err error) bool {
return tgerr.Is(err, ErrWebdocumentURLInvalid)
}
// IsWebpageCurlFailed reports whether err is WEBPAGE_CURL_FAILED.
func IsWebpageCurlFailed(err error) bool {
return tgerr.Is(err, ErrWebpageCurlFailed)
}
// IsWebpageMediaEmpty reports whether err is WEBPAGE_MEDIA_EMPTY.
func IsWebpageMediaEmpty(err error) bool {
return tgerr.Is(err, ErrWebpageMediaEmpty)
}
// IsWebpageNotFound reports whether err is WEBPAGE_NOT_FOUND.
func IsWebpageNotFound(err error) bool {
return tgerr.Is(err, ErrWebpageNotFound)
}
// IsWebpageURLInvalid reports whether err is WEBPAGE_URL_INVALID.
func IsWebpageURLInvalid(err error) bool {
return tgerr.Is(err, ErrWebpageURLInvalid)
}
// IsWebpushAuthInvalid reports whether err is WEBPUSH_AUTH_INVALID.
func IsWebpushAuthInvalid(err error) bool {
return tgerr.Is(err, ErrWebpushAuthInvalid)
}
// IsWebpushKeyInvalid reports whether err is WEBPUSH_KEY_INVALID.
func IsWebpushKeyInvalid(err error) bool {
return tgerr.Is(err, ErrWebpushKeyInvalid)
}
// IsWebpushTokenInvalid reports whether err is WEBPUSH_TOKEN_INVALID.
func IsWebpushTokenInvalid(err error) bool {
return tgerr.Is(err, ErrWebpushTokenInvalid)
}
// IsYourPrivacyRestricted reports whether err is YOUR_PRIVACY_RESTRICTED.
func IsYourPrivacyRestricted(err error) bool {
return tgerr.Is(err, ErrYourPrivacyRestricted)
}
// IsYouBlockedUser reports whether err is YOU_BLOCKED_USER.
func IsYouBlockedUser(err error) bool {
return tgerr.Is(err, ErrYouBlockedUser)
}