telegram

package
v0.0.0-...-51715ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Admin      = "admin"
	Creator    = "creator"
	Member     = "member"
	Restricted = "restricted"
	Left       = "left"
	Kicked     = "kicked"
)
View Source
const (
	// The Initial DC to connect to, before auth
	DefaultDataCenter       = 4
	DisconnectExportedAfter = 15 * time.Minute
)
View Source
const (
	ApiVersion = 186
	Version    = "v2.3.17"

	LogDebug   = "debug"
	LogInfo    = "info"
	LogWarn    = "warn"
	LogError   = "error"
	LogDisable = "disabled"

	MarkDown string = "Markdown"
	HTML     string = "HTML"

	EntityUser    string = "user"
	EntityChat    string = "chat"
	EntityChannel string = "channel"
	EntityUnknown string = "unknown"

	OnNewMessage          = "OnNewMessage"
	OnEditMessage         = "OnEditMessage"
	OnChatAction          = "OnChatAction"
	OnInlineQuery         = "OnInlineQuery"
	OnCallbackQuery       = "OnCallbackQuery"
	OnInlineCallbackQuery = "OnInlineCallbackQuery"
	OnChosenInlineResult  = "OnChosenInlineResult"
	OnDeleteMessage       = "OnDeleteMessage"
)
View Source
const (
	DEFAULT_WORKERS = 4
	DEFAULT_PARTS   = 512 * 512
)
View Source
const ConvDefaultTimeOut = int32(60)

Variables

View Source
var (
	USERNAME_RE = regexp.MustCompile(`(?i)@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(@|\+|joinchat/)?`)
	TG_JOIN_RE  = regexp.MustCompile(`(?i)tg://join\?invite=([a-z0-9_\-]{22})`)
)
View Source
var (
	FilterPrivate   = Filter{Private: true}
	FilterGroup     = Filter{Group: true}
	FilterChannel   = Filter{Channel: true}
	FilterMedia     = Filter{Media: true}
	FilterCommand   = Filter{Command: true}
	FilterReply     = Filter{Reply: true}
	FilterForward   = Filter{Forward: true}
	FilterFromBot   = Filter{FromBot: true}
	FilterBlacklist = Filter{Blacklist: true}
	FilterMention   = Filter{Mention: true}
	FilterUsers     = func(users ...int64) Filter {
		return Filter{Users: users}
	}
	FilterChats = func(chats ...int64) Filter {
		return Filter{Chats: chats}
	}
	FilterFunc = func(f func(m *NewMessage) bool) Filter {
		return Filter{Func: f}
	}
)
View Source
var (
	OnMessage        ev = "message"
	OnCommand        ev = "command"
	OnEdit           ev = "edit"
	OnDelete         ev = "delete"
	OnAlbum          ev = "album"
	OnInline         ev = "inline"
	OnCallback       ev = "callback"
	OnInlineCallback ev = "inlineCallback"
	OnParticipant    ev = "participant"
	OnRaw            ev = "raw"
)
View Source
var (
	Actions = map[string]SendMessageAction{
		"typing":          &SendMessageTypingAction{},
		"upload_photo":    &SendMessageUploadPhotoAction{},
		"record_video":    &SendMessageRecordVideoAction{},
		"upload_video":    &SendMessageUploadVideoAction{},
		"record_audio":    &SendMessageRecordAudioAction{},
		"upload_audio":    &SendMessageUploadAudioAction{},
		"upload_document": &SendMessageUploadDocumentAction{},
		"game":            &SendMessageGamePlayAction{},
		"cancel":          &SendMessageCancelAction{},
		"round_video":     &SendMessageUploadRoundAction{},
		"call":            &SpeakingInGroupCallAction{},
		"record_round":    &SendMessageRecordRoundAction{},
		"history_import":  &SendMessageHistoryImportAction{},
		"geo":             &SendMessageGeoLocationAction{},
		"choose_contact":  &SendMessageChooseContactAction{},
		"choose_sticker":  &SendMessageChooseStickerAction{},
		"emoji":           &SendMessageEmojiInteraction{},
		"emoji_seen":      &SendMessageEmojiInteractionSeen{},
	}
)
View Source
var DataCenters = map[int]string{
	1: "149.154.175.58:443",
	2: "149.154.167.50:443",
	3: "149.154.175.100:443",
	4: "149.154.167.91:443",
	5: "91.108.56.151:443",
}
View Source
var EndGroup = errors.New("end-group-trigger")
View Source
var TestDataCenters = map[int]string{
	1: "149.154.175.10:443",
	2: "149.154.167.40:443",
	3: "149.154.175.117:443",
}

Functions

func FileExists

func FileExists(path string) bool

func GenRandInt

func GenRandInt() int64

func GenerateRandomLong

func GenerateRandomLong() int64

func GetHostIp

func GetHostIp(dcID int, test bool) string

func GetInputCheckPasswordAlgo

func GetInputCheckPasswordAlgo(password string, srpB []byte, mp *ige.ModPow) (*ige.SrpAnswer, error)

GetInputCheckPassword returns the input check password for the given password and salt. all the internal functions are in internal/ige, send pr if you want to use them directly https://core.telegram.org/api/srp#checking-the-password-with-srp

func HTMLToMarkdownV2

func HTMLToMarkdownV2(markdown string) string

func HandleIncomingUpdates

func HandleIncomingUpdates(u interface{}, c *Client) bool

Sort and Handle all the Incoming Updates Many more types to be added

func IsAudioFile

func IsAudioFile(path string) bool

func IsFfmpegInstalled

func IsFfmpegInstalled() bool

func IsPhone

func IsPhone(phone string) bool

func IsStreamable

func IsStreamable(mimeType string) bool

func IsStreamableFile

func IsStreamableFile(path string) bool

func IsURL

func IsURL(str string) bool

func PackBotFileID

func PackBotFileID(file any) string

PackBotFileID packs a file object to a file-id

func PathIsDir

func PathIsDir(path string) bool

func PathIsWritable

func PathIsWritable(path string) bool

func UnpackBotFileID

func UnpackBotFileID(fileID string) (int64, int64, int32, int32)

UnpackBotFileID unpacks a file id to its components

Types

type AccountAcceptAuthorizationParams

type AccountAcceptAuthorizationParams struct {
	BotID       int64
	Scope       string
	PublicKey   string
	ValueHashes []*SecureValueHash
	Credentials *SecureCredentialsEncrypted
}

func (*AccountAcceptAuthorizationParams) CRC

type AccountAuthorizationForm

type AccountAuthorizationForm struct {
	RequiredTypes    []SecureRequiredType
	Values           []*SecureValue
	Errors           []SecureValueError
	Users            []User
	PrivacyPolicyURL string `tl:"flag:0"`
}

[Telegram Passport](https://core.telegram.org/passport) authorization form

func (*AccountAuthorizationForm) CRC

func (*AccountAuthorizationForm) FlagIndex

func (*AccountAuthorizationForm) FlagIndex() int

type AccountAuthorizations

type AccountAuthorizations struct {
	AuthorizationTtlDays int32
	Authorizations       []*Authorization
}

Logged-in sessions

func (*AccountAuthorizations) CRC

type AccountAutoDownloadSettings

type AccountAutoDownloadSettings struct {
	Low    *AutoDownloadSettings
	Medium *AutoDownloadSettings
	High   *AutoDownloadSettings
}

Media autodownload settings

func (*AccountAutoDownloadSettings) CRC

type AccountAutoSaveSettings

type AccountAutoSaveSettings struct {
	UsersSettings      *AutoSaveSettings
	ChatsSettings      *AutoSaveSettings
	BroadcastsSettings *AutoSaveSettings
	Exceptions         []*AutoSaveException
	Chats              []Chat
	Users              []User
}

Contains media autosave settings

func (*AccountAutoSaveSettings) CRC

type AccountBusinessChatLinks struct {
	Links []*BusinessChatLink
	Chats []Chat
	Users []User
}

func (*AccountBusinessChatLinks) CRC

type AccountCancelPasswordEmailParams

type AccountCancelPasswordEmailParams struct{}

func (*AccountCancelPasswordEmailParams) CRC

type AccountChangeAuthorizationSettingsParams

type AccountChangeAuthorizationSettingsParams struct {
	Confirmed                 bool `tl:"flag:3,encoded_in_bitflags"`
	Hash                      int64
	EncryptedRequestsDisabled bool `tl:"flag:0"`
	CallRequestsDisabled      bool `tl:"flag:1"`
}

func (*AccountChangeAuthorizationSettingsParams) CRC

func (*AccountChangeAuthorizationSettingsParams) FlagIndex

type AccountChangePhoneParams

type AccountChangePhoneParams struct {
	PhoneNumber   string
	PhoneCodeHash string
	PhoneCode     string
}

func (*AccountChangePhoneParams) CRC

type AccountCheckUsernameParams

type AccountCheckUsernameParams struct {
	Username string
}

func (*AccountCheckUsernameParams) CRC

type AccountClearRecentEmojiStatusesParams

type AccountClearRecentEmojiStatusesParams struct{}

func (*AccountClearRecentEmojiStatusesParams) CRC

type AccountConfirmPasswordEmailParams

type AccountConfirmPasswordEmailParams struct {
	Code string
}

func (*AccountConfirmPasswordEmailParams) CRC

type AccountConfirmPhoneParams

type AccountConfirmPhoneParams struct {
	PhoneCodeHash string
	PhoneCode     string
}

func (*AccountConfirmPhoneParams) CRC

type AccountConnectedBots

type AccountConnectedBots struct {
	ConnectedBots []*ConnectedBot
	Users         []User
}

func (*AccountConnectedBots) CRC

type AccountContentSettings

type AccountContentSettings struct {
	SensitiveEnabled   bool `tl:"flag:0,encoded_in_bitflags"`
	SensitiveCanChange bool `tl:"flag:1,encoded_in_bitflags"`
}

Sensitive content settings

func (*AccountContentSettings) CRC

func (*AccountContentSettings) FlagIndex

func (*AccountContentSettings) FlagIndex() int

type AccountCreateBusinessChatLinkParams

type AccountCreateBusinessChatLinkParams struct {
	Link *InputBusinessChatLink
}

func (*AccountCreateBusinessChatLinkParams) CRC

type AccountCreateThemeParams

type AccountCreateThemeParams struct {
	Slug     string
	Title    string
	Document InputDocument         `tl:"flag:2"`
	Settings []*InputThemeSettings `tl:"flag:3"`
}

func (*AccountCreateThemeParams) CRC

func (*AccountCreateThemeParams) FlagIndex

func (*AccountCreateThemeParams) FlagIndex() int

type AccountDaysTtl

type AccountDaysTtl struct {
	Days int32
}

Time to live in days of the current account

func (*AccountDaysTtl) CRC

func (*AccountDaysTtl) CRC() uint32

type AccountDeclinePasswordResetParams

type AccountDeclinePasswordResetParams struct{}

func (*AccountDeclinePasswordResetParams) CRC

type AccountDeleteAccountParams

type AccountDeleteAccountParams struct {
	Reason   string
	Password InputCheckPasswordSRP `tl:"flag:0"`
}

func (*AccountDeleteAccountParams) CRC

func (*AccountDeleteAccountParams) FlagIndex

func (*AccountDeleteAccountParams) FlagIndex() int

type AccountDeleteAutoSaveExceptionsParams

type AccountDeleteAutoSaveExceptionsParams struct{}

func (*AccountDeleteAutoSaveExceptionsParams) CRC

type AccountDeleteBusinessChatLinkParams

type AccountDeleteBusinessChatLinkParams struct {
	Slug string
}

func (*AccountDeleteBusinessChatLinkParams) CRC

type AccountDeleteSecureValueParams

type AccountDeleteSecureValueParams struct {
	Types []SecureValueType
}

func (*AccountDeleteSecureValueParams) CRC

type AccountDisablePeerConnectedBotParams

type AccountDisablePeerConnectedBotParams struct {
	Peer InputPeer
}

func (*AccountDisablePeerConnectedBotParams) CRC

type AccountEditBusinessChatLinkParams

type AccountEditBusinessChatLinkParams struct {
	Slug string
	Link *InputBusinessChatLink
}

func (*AccountEditBusinessChatLinkParams) CRC

type AccountEmailVerified

type AccountEmailVerified interface {
	tl.Object
	ImplementsAccountEmailVerified()
}

type AccountEmailVerifiedLogin

type AccountEmailVerifiedLogin struct {
	Email    string
	SentCode AuthSentCode
}

The email was verified correctly, and a login code was just sent to it.

func (*AccountEmailVerifiedLogin) CRC

func (*AccountEmailVerifiedLogin) ImplementsAccountEmailVerified

func (*AccountEmailVerifiedLogin) ImplementsAccountEmailVerified()

type AccountEmailVerifiedObj

type AccountEmailVerifiedObj struct {
	Email string
}

The email was verified correctly.

func (*AccountEmailVerifiedObj) CRC

func (*AccountEmailVerifiedObj) ImplementsAccountEmailVerified

func (*AccountEmailVerifiedObj) ImplementsAccountEmailVerified()

type AccountEmojiStatuses

type AccountEmojiStatuses interface {
	tl.Object
	ImplementsAccountEmojiStatuses()
}

type AccountEmojiStatusesNotModified

type AccountEmojiStatusesNotModified struct{}

The server-side list of [emoji statuses](https://core.telegram.org/api/emoji-status) hasn't changed

func (*AccountEmojiStatusesNotModified) CRC

func (*AccountEmojiStatusesNotModified) ImplementsAccountEmojiStatuses

func (*AccountEmojiStatusesNotModified) ImplementsAccountEmojiStatuses()

type AccountEmojiStatusesObj

type AccountEmojiStatusesObj struct {
	Hash     int64
	Statuses []EmojiStatus
}

A list of [emoji statuses](https://core.telegram.org/api/emoji-status)

func (*AccountEmojiStatusesObj) CRC

func (*AccountEmojiStatusesObj) ImplementsAccountEmojiStatuses

func (*AccountEmojiStatusesObj) ImplementsAccountEmojiStatuses()

type AccountFinishTakeoutSessionParams

type AccountFinishTakeoutSessionParams struct {
	Success bool `tl:"flag:0,encoded_in_bitflags"`
}

func (*AccountFinishTakeoutSessionParams) CRC

func (*AccountFinishTakeoutSessionParams) FlagIndex

type AccountGetAccountTtlParams

type AccountGetAccountTtlParams struct{}

func (*AccountGetAccountTtlParams) CRC

type AccountGetAllSecureValuesParams

type AccountGetAllSecureValuesParams struct{}

func (*AccountGetAllSecureValuesParams) CRC

type AccountGetAuthorizationFormParams

type AccountGetAuthorizationFormParams struct {
	BotID     int64
	Scope     string
	PublicKey string
}

func (*AccountGetAuthorizationFormParams) CRC

type AccountGetAuthorizationsParams

type AccountGetAuthorizationsParams struct{}

func (*AccountGetAuthorizationsParams) CRC

type AccountGetAutoDownloadSettingsParams

type AccountGetAutoDownloadSettingsParams struct{}

func (*AccountGetAutoDownloadSettingsParams) CRC

type AccountGetAutoSaveSettingsParams

type AccountGetAutoSaveSettingsParams struct{}

func (*AccountGetAutoSaveSettingsParams) CRC

type AccountGetBotBusinessConnectionParams

type AccountGetBotBusinessConnectionParams struct {
	ConnectionID string
}

func (*AccountGetBotBusinessConnectionParams) CRC

type AccountGetBusinessChatLinksParams

type AccountGetBusinessChatLinksParams struct{}

func (*AccountGetBusinessChatLinksParams) CRC

type AccountGetChannelDefaultEmojiStatusesParams

type AccountGetChannelDefaultEmojiStatusesParams struct {
	Hash int64
}

func (*AccountGetChannelDefaultEmojiStatusesParams) CRC

type AccountGetChannelRestrictedStatusEmojisParams

type AccountGetChannelRestrictedStatusEmojisParams struct {
	Hash int64
}

func (*AccountGetChannelRestrictedStatusEmojisParams) CRC

type AccountGetChatThemesParams

type AccountGetChatThemesParams struct {
	Hash int64
}

func (*AccountGetChatThemesParams) CRC

type AccountGetConnectedBotsParams

type AccountGetConnectedBotsParams struct{}

func (*AccountGetConnectedBotsParams) CRC

type AccountGetContactSignUpNotificationParams

type AccountGetContactSignUpNotificationParams struct{}

func (*AccountGetContactSignUpNotificationParams) CRC

type AccountGetContentSettingsParams

type AccountGetContentSettingsParams struct{}

func (*AccountGetContentSettingsParams) CRC

type AccountGetDefaultBackgroundEmojisParams

type AccountGetDefaultBackgroundEmojisParams struct {
	Hash int64
}

func (*AccountGetDefaultBackgroundEmojisParams) CRC

type AccountGetDefaultEmojiStatusesParams

type AccountGetDefaultEmojiStatusesParams struct {
	Hash int64
}

func (*AccountGetDefaultEmojiStatusesParams) CRC

type AccountGetDefaultGroupPhotoEmojisParams

type AccountGetDefaultGroupPhotoEmojisParams struct {
	Hash int64
}

func (*AccountGetDefaultGroupPhotoEmojisParams) CRC

type AccountGetDefaultProfilePhotoEmojisParams

type AccountGetDefaultProfilePhotoEmojisParams struct {
	Hash int64
}

func (*AccountGetDefaultProfilePhotoEmojisParams) CRC

type AccountGetGlobalPrivacySettingsParams

type AccountGetGlobalPrivacySettingsParams struct{}

func (*AccountGetGlobalPrivacySettingsParams) CRC

type AccountGetMultiWallPapersParams

type AccountGetMultiWallPapersParams struct {
	Wallpapers []InputWallPaper
}

func (*AccountGetMultiWallPapersParams) CRC

type AccountGetNotifyExceptionsParams

type AccountGetNotifyExceptionsParams struct {
	CompareSound   bool            `tl:"flag:1,encoded_in_bitflags"`
	CompareStories bool            `tl:"flag:2,encoded_in_bitflags"`
	Peer           InputNotifyPeer `tl:"flag:0"`
}

func (*AccountGetNotifyExceptionsParams) CRC

func (*AccountGetNotifyExceptionsParams) FlagIndex

type AccountGetNotifySettingsParams

type AccountGetNotifySettingsParams struct {
	Peer InputNotifyPeer
}

func (*AccountGetNotifySettingsParams) CRC

type AccountGetPasswordParams

type AccountGetPasswordParams struct{}

func (*AccountGetPasswordParams) CRC

type AccountGetPasswordSettingsParams

type AccountGetPasswordSettingsParams struct {
	Password InputCheckPasswordSRP
}

func (*AccountGetPasswordSettingsParams) CRC

type AccountGetPrivacyParams

type AccountGetPrivacyParams struct {
	Key InputPrivacyKey
}

func (*AccountGetPrivacyParams) CRC

type AccountGetReactionsNotifySettingsParams

type AccountGetReactionsNotifySettingsParams struct{}

func (*AccountGetReactionsNotifySettingsParams) CRC

type AccountGetRecentEmojiStatusesParams

type AccountGetRecentEmojiStatusesParams struct {
	Hash int64
}

func (*AccountGetRecentEmojiStatusesParams) CRC

type AccountGetSavedRingtonesParams

type AccountGetSavedRingtonesParams struct {
	Hash int64
}

func (*AccountGetSavedRingtonesParams) CRC

type AccountGetSecureValueParams

type AccountGetSecureValueParams struct {
	Types []SecureValueType
}

func (*AccountGetSecureValueParams) CRC

type AccountGetThemeParams

type AccountGetThemeParams struct {
	Format string
	Theme  InputTheme
}

func (*AccountGetThemeParams) CRC

type AccountGetThemesParams

type AccountGetThemesParams struct {
	Format string
	Hash   int64
}

func (*AccountGetThemesParams) CRC

type AccountGetTmpPasswordParams

type AccountGetTmpPasswordParams struct {
	Password InputCheckPasswordSRP
	Period   int32
}

func (*AccountGetTmpPasswordParams) CRC

type AccountGetWallPaperParams

type AccountGetWallPaperParams struct {
	Wallpaper InputWallPaper
}

func (*AccountGetWallPaperParams) CRC

type AccountGetWallPapersParams

type AccountGetWallPapersParams struct {
	Hash int64
}

func (*AccountGetWallPapersParams) CRC

type AccountGetWebAuthorizationsParams

type AccountGetWebAuthorizationsParams struct{}

func (*AccountGetWebAuthorizationsParams) CRC

type AccountInitTakeoutSessionParams

type AccountInitTakeoutSessionParams struct {
	Contacts          bool  `tl:"flag:0,encoded_in_bitflags"`
	MessageUsers      bool  `tl:"flag:1,encoded_in_bitflags"`
	MessageChats      bool  `tl:"flag:2,encoded_in_bitflags"`
	MessageMegagroups bool  `tl:"flag:3,encoded_in_bitflags"`
	MessageChannels   bool  `tl:"flag:4,encoded_in_bitflags"`
	Files             bool  `tl:"flag:5,encoded_in_bitflags"`
	FileMaxSize       int64 `tl:"flag:5"`
}

func (*AccountInitTakeoutSessionParams) CRC

func (*AccountInitTakeoutSessionParams) FlagIndex

func (*AccountInitTakeoutSessionParams) FlagIndex() int

type AccountInstallThemeParams

type AccountInstallThemeParams struct {
	Dark      bool       `tl:"flag:0,encoded_in_bitflags"`
	Theme     InputTheme `tl:"flag:1"`
	Format    string     `tl:"flag:2"`
	BaseTheme BaseTheme  `tl:"flag:3"`
}

func (*AccountInstallThemeParams) CRC

func (*AccountInstallThemeParams) FlagIndex

func (*AccountInstallThemeParams) FlagIndex() int

type AccountInstallWallPaperParams

type AccountInstallWallPaperParams struct {
	Wallpaper InputWallPaper
	Settings  *WallPaperSettings
}

func (*AccountInstallWallPaperParams) CRC

type AccountInvalidateSignInCodesParams

type AccountInvalidateSignInCodesParams struct {
	Codes []string
}

func (*AccountInvalidateSignInCodesParams) CRC

type AccountPassword

type AccountPassword struct {
	HasRecovery             bool            `tl:"flag:0,encoded_in_bitflags"`
	HasSecureValues         bool            `tl:"flag:1,encoded_in_bitflags"`
	HasPassword             bool            `tl:"flag:2,encoded_in_bitflags"`
	CurrentAlgo             PasswordKdfAlgo `tl:"flag:2"`
	SRPB                    []byte          `tl:"flag:2"`
	SRPID                   int64           `tl:"flag:2"`
	Hint                    string          `tl:"flag:3"`
	EmailUnconfirmedPattern string          `tl:"flag:4"`
	NewAlgo                 PasswordKdfAlgo
	NewSecureAlgo           SecurePasswordKdfAlgo
	SecureRandom            []byte
	PendingResetDate        int32  `tl:"flag:5"`
	LoginEmailPattern       string `tl:"flag:6"`
}

Configuration for two-factor authorization

func (*AccountPassword) CRC

func (*AccountPassword) CRC() uint32

func (*AccountPassword) FlagIndex

func (*AccountPassword) FlagIndex() int

type AccountPasswordInputSettings

type AccountPasswordInputSettings struct {
	NewAlgo           PasswordKdfAlgo       `tl:"flag:0"`
	NewPasswordHash   []byte                `tl:"flag:0"`
	Hint              string                `tl:"flag:0"`
	Email             string                `tl:"flag:1"`
	NewSecureSettings *SecureSecretSettings `tl:"flag:2"`
}

Settings for setting up a new password

func (*AccountPasswordInputSettings) CRC

func (*AccountPasswordInputSettings) FlagIndex

func (*AccountPasswordInputSettings) FlagIndex() int

type AccountPasswordSettings

type AccountPasswordSettings struct {
	Email          string                `tl:"flag:0"`
	SecureSettings *SecureSecretSettings `tl:"flag:1"`
}

Private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on)

func (*AccountPasswordSettings) CRC

func (*AccountPasswordSettings) FlagIndex

func (*AccountPasswordSettings) FlagIndex() int

type AccountPrivacyRules

type AccountPrivacyRules struct {
	Rules []PrivacyRule
	Chats []Chat
	Users []User
}

Privacy rules

func (*AccountPrivacyRules) CRC

func (*AccountPrivacyRules) CRC() uint32

type AccountRegisterDeviceParams

type AccountRegisterDeviceParams struct {
	NoMuted    bool `tl:"flag:0,encoded_in_bitflags"`
	TokenType  int32
	Token      string
	AppSandbox bool
	Secret     []byte
	OtherUids  []int64
}

func (*AccountRegisterDeviceParams) CRC

func (*AccountRegisterDeviceParams) FlagIndex

func (*AccountRegisterDeviceParams) FlagIndex() int

type AccountReorderUsernamesParams

type AccountReorderUsernamesParams struct {
	Order []string
}

func (*AccountReorderUsernamesParams) CRC

type AccountReportPeerParams

type AccountReportPeerParams struct {
	Peer    InputPeer
	Reason  ReportReason
	Message string
}

func (*AccountReportPeerParams) CRC

type AccountReportProfilePhotoParams

type AccountReportProfilePhotoParams struct {
	Peer    InputPeer
	PhotoID InputPhoto
	Reason  ReportReason
	Message string
}

func (*AccountReportProfilePhotoParams) CRC

type AccountResendPasswordEmailParams

type AccountResendPasswordEmailParams struct{}

func (*AccountResendPasswordEmailParams) CRC

type AccountResetAuthorizationParams

type AccountResetAuthorizationParams struct {
	Hash int64
}

func (*AccountResetAuthorizationParams) CRC

type AccountResetNotifySettingsParams

type AccountResetNotifySettingsParams struct{}

func (*AccountResetNotifySettingsParams) CRC

type AccountResetPasswordFailedWait

type AccountResetPasswordFailedWait struct {
	RetryDate int32
}

You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.

func (*AccountResetPasswordFailedWait) CRC

func (*AccountResetPasswordFailedWait) ImplementsAccountResetPasswordResult

func (*AccountResetPasswordFailedWait) ImplementsAccountResetPasswordResult()

type AccountResetPasswordOk

type AccountResetPasswordOk struct{}

The 2FA password was reset successfully.

func (*AccountResetPasswordOk) CRC

func (*AccountResetPasswordOk) ImplementsAccountResetPasswordResult

func (*AccountResetPasswordOk) ImplementsAccountResetPasswordResult()

type AccountResetPasswordParams

type AccountResetPasswordParams struct{}

func (*AccountResetPasswordParams) CRC

type AccountResetPasswordRequestedWait

type AccountResetPasswordRequestedWait struct {
	UntilDate int32
}

You successfully requested a password reset, please wait until the specified date before finalizing the reset.

func (*AccountResetPasswordRequestedWait) CRC

func (*AccountResetPasswordRequestedWait) ImplementsAccountResetPasswordResult

func (*AccountResetPasswordRequestedWait) ImplementsAccountResetPasswordResult()

type AccountResetPasswordResult

type AccountResetPasswordResult interface {
	tl.Object
	ImplementsAccountResetPasswordResult()
}

type AccountResetWallPapersParams

type AccountResetWallPapersParams struct{}

func (*AccountResetWallPapersParams) CRC

type AccountResetWebAuthorizationParams

type AccountResetWebAuthorizationParams struct {
	Hash int64
}

func (*AccountResetWebAuthorizationParams) CRC

type AccountResetWebAuthorizationsParams

type AccountResetWebAuthorizationsParams struct{}

func (*AccountResetWebAuthorizationsParams) CRC

type AccountResolveBusinessChatLinkParams

type AccountResolveBusinessChatLinkParams struct {
	Slug string
}

func (*AccountResolveBusinessChatLinkParams) CRC

type AccountResolvedBusinessChatLinks struct {
	Peer     Peer
	Message  string
	Entities []MessageEntity `tl:"flag:0"`
	Chats    []Chat
	Users    []User
}

func (*AccountResolvedBusinessChatLinks) CRC

func (*AccountResolvedBusinessChatLinks) FlagIndex

type AccountSaveAutoDownloadSettingsParams

type AccountSaveAutoDownloadSettingsParams struct {
	Low      bool `tl:"flag:0,encoded_in_bitflags"`
	High     bool `tl:"flag:1,encoded_in_bitflags"`
	Settings *AutoDownloadSettings
}

func (*AccountSaveAutoDownloadSettingsParams) CRC

func (*AccountSaveAutoDownloadSettingsParams) FlagIndex

type AccountSaveAutoSaveSettingsParams

type AccountSaveAutoSaveSettingsParams struct {
	Users      bool      `tl:"flag:0,encoded_in_bitflags"`
	Chats      bool      `tl:"flag:1,encoded_in_bitflags"`
	Broadcasts bool      `tl:"flag:2,encoded_in_bitflags"`
	Peer       InputPeer `tl:"flag:3"`
	Settings   *AutoSaveSettings
}

func (*AccountSaveAutoSaveSettingsParams) CRC

func (*AccountSaveAutoSaveSettingsParams) FlagIndex

type AccountSaveRingtoneParams

type AccountSaveRingtoneParams struct {
	ID     InputDocument
	Unsave bool
}

func (*AccountSaveRingtoneParams) CRC

type AccountSaveSecureValueParams

type AccountSaveSecureValueParams struct {
	Value          *InputSecureValue
	SecureSecretID int64
}

func (*AccountSaveSecureValueParams) CRC

type AccountSaveThemeParams

type AccountSaveThemeParams struct {
	Theme  InputTheme
	Unsave bool
}

func (*AccountSaveThemeParams) CRC

type AccountSaveWallPaperParams

type AccountSaveWallPaperParams struct {
	Wallpaper InputWallPaper
	Unsave    bool
	Settings  *WallPaperSettings
}

func (*AccountSaveWallPaperParams) CRC

type AccountSavedRingtone

type AccountSavedRingtone interface {
	tl.Object
	ImplementsAccountSavedRingtone()
}

type AccountSavedRingtoneConverted

type AccountSavedRingtoneConverted struct {
	Document Document
}

The notification sound was not in MP3 format and was successfully converted and saved, use the returned Document(https://core.telegram.org/type/Document) to refer to the notification sound from now on

func (*AccountSavedRingtoneConverted) CRC

func (*AccountSavedRingtoneConverted) ImplementsAccountSavedRingtone

func (*AccountSavedRingtoneConverted) ImplementsAccountSavedRingtone()

type AccountSavedRingtoneObj

type AccountSavedRingtoneObj struct{}

The notification sound was already in MP3 format and was saved without any modification

func (*AccountSavedRingtoneObj) CRC

func (*AccountSavedRingtoneObj) ImplementsAccountSavedRingtone

func (*AccountSavedRingtoneObj) ImplementsAccountSavedRingtone()

type AccountSavedRingtones

type AccountSavedRingtones interface {
	tl.Object
	ImplementsAccountSavedRingtones()
}

type AccountSavedRingtonesNotModified

type AccountSavedRingtonesNotModified struct{}

The notification sound list hasn't changed.

func (*AccountSavedRingtonesNotModified) CRC

func (*AccountSavedRingtonesNotModified) ImplementsAccountSavedRingtones

func (*AccountSavedRingtonesNotModified) ImplementsAccountSavedRingtones()

type AccountSavedRingtonesObj

type AccountSavedRingtonesObj struct {
	Hash      int64
	Ringtones []Document
}

A list of saved notification sounds

func (*AccountSavedRingtonesObj) CRC

func (*AccountSavedRingtonesObj) ImplementsAccountSavedRingtones

func (*AccountSavedRingtonesObj) ImplementsAccountSavedRingtones()

type AccountSendChangePhoneCodeParams

type AccountSendChangePhoneCodeParams struct {
	PhoneNumber string
	Settings    *CodeSettings
}

func (*AccountSendChangePhoneCodeParams) CRC

type AccountSendConfirmPhoneCodeParams

type AccountSendConfirmPhoneCodeParams struct {
	Hash     string
	Settings *CodeSettings
}

func (*AccountSendConfirmPhoneCodeParams) CRC

type AccountSendVerifyEmailCodeParams

type AccountSendVerifyEmailCodeParams struct {
	Purpose EmailVerifyPurpose
	Email   string
}

func (*AccountSendVerifyEmailCodeParams) CRC

type AccountSendVerifyPhoneCodeParams

type AccountSendVerifyPhoneCodeParams struct {
	PhoneNumber string
	Settings    *CodeSettings
}

func (*AccountSendVerifyPhoneCodeParams) CRC

type AccountSentEmailCode

type AccountSentEmailCode struct {
	EmailPattern string
	Length       int32
}

The sent email code

func (*AccountSentEmailCode) CRC

type AccountSetAccountTtlParams

type AccountSetAccountTtlParams struct {
	Ttl *AccountDaysTtl
}

func (*AccountSetAccountTtlParams) CRC

type AccountSetAuthorizationTtlParams

type AccountSetAuthorizationTtlParams struct {
	AuthorizationTtlDays int32
}

func (*AccountSetAuthorizationTtlParams) CRC

type AccountSetContactSignUpNotificationParams

type AccountSetContactSignUpNotificationParams struct {
	Silent bool
}

func (*AccountSetContactSignUpNotificationParams) CRC

type AccountSetContentSettingsParams

type AccountSetContentSettingsParams struct {
	SensitiveEnabled bool `tl:"flag:0,encoded_in_bitflags"`
}

func (*AccountSetContentSettingsParams) CRC

func (*AccountSetContentSettingsParams) FlagIndex

func (*AccountSetContentSettingsParams) FlagIndex() int

type AccountSetGlobalPrivacySettingsParams

type AccountSetGlobalPrivacySettingsParams struct {
	Settings *GlobalPrivacySettings
}

func (*AccountSetGlobalPrivacySettingsParams) CRC

type AccountSetPrivacyParams

type AccountSetPrivacyParams struct {
	Key   InputPrivacyKey
	Rules []InputPrivacyRule
}

func (*AccountSetPrivacyParams) CRC

type AccountSetReactionsNotifySettingsParams

type AccountSetReactionsNotifySettingsParams struct {
	Settings *ReactionsNotifySettings
}

func (*AccountSetReactionsNotifySettingsParams) CRC

type AccountTakeout

type AccountTakeout struct {
	ID int64
}

Takeout info

func (*AccountTakeout) CRC

func (*AccountTakeout) CRC() uint32

type AccountThemes

type AccountThemes interface {
	tl.Object
	ImplementsAccountThemes()
}

type AccountThemesNotModified

type AccountThemesNotModified struct{}

No new themes were installed

func (*AccountThemesNotModified) CRC

func (*AccountThemesNotModified) ImplementsAccountThemes

func (*AccountThemesNotModified) ImplementsAccountThemes()

type AccountThemesObj

type AccountThemesObj struct {
	Hash   int64
	Themes []*Theme
}

Installed themes

func (*AccountThemesObj) CRC

func (*AccountThemesObj) CRC() uint32

func (*AccountThemesObj) ImplementsAccountThemes

func (*AccountThemesObj) ImplementsAccountThemes()

type AccountTmpPassword

type AccountTmpPassword struct {
	TmpPassword []byte
	ValidUntil  int32
}

Temporary payment password

func (*AccountTmpPassword) CRC

func (*AccountTmpPassword) CRC() uint32

type AccountToggleConnectedBotPausedParams

type AccountToggleConnectedBotPausedParams struct {
	Peer   InputPeer
	Paused bool
}

func (*AccountToggleConnectedBotPausedParams) CRC

type AccountToggleSponsoredMessagesParams

type AccountToggleSponsoredMessagesParams struct {
	Enabled bool
}

func (*AccountToggleSponsoredMessagesParams) CRC

type AccountToggleUsernameParams

type AccountToggleUsernameParams struct {
	Username string
	Active   bool
}

func (*AccountToggleUsernameParams) CRC

type AccountUnregisterDeviceParams

type AccountUnregisterDeviceParams struct {
	TokenType int32
	Token     string
	OtherUids []int64
}

func (*AccountUnregisterDeviceParams) CRC

type AccountUpdateBirthdayParams

type AccountUpdateBirthdayParams struct {
	Birthday *Birthday `tl:"flag:0"`
}

func (*AccountUpdateBirthdayParams) CRC

func (*AccountUpdateBirthdayParams) FlagIndex

func (*AccountUpdateBirthdayParams) FlagIndex() int

type AccountUpdateBusinessAwayMessageParams

type AccountUpdateBusinessAwayMessageParams struct {
	Message *InputBusinessAwayMessage `tl:"flag:0"`
}

func (*AccountUpdateBusinessAwayMessageParams) CRC

func (*AccountUpdateBusinessAwayMessageParams) FlagIndex

type AccountUpdateBusinessGreetingMessageParams

type AccountUpdateBusinessGreetingMessageParams struct {
	Message *InputBusinessGreetingMessage `tl:"flag:0"`
}

func (*AccountUpdateBusinessGreetingMessageParams) CRC

func (*AccountUpdateBusinessGreetingMessageParams) FlagIndex

type AccountUpdateBusinessIntroParams

type AccountUpdateBusinessIntroParams struct {
	Intro *InputBusinessIntro `tl:"flag:0"`
}

func (*AccountUpdateBusinessIntroParams) CRC

func (*AccountUpdateBusinessIntroParams) FlagIndex

type AccountUpdateBusinessLocationParams

type AccountUpdateBusinessLocationParams struct {
	GeoPoint InputGeoPoint `tl:"flag:1"`
	Address  string        `tl:"flag:0"`
}

func (*AccountUpdateBusinessLocationParams) CRC

func (*AccountUpdateBusinessLocationParams) FlagIndex

type AccountUpdateBusinessWorkHoursParams

type AccountUpdateBusinessWorkHoursParams struct {
	BusinessWorkHours *BusinessWorkHours `tl:"flag:0"`
}

func (*AccountUpdateBusinessWorkHoursParams) CRC

func (*AccountUpdateBusinessWorkHoursParams) FlagIndex

type AccountUpdateColorParams

type AccountUpdateColorParams struct {
	ForProfile        bool  `tl:"flag:1,encoded_in_bitflags"`
	Color             int32 `tl:"flag:2"`
	BackgroundEmojiID int64 `tl:"flag:0"`
}

func (*AccountUpdateColorParams) CRC

func (*AccountUpdateColorParams) FlagIndex

func (*AccountUpdateColorParams) FlagIndex() int

type AccountUpdateConnectedBotParams

type AccountUpdateConnectedBotParams struct {
	CanReply   bool `tl:"flag:0,encoded_in_bitflags"`
	Deleted    bool `tl:"flag:1,encoded_in_bitflags"`
	Bot        InputUser
	Recipients *InputBusinessBotRecipients
}

func (*AccountUpdateConnectedBotParams) CRC

func (*AccountUpdateConnectedBotParams) FlagIndex

func (*AccountUpdateConnectedBotParams) FlagIndex() int

type AccountUpdateDeviceLockedParams

type AccountUpdateDeviceLockedParams struct {
	Period int32
}

func (*AccountUpdateDeviceLockedParams) CRC

type AccountUpdateEmojiStatusParams

type AccountUpdateEmojiStatusParams struct {
	EmojiStatus EmojiStatus
}

func (*AccountUpdateEmojiStatusParams) CRC

type AccountUpdateNotifySettingsParams

type AccountUpdateNotifySettingsParams struct {
	Peer     InputNotifyPeer
	Settings *InputPeerNotifySettings
}

func (*AccountUpdateNotifySettingsParams) CRC

type AccountUpdatePasswordSettingsParams

type AccountUpdatePasswordSettingsParams struct {
	Password    InputCheckPasswordSRP
	NewSettings *AccountPasswordInputSettings
}

func (*AccountUpdatePasswordSettingsParams) CRC

type AccountUpdatePersonalChannelParams

type AccountUpdatePersonalChannelParams struct {
	Channel InputChannel
}

func (*AccountUpdatePersonalChannelParams) CRC

type AccountUpdateProfileParams

type AccountUpdateProfileParams struct {
	FirstName string `tl:"flag:0"`
	LastName  string `tl:"flag:1"`
	About     string `tl:"flag:2"`
}

func (*AccountUpdateProfileParams) CRC

func (*AccountUpdateProfileParams) FlagIndex

func (*AccountUpdateProfileParams) FlagIndex() int

type AccountUpdateStatusParams

type AccountUpdateStatusParams struct {
	Offline bool
}

func (*AccountUpdateStatusParams) CRC

type AccountUpdateThemeParams

type AccountUpdateThemeParams struct {
	Format   string
	Theme    InputTheme
	Slug     string                `tl:"flag:0"`
	Title    string                `tl:"flag:1"`
	Document InputDocument         `tl:"flag:2"`
	Settings []*InputThemeSettings `tl:"flag:3"`
}

func (*AccountUpdateThemeParams) CRC

func (*AccountUpdateThemeParams) FlagIndex

func (*AccountUpdateThemeParams) FlagIndex() int

type AccountUpdateUsernameParams

type AccountUpdateUsernameParams struct {
	Username string
}

func (*AccountUpdateUsernameParams) CRC

type AccountUploadRingtoneParams

type AccountUploadRingtoneParams struct {
	File     InputFile
	FileName string
	MimeType string
}

func (*AccountUploadRingtoneParams) CRC

type AccountUploadThemeParams

type AccountUploadThemeParams struct {
	File     InputFile
	Thumb    InputFile `tl:"flag:0"`
	FileName string
	MimeType string
}

func (*AccountUploadThemeParams) CRC

func (*AccountUploadThemeParams) FlagIndex

func (*AccountUploadThemeParams) FlagIndex() int

type AccountUploadWallPaperParams

type AccountUploadWallPaperParams struct {
	ForChat  bool `tl:"flag:0,encoded_in_bitflags"`
	File     InputFile
	MimeType string
	Settings *WallPaperSettings
}

func (*AccountUploadWallPaperParams) CRC

func (*AccountUploadWallPaperParams) FlagIndex

func (*AccountUploadWallPaperParams) FlagIndex() int

type AccountVerifyEmailParams

type AccountVerifyEmailParams struct {
	Purpose      EmailVerifyPurpose
	Verification EmailVerification
}

func (*AccountVerifyEmailParams) CRC

type AccountVerifyPhoneParams

type AccountVerifyPhoneParams struct {
	PhoneNumber   string
	PhoneCodeHash string
	PhoneCode     string
}

func (*AccountVerifyPhoneParams) CRC

type AccountWallPapers

type AccountWallPapers interface {
	tl.Object
	ImplementsAccountWallPapers()
}

type AccountWallPapersNotModified

type AccountWallPapersNotModified struct{}

No new [wallpapers](https://core.telegram.org/api/wallpapers) were found

func (*AccountWallPapersNotModified) CRC

func (*AccountWallPapersNotModified) ImplementsAccountWallPapers

func (*AccountWallPapersNotModified) ImplementsAccountWallPapers()

type AccountWallPapersObj

type AccountWallPapersObj struct {
	Hash       int64
	Wallpapers []WallPaper
}

Installed [wallpapers](https://core.telegram.org/api/wallpapers)

func (*AccountWallPapersObj) CRC

func (*AccountWallPapersObj) ImplementsAccountWallPapers

func (*AccountWallPapersObj) ImplementsAccountWallPapers()

type AccountWebAuthorizations

type AccountWebAuthorizations struct {
	Authorizations []*WebAuthorization
	Users          []User
}

Web authorizations

func (*AccountWebAuthorizations) CRC

type ActionResult

type ActionResult struct {
	Peer   InputPeer `json:"peer,omitempty"`
	Client *Client   `json:"client,omitempty"`
}

func (*ActionResult) Cancel

func (a *ActionResult) Cancel() bool

Cancel the pointed Action, Returns true if the action was cancelled

type AdminOptions

type AdminOptions struct {
	IsAdmin bool             `json:"is_admin,omitempty"`
	Rights  *ChatAdminRights `json:"rights,omitempty"`
	Rank    string           `json:"rank,omitempty"`
}

type Album

type Album struct {
	Client    *Client
	GroupedID int64
	Messages  []*NewMessage
}

Album Type for MediaGroup

func (*Album) Delete

func (a *Album) Delete() (*MessagesAffectedMessages, error)

func (*Album) Download

func (a *Album) Download(opts ...*DownloadOptions) ([]string, error)

func (*Album) Edit

func (a *Album) Edit(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

func (*Album) ForwardTo

func (a *Album) ForwardTo(PeerID interface{}, Opts ...*ForwardOptions) ([]NewMessage, error)

func (*Album) GetReplyMessage

func (a *Album) GetReplyMessage() (*NewMessage, error)

func (*Album) IsForward

func (a *Album) IsForward() bool

func (*Album) IsReply

func (a *Album) IsReply() bool

func (*Album) MarkRead

func (a *Album) MarkRead() error

func (*Album) Marshal

func (a *Album) Marshal(nointent ...bool) string

func (*Album) Pin

func (a *Album) Pin(Opts ...*PinOptions) error

func (*Album) Reply

func (a *Album) Reply(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

func (*Album) ReplyMedia

func (a *Album) ReplyMedia(Media interface{}, Opts ...MediaOptions) (*NewMessage, error)

func (*Album) Respond

func (a *Album) Respond(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

func (*Album) RespondMedia

func (a *Album) RespondMedia(Media interface{}, Opts ...MediaOptions) (*NewMessage, error)

func (*Album) Unpin

func (a *Album) Unpin() error

type AlbumHandler

type AlbumHandler func(m *Album) error

type ArticleOptions

type ArticleOptions struct {
	ID                    string                             `json:"id,omitempty"`
	Title                 string                             `json:"title,omitempty"`
	Description           string                             `json:"description,omitempty"`
	ExcludeMedia          bool                               `json:"exclude_media,omitempty"`
	Thumb                 InputWebDocument                   `json:"thumb,omitempty"`
	Content               InputWebDocument                   `json:"content,omitempty"`
	LinkPreview           bool                               `json:"link_preview,omitempty"`
	ReplyMarkup           ReplyMarkup                        `json:"reply_markup,omitempty"`
	Entities              []MessageEntity                    `json:"entities,omitempty"`
	ParseMode             string                             `json:"parse_mode,omitempty"`
	Caption               string                             `json:"caption,omitempty"`
	Venue                 *InputBotInlineMessageMediaVenue   `json:"venue,omitempty"`
	Location              *InputBotInlineMessageMediaGeo     `json:"location,omitempty"`
	Contact               *InputBotInlineMessageMediaContact `json:"contact,omitempty"`
	Invoice               *InputBotInlineMessageMediaInvoice `json:"invoice,omitempty"`
	BuissnessConnectionId string                             `json:"buissness_connection_id,omitempty"`
}

type AttachMenuBot

type AttachMenuBot struct {
	Inactive                 bool `tl:"flag:0,encoded_in_bitflags"`
	HasSettings              bool `tl:"flag:1,encoded_in_bitflags"`
	RequestWriteAccess       bool `tl:"flag:2,encoded_in_bitflags"`
	ShowInAttachMenu         bool `tl:"flag:3,encoded_in_bitflags"`
	ShowInSideMenu           bool `tl:"flag:4,encoded_in_bitflags"`
	SideMenuDisclaimerNeeded bool `tl:"flag:5,encoded_in_bitflags"`
	BotID                    int64
	ShortName                string
	PeerTypes                []AttachMenuPeerType `tl:"flag:3"`
	Icons                    []*AttachMenuBotIcon
}

Represents a [bot mini app that can be launched from the attachment/side menu »](https://core.telegram.org/api/bots/attach)

func (*AttachMenuBot) CRC

func (*AttachMenuBot) CRC() uint32

func (*AttachMenuBot) FlagIndex

func (*AttachMenuBot) FlagIndex() int

type AttachMenuBotIcon

type AttachMenuBotIcon struct {
	Name   string
	Icon   Document
	Colors []*AttachMenuBotIconColor `tl:"flag:0"`
}

Represents an attachment menu icon for [bot mini apps »](https://core.telegram.org/api/bots/attach)

func (*AttachMenuBotIcon) CRC

func (*AttachMenuBotIcon) CRC() uint32

func (*AttachMenuBotIcon) FlagIndex

func (*AttachMenuBotIcon) FlagIndex() int

type AttachMenuBotIconColor

type AttachMenuBotIconColor struct {
	Name  string
	Color int32
}

Represents an attachment menu icon color for [bot mini apps »](https://core.telegram.org/api/bots/attach)

func (*AttachMenuBotIconColor) CRC

type AttachMenuBots

type AttachMenuBots interface {
	tl.Object
	ImplementsAttachMenuBots()
}

type AttachMenuBotsBot

type AttachMenuBotsBot struct {
	Bot   *AttachMenuBot
	Users []User
}

Represents a [bot mini app that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach)

func (*AttachMenuBotsBot) CRC

func (*AttachMenuBotsBot) CRC() uint32

type AttachMenuBotsNotModified

type AttachMenuBotsNotModified struct{}

The list of bot mini apps hasn't changed

func (*AttachMenuBotsNotModified) CRC

func (*AttachMenuBotsNotModified) ImplementsAttachMenuBots

func (*AttachMenuBotsNotModified) ImplementsAttachMenuBots()

type AttachMenuBotsObj

type AttachMenuBotsObj struct {
	Hash  int64
	Bots  []*AttachMenuBot
	Users []User
}

Represents a list of [bot mini apps that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach)

func (*AttachMenuBotsObj) CRC

func (*AttachMenuBotsObj) CRC() uint32

func (*AttachMenuBotsObj) ImplementsAttachMenuBots

func (*AttachMenuBotsObj) ImplementsAttachMenuBots()

type AttachMenuPeerType

type AttachMenuPeerType uint32
const (
	AttachMenuPeerTypeBotPm     AttachMenuPeerType = 0xc32bfa1a
	AttachMenuPeerTypeBroadcast AttachMenuPeerType = 0x7bfbdefc
	AttachMenuPeerTypeChat      AttachMenuPeerType = 0x509113f
	AttachMenuPeerTypePm        AttachMenuPeerType = 0xf146d31f
	AttachMenuPeerTypeSameBotPm AttachMenuPeerType = 0x7d6be90e
)

func (AttachMenuPeerType) CRC

func (e AttachMenuPeerType) CRC() uint32

func (AttachMenuPeerType) String

func (e AttachMenuPeerType) String() string

type AuthAcceptLoginTokenParams

type AuthAcceptLoginTokenParams struct {
	Token []byte
}

func (*AuthAcceptLoginTokenParams) CRC

type AuthAuthorization

type AuthAuthorization interface {
	tl.Object
	ImplementsAuthAuthorization()
}

type AuthAuthorizationObj

type AuthAuthorizationObj struct {
	SetupPasswordRequired bool   `tl:"flag:1,encoded_in_bitflags"`
	OtherwiseReloginDays  int32  `tl:"flag:1"`
	TmpSessions           int32  `tl:"flag:0"`
	FutureAuthToken       []byte `tl:"flag:2"`
	User                  User
}

Contains user authorization info.

func (*AuthAuthorizationObj) CRC

func (*AuthAuthorizationObj) FlagIndex

func (*AuthAuthorizationObj) FlagIndex() int

func (*AuthAuthorizationObj) ImplementsAuthAuthorization

func (*AuthAuthorizationObj) ImplementsAuthAuthorization()

type AuthAuthorizationSignUpRequired

type AuthAuthorizationSignUpRequired struct {
	TermsOfService *HelpTermsOfService `tl:"flag:0"`
}

An account with this phone number doesn't exist on telegram: the user has to [enter basic information and sign up](https://core.telegram.org/api/auth)

func (*AuthAuthorizationSignUpRequired) CRC

func (*AuthAuthorizationSignUpRequired) FlagIndex

func (*AuthAuthorizationSignUpRequired) FlagIndex() int

func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization

func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization()

type AuthBindTempAuthKeyParams

type AuthBindTempAuthKeyParams struct {
	PermAuthKeyID    int64
	Nonce            int64
	ExpiresAt        int32
	EncryptedMessage []byte
}

func (*AuthBindTempAuthKeyParams) CRC

type AuthCancelCodeParams

type AuthCancelCodeParams struct {
	PhoneNumber   string
	PhoneCodeHash string
}

func (*AuthCancelCodeParams) CRC

type AuthCheckPasswordParams

type AuthCheckPasswordParams struct {
	Password InputCheckPasswordSRP
}

func (*AuthCheckPasswordParams) CRC

type AuthCheckRecoveryPasswordParams

type AuthCheckRecoveryPasswordParams struct {
	Code string
}

func (*AuthCheckRecoveryPasswordParams) CRC

type AuthCodeType

type AuthCodeType uint32
const (
	AuthCodeTypeCall        AuthCodeType = 0x741cd3e3
	AuthCodeTypeFlashCall   AuthCodeType = 0x226ccefb
	AuthCodeTypeFragmentSms AuthCodeType = 0x6ed998c
	AuthCodeTypeMissedCall  AuthCodeType = 0xd61ad6ee
	AuthCodeTypeSms         AuthCodeType = 0x72a3158c
)

func (AuthCodeType) CRC

func (e AuthCodeType) CRC() uint32

func (AuthCodeType) String

func (e AuthCodeType) String() string

type AuthDropTempAuthKeysParams

type AuthDropTempAuthKeysParams struct {
	ExceptAuthKeys []int64
}

func (*AuthDropTempAuthKeysParams) CRC

type AuthExportAuthorizationParams

type AuthExportAuthorizationParams struct {
	DcID int32
}

func (*AuthExportAuthorizationParams) CRC

type AuthExportLoginTokenParams

type AuthExportLoginTokenParams struct {
	APIID     int32
	APIHash   string
	ExceptIds []int64
}

func (*AuthExportLoginTokenParams) CRC

type AuthExportedAuthorization

type AuthExportedAuthorization struct {
	ID    int64
	Bytes []byte
}

Data for copying of authorization between data centers.

func (*AuthExportedAuthorization) CRC

type AuthImportAuthorizationParams

type AuthImportAuthorizationParams struct {
	ID    int64
	Bytes []byte
}

func (*AuthImportAuthorizationParams) CRC

type AuthImportBotAuthorizationParams

type AuthImportBotAuthorizationParams struct {
	Flags        int32
	APIID        int32
	APIHash      string
	BotAuthToken string
}

func (*AuthImportBotAuthorizationParams) CRC

type AuthImportLoginTokenParams

type AuthImportLoginTokenParams struct {
	Token []byte
}

func (*AuthImportLoginTokenParams) CRC

type AuthImportWebTokenAuthorizationParams

type AuthImportWebTokenAuthorizationParams struct {
	APIID        int32
	APIHash      string
	WebAuthToken string
}

func (*AuthImportWebTokenAuthorizationParams) CRC

type AuthLogOutParams

type AuthLogOutParams struct{}

func (*AuthLogOutParams) CRC

func (*AuthLogOutParams) CRC() uint32

type AuthLoggedOut

type AuthLoggedOut struct {
	FutureAuthToken []byte `tl:"flag:0"`
}

[Future auth token »](https://core.telegram.org/api/auth#future-auth-tokens) to be used on subsequent authorizations

func (*AuthLoggedOut) CRC

func (*AuthLoggedOut) CRC() uint32

func (*AuthLoggedOut) FlagIndex

func (*AuthLoggedOut) FlagIndex() int

type AuthLoginToken

type AuthLoginToken interface {
	tl.Object
	ImplementsAuthLoginToken()
}

type AuthLoginTokenMigrateTo

type AuthLoginTokenMigrateTo struct {
	DcID  int32
	Token []byte
}

Repeat the query to the specified DC

func (*AuthLoginTokenMigrateTo) CRC

func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken

func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken()

type AuthLoginTokenObj

type AuthLoginTokenObj struct {
	Expires int32
	Token   []byte
}

Login token (for [QR code login](https://core.telegram.org/api/qr-login))

func (*AuthLoginTokenObj) CRC

func (*AuthLoginTokenObj) CRC() uint32

func (*AuthLoginTokenObj) ImplementsAuthLoginToken

func (*AuthLoginTokenObj) ImplementsAuthLoginToken()

type AuthLoginTokenSuccess

type AuthLoginTokenSuccess struct {
	Authorization AuthAuthorization
}

Login via token (QR code) succeeded!

func (*AuthLoginTokenSuccess) CRC

func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken

func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken()

type AuthPasswordRecovery

type AuthPasswordRecovery struct {
	EmailPattern string
}

Recovery info of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).

func (*AuthPasswordRecovery) CRC

type AuthRecoverPasswordParams

type AuthRecoverPasswordParams struct {
	Code        string
	NewSettings *AccountPasswordInputSettings `tl:"flag:0"`
}

func (*AuthRecoverPasswordParams) CRC

func (*AuthRecoverPasswordParams) FlagIndex

func (*AuthRecoverPasswordParams) FlagIndex() int

type AuthReportMissingCodeParams

type AuthReportMissingCodeParams struct {
	PhoneNumber   string
	PhoneCodeHash string
	Mnc           string
}

func (*AuthReportMissingCodeParams) CRC

type AuthRequestFirebaseSmsParams

type AuthRequestFirebaseSmsParams struct {
	PhoneNumber        string
	PhoneCodeHash      string
	SafetyNetToken     string `tl:"flag:0"`
	PlayIntegrityToken string `tl:"flag:2"`
	IosPushSecret      string `tl:"flag:1"`
}

func (*AuthRequestFirebaseSmsParams) CRC

func (*AuthRequestFirebaseSmsParams) FlagIndex

func (*AuthRequestFirebaseSmsParams) FlagIndex() int

type AuthRequestPasswordRecoveryParams

type AuthRequestPasswordRecoveryParams struct{}

func (*AuthRequestPasswordRecoveryParams) CRC

type AuthResendCodeParams

type AuthResendCodeParams struct {
	PhoneNumber   string
	PhoneCodeHash string
	Reason        string `tl:"flag:0"`
}

func (*AuthResendCodeParams) CRC

func (*AuthResendCodeParams) FlagIndex

func (*AuthResendCodeParams) FlagIndex() int

type AuthResetAuthorizationsParams

type AuthResetAuthorizationsParams struct{}

func (*AuthResetAuthorizationsParams) CRC

type AuthResetLoginEmailParams

type AuthResetLoginEmailParams struct {
	PhoneNumber   string
	PhoneCodeHash string
}

func (*AuthResetLoginEmailParams) CRC

type AuthSendCodeParams

type AuthSendCodeParams struct {
	PhoneNumber string
	APIID       int32
	APIHash     string
	Settings    *CodeSettings
}

func (*AuthSendCodeParams) CRC

func (*AuthSendCodeParams) CRC() uint32

type AuthSentCode

type AuthSentCode interface {
	tl.Object
	ImplementsAuthSentCode()
}

type AuthSentCodeObj

type AuthSentCodeObj struct {
	Type          AuthSentCodeType
	PhoneCodeHash string
	NextType      AuthCodeType `tl:"flag:1"`
	Timeout       int32        `tl:"flag:2"`
}

Contains info about a sent verification code.

func (*AuthSentCodeObj) CRC

func (*AuthSentCodeObj) CRC() uint32

func (*AuthSentCodeObj) FlagIndex

func (*AuthSentCodeObj) FlagIndex() int

func (*AuthSentCodeObj) ImplementsAuthSentCode

func (*AuthSentCodeObj) ImplementsAuthSentCode()

type AuthSentCodeSuccess

type AuthSentCodeSuccess struct {
	Authorization AuthAuthorization
}

The user successfully authorized using [future auth tokens](https://core.telegram.org/api/auth#future-auth-tokens)

func (*AuthSentCodeSuccess) CRC

func (*AuthSentCodeSuccess) CRC() uint32

func (*AuthSentCodeSuccess) ImplementsAuthSentCode

func (*AuthSentCodeSuccess) ImplementsAuthSentCode()

type AuthSentCodeType

type AuthSentCodeType interface {
	tl.Object
	ImplementsAuthSentCodeType()
}

type AuthSentCodeTypeApp

type AuthSentCodeTypeApp struct {
	Length int32
}

The code was sent through the telegram app

func (*AuthSentCodeTypeApp) CRC

func (*AuthSentCodeTypeApp) CRC() uint32

func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType()

type AuthSentCodeTypeCall

type AuthSentCodeTypeCall struct {
	Length int32
}

The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.

func (*AuthSentCodeTypeCall) CRC

func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType()

type AuthSentCodeTypeEmailCode

type AuthSentCodeTypeEmailCode struct {
	AppleSigninAllowed   bool `tl:"flag:0,encoded_in_bitflags"`
	GoogleSigninAllowed  bool `tl:"flag:1,encoded_in_bitflags"`
	EmailPattern         string
	Length               int32
	ResetAvailablePeriod int32 `tl:"flag:3"`
	ResetPendingDate     int32 `tl:"flag:4"`
}

The code was sent via the [previously configured login email »](https://core.telegram.org/api/auth#email-verification)

func (*AuthSentCodeTypeEmailCode) CRC

func (*AuthSentCodeTypeEmailCode) FlagIndex

func (*AuthSentCodeTypeEmailCode) FlagIndex() int

func (*AuthSentCodeTypeEmailCode) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeEmailCode) ImplementsAuthSentCodeType()

type AuthSentCodeTypeFirebaseSms

type AuthSentCodeTypeFirebaseSms struct {
	Nonce                  []byte `tl:"flag:0"`
	PlayIntegrityProjectID int64  `tl:"flag:2"`
	PlayIntegrityNonce     []byte `tl:"flag:2"`
	Receipt                string `tl:"flag:1"`
	PushTimeout            int32  `tl:"flag:1"`
	Length                 int32
}

An authentication code should be delivered via SMS after Firebase attestation, as described in the [auth documentation »](https://core.telegram.org/api/auth).

func (*AuthSentCodeTypeFirebaseSms) CRC

func (*AuthSentCodeTypeFirebaseSms) FlagIndex

func (*AuthSentCodeTypeFirebaseSms) FlagIndex() int

func (*AuthSentCodeTypeFirebaseSms) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeFirebaseSms) ImplementsAuthSentCodeType()

type AuthSentCodeTypeFlashCall

type AuthSentCodeTypeFlashCall struct {
	Pattern string
}

The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.

func (*AuthSentCodeTypeFlashCall) CRC

func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType()

type AuthSentCodeTypeFragmentSms

type AuthSentCodeTypeFragmentSms struct {
	URL    string
	Length int32
}

The code was delivered via [fragment.com](https://core.telegram.orghttps://fragment.com).

func (*AuthSentCodeTypeFragmentSms) CRC

func (*AuthSentCodeTypeFragmentSms) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeFragmentSms) ImplementsAuthSentCodeType()

type AuthSentCodeTypeMissedCall

type AuthSentCodeTypeMissedCall struct {
	Prefix string
	Length int32
}

The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.

func (*AuthSentCodeTypeMissedCall) CRC

func (*AuthSentCodeTypeMissedCall) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeMissedCall) ImplementsAuthSentCodeType()

type AuthSentCodeTypeSetUpEmailRequired

type AuthSentCodeTypeSetUpEmailRequired struct {
	AppleSigninAllowed  bool `tl:"flag:0,encoded_in_bitflags"`
	GoogleSigninAllowed bool `tl:"flag:1,encoded_in_bitflags"`
}

The user should add and verify an email address in order to login as described [here »](https://core.telegram.org/api/auth#email-verification).

func (*AuthSentCodeTypeSetUpEmailRequired) CRC

func (*AuthSentCodeTypeSetUpEmailRequired) FlagIndex

func (*AuthSentCodeTypeSetUpEmailRequired) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeSetUpEmailRequired) ImplementsAuthSentCodeType()

type AuthSentCodeTypeSms

type AuthSentCodeTypeSms struct {
	Length int32
}

The code was sent via SMS

func (*AuthSentCodeTypeSms) CRC

func (*AuthSentCodeTypeSms) CRC() uint32

func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType()

type AuthSentCodeTypeSmsPhrase

type AuthSentCodeTypeSmsPhrase struct {
	Beginning string `tl:"flag:0"`
}

func (*AuthSentCodeTypeSmsPhrase) CRC

func (*AuthSentCodeTypeSmsPhrase) FlagIndex

func (*AuthSentCodeTypeSmsPhrase) FlagIndex() int

func (*AuthSentCodeTypeSmsPhrase) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeSmsPhrase) ImplementsAuthSentCodeType()

type AuthSentCodeTypeSmsWord

type AuthSentCodeTypeSmsWord struct {
	Beginning string `tl:"flag:0"`
}

func (*AuthSentCodeTypeSmsWord) CRC

func (*AuthSentCodeTypeSmsWord) FlagIndex

func (*AuthSentCodeTypeSmsWord) FlagIndex() int

func (*AuthSentCodeTypeSmsWord) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeSmsWord) ImplementsAuthSentCodeType()

type AuthSignInParams

type AuthSignInParams struct {
	PhoneNumber       string
	PhoneCodeHash     string
	PhoneCode         string            `tl:"flag:0"`
	EmailVerification EmailVerification `tl:"flag:1"`
}

func (*AuthSignInParams) CRC

func (*AuthSignInParams) CRC() uint32

func (*AuthSignInParams) FlagIndex

func (*AuthSignInParams) FlagIndex() int

type AuthSignUpParams

type AuthSignUpParams struct {
	NoJoinedNotifications bool `tl:"flag:0,encoded_in_bitflags"`
	PhoneNumber           string
	PhoneCodeHash         string
	FirstName             string
	LastName              string
}

func (*AuthSignUpParams) CRC

func (*AuthSignUpParams) CRC() uint32

func (*AuthSignUpParams) FlagIndex

func (*AuthSignUpParams) FlagIndex() int

type Authorization

type Authorization struct {
	Current                   bool `tl:"flag:0,encoded_in_bitflags"`
	OfficialApp               bool `tl:"flag:1,encoded_in_bitflags"`
	PasswordPending           bool `tl:"flag:2,encoded_in_bitflags"`
	EncryptedRequestsDisabled bool `tl:"flag:3,encoded_in_bitflags"`
	CallRequestsDisabled      bool `tl:"flag:4,encoded_in_bitflags"`
	Unconfirmed               bool `tl:"flag:5,encoded_in_bitflags"`
	Hash                      int64
	DeviceModel               string
	Platform                  string
	SystemVersion             string
	APIID                     int32
	AppName                   string
	AppVersion                string
	DateCreated               int32
	DateActive                int32
	Ip                        string
	Country                   string
	Region                    string
}

Logged-in session

func (*Authorization) CRC

func (*Authorization) CRC() uint32

func (*Authorization) FlagIndex

func (*Authorization) FlagIndex() int

type AutoDownloadSettings

type AutoDownloadSettings struct {
	Disabled                      bool `tl:"flag:0,encoded_in_bitflags"`
	VideoPreloadLarge             bool `tl:"flag:1,encoded_in_bitflags"`
	AudioPreloadNext              bool `tl:"flag:2,encoded_in_bitflags"`
	PhonecallsLessData            bool `tl:"flag:3,encoded_in_bitflags"`
	StoriesPreload                bool `tl:"flag:4,encoded_in_bitflags"`
	PhotoSizeMax                  int32
	VideoSizeMax                  int64
	FileSizeMax                   int64
	VideoUploadMaxbitrate         int32
	SmallQueueActiveOperationsMax int32
	LargeQueueActiveOperationsMax int32
}

Autodownload settings

func (*AutoDownloadSettings) CRC

func (*AutoDownloadSettings) FlagIndex

func (*AutoDownloadSettings) FlagIndex() int

type AutoSaveException

type AutoSaveException struct {
	Peer     Peer
	Settings *AutoSaveSettings
}

Peer-specific media autosave settings

func (*AutoSaveException) CRC

func (*AutoSaveException) CRC() uint32

type AutoSaveSettings

type AutoSaveSettings struct {
	Photos       bool  `tl:"flag:0,encoded_in_bitflags"`
	Videos       bool  `tl:"flag:1,encoded_in_bitflags"`
	VideoMaxSize int64 `tl:"flag:2"`
}

Media autosave settings

func (*AutoSaveSettings) CRC

func (*AutoSaveSettings) CRC() uint32

func (*AutoSaveSettings) FlagIndex

func (*AutoSaveSettings) FlagIndex() int

type AvailableEffect

type AvailableEffect struct {
	PremiumRequired   bool `tl:"flag:2,encoded_in_bitflags"`
	ID                int64
	Emoticon          string
	StaticIconID      int64 `tl:"flag:0"`
	EffectStickerID   int64
	EffectAnimationID int64 `tl:"flag:1"`
}

func (*AvailableEffect) CRC

func (*AvailableEffect) CRC() uint32

func (*AvailableEffect) FlagIndex

func (*AvailableEffect) FlagIndex() int

type AvailableReaction

type AvailableReaction struct {
	Inactive          bool `tl:"flag:0,encoded_in_bitflags"`
	Premium           bool `tl:"flag:2,encoded_in_bitflags"`
	Reaction          string
	Title             string
	StaticIcon        Document
	AppearAnimation   Document
	SelectAnimation   Document
	ActivateAnimation Document
	EffectAnimation   Document
	AroundAnimation   Document `tl:"flag:1"`
	CenterIcon        Document `tl:"flag:1"`
}

Animations associated with a message reaction

func (*AvailableReaction) CRC

func (*AvailableReaction) CRC() uint32

func (*AvailableReaction) FlagIndex

func (*AvailableReaction) FlagIndex() int

type BankCardOpenURL

type BankCardOpenURL struct {
	URL  string
	Name string
}

Credit card info URL provided by the bank

func (*BankCardOpenURL) CRC

func (*BankCardOpenURL) CRC() uint32

type BannedOptions

type BannedOptions struct {
	Ban    bool              `json:"ban,omitempty"`
	Unban  bool              `json:"unban,omitempty"`
	Mute   bool              `json:"mute,omitempty"`
	Unmute bool              `json:"unmute,omitempty"`
	Rights *ChatBannedRights `json:"rights,omitempty"`
	Revoke bool              `json:"revoke,omitempty"`
}

type BaseTheme

type BaseTheme uint32
const (
	BaseThemeArctic  BaseTheme = 0x5b11125a
	BaseThemeClassic BaseTheme = 0xc3a12462
	BaseThemeDay     BaseTheme = 0xfbd81688
	BaseThemeNight   BaseTheme = 0xb7b31ea8
	BaseThemeTinted  BaseTheme = 0x6d5f77ee
)

func (BaseTheme) CRC

func (e BaseTheme) CRC() uint32

func (BaseTheme) String

func (e BaseTheme) String() string

type Birthday

type Birthday struct {
	Day   int32
	Month int32
	Year  int32 `tl:"flag:0"`
}

func (*Birthday) CRC

func (*Birthday) CRC() uint32

func (*Birthday) FlagIndex

func (*Birthday) FlagIndex() int

type Boost

type Boost struct {
	Gift          bool `tl:"flag:1,encoded_in_bitflags"`
	Giveaway      bool `tl:"flag:2,encoded_in_bitflags"`
	Unclaimed     bool `tl:"flag:3,encoded_in_bitflags"`
	ID            string
	UserID        int64 `tl:"flag:0"`
	GiveawayMsgID int32 `tl:"flag:2"`
	Date          int32
	Expires       int32
	UsedGiftSlug  string `tl:"flag:4"`
	Multiplier    int32  `tl:"flag:5"`
}

Info about one or more [boosts](https://core.telegram.org/api/boost) applied by a specific user.

func (*Boost) CRC

func (*Boost) CRC() uint32

func (*Boost) FlagIndex

func (*Boost) FlagIndex() int

type BotApp

type BotApp interface {
	tl.Object
	ImplementsBotApp()
}

type BotAppNotModified

type BotAppNotModified struct{}

Bot app info hasn't changed.

func (*BotAppNotModified) CRC

func (*BotAppNotModified) CRC() uint32

func (*BotAppNotModified) ImplementsBotApp

func (*BotAppNotModified) ImplementsBotApp()

type BotAppObj

type BotAppObj struct {
	ID          int64
	AccessHash  int64
	ShortName   string
	Title       string
	Description string
	Photo       Photo
	Document    Document `tl:"flag:0"`
	Hash        int64
}

Contains information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps).

func (*BotAppObj) CRC

func (*BotAppObj) CRC() uint32

func (*BotAppObj) FlagIndex

func (*BotAppObj) FlagIndex() int

func (*BotAppObj) ImplementsBotApp

func (*BotAppObj) ImplementsBotApp()

type BotBusinessConnection

type BotBusinessConnection struct {
	CanReply     bool `tl:"flag:0,encoded_in_bitflags"`
	Disabled     bool `tl:"flag:1,encoded_in_bitflags"`
	ConnectionID string
	UserID       int64
	DcID         int32
	Date         int32
}

func (*BotBusinessConnection) CRC

func (*BotBusinessConnection) FlagIndex

func (*BotBusinessConnection) FlagIndex() int

type BotCommand

type BotCommand struct {
	Command     string
	Description string
}

Describes a bot command that can be used in a chat

func (*BotCommand) CRC

func (*BotCommand) CRC() uint32

type BotCommandScope

type BotCommandScope interface {
	tl.Object
	ImplementsBotCommandScope()
}

type BotCommandScopeChatAdmins

type BotCommandScopeChatAdmins struct{}

The specified bot commands will be valid only for chat administrators, in all [groups and supergroups](https://core.telegram.org/api/channel).

func (*BotCommandScopeChatAdmins) CRC

func (*BotCommandScopeChatAdmins) ImplementsBotCommandScope

func (*BotCommandScopeChatAdmins) ImplementsBotCommandScope()

type BotCommandScopeChats

type BotCommandScopeChats struct{}

The specified bot commands will be valid in all [groups and supergroups](https://core.telegram.org/api/channel).

func (*BotCommandScopeChats) CRC

func (*BotCommandScopeChats) ImplementsBotCommandScope

func (*BotCommandScopeChats) ImplementsBotCommandScope()

type BotCommandScopeDefault

type BotCommandScopeDefault struct{}

The commands will be valid in all dialogs

func (*BotCommandScopeDefault) CRC

func (*BotCommandScopeDefault) ImplementsBotCommandScope

func (*BotCommandScopeDefault) ImplementsBotCommandScope()

type BotCommandScopePeer

type BotCommandScopePeer struct {
	Peer InputPeer
}

The specified bot commands will be valid only in a specific dialog.

func (*BotCommandScopePeer) CRC

func (*BotCommandScopePeer) CRC() uint32

func (*BotCommandScopePeer) ImplementsBotCommandScope

func (*BotCommandScopePeer) ImplementsBotCommandScope()

type BotCommandScopePeerAdmins

type BotCommandScopePeerAdmins struct {
	Peer InputPeer
}

The specified bot commands will be valid for all admins of the specified [group or supergroup](https://core.telegram.org/api/channel).

func (*BotCommandScopePeerAdmins) CRC

func (*BotCommandScopePeerAdmins) ImplementsBotCommandScope

func (*BotCommandScopePeerAdmins) ImplementsBotCommandScope()

type BotCommandScopePeerUser

type BotCommandScopePeerUser struct {
	Peer   InputPeer
	UserID InputUser
}

The specified bot commands will be valid only for a specific user in the specified [group or supergroup](https://core.telegram.org/api/channel).

func (*BotCommandScopePeerUser) CRC

func (*BotCommandScopePeerUser) ImplementsBotCommandScope

func (*BotCommandScopePeerUser) ImplementsBotCommandScope()

type BotCommandScopeUsers

type BotCommandScopeUsers struct{}

The specified bot commands will only be valid in all private chats with users.

func (*BotCommandScopeUsers) CRC

func (*BotCommandScopeUsers) ImplementsBotCommandScope

func (*BotCommandScopeUsers) ImplementsBotCommandScope()

type BotInfo

type BotInfo struct {
	HasPreviewMedias    bool          `tl:"flag:6,encoded_in_bitflags"`
	UserID              int64         `tl:"flag:0"`
	Description         string        `tl:"flag:1"`
	DescriptionPhoto    Photo         `tl:"flag:4"`
	DescriptionDocument Document      `tl:"flag:5"`
	Commands            []*BotCommand `tl:"flag:2"`
	MenuButton          BotMenuButton `tl:"flag:3"`
	PrivacyPolicyURL    string        `tl:"flag:7"`
}

Info about bots (available bot commands, etc)

func (*BotInfo) CRC

func (*BotInfo) CRC() uint32

func (*BotInfo) FlagIndex

func (*BotInfo) FlagIndex() int

type BotInlineMediaResult

type BotInlineMediaResult struct {
	ID          string
	Type        string
	Photo       Photo    `tl:"flag:0"`
	Document    Document `tl:"flag:1"`
	Title       string   `tl:"flag:2"`
	Description string   `tl:"flag:3"`
	SendMessage BotInlineMessage
}

Media result

func (*BotInlineMediaResult) CRC

func (*BotInlineMediaResult) FlagIndex

func (*BotInlineMediaResult) FlagIndex() int

func (*BotInlineMediaResult) ImplementsBotInlineResult

func (*BotInlineMediaResult) ImplementsBotInlineResult()

type BotInlineMessage

type BotInlineMessage interface {
	tl.Object
	ImplementsBotInlineMessage()
}

type BotInlineMessageMediaAuto

type BotInlineMessageMediaAuto struct {
	InvertMedia bool `tl:"flag:3,encoded_in_bitflags"`
	Message     string
	Entities    []MessageEntity `tl:"flag:1"`
	ReplyMarkup ReplyMarkup     `tl:"flag:2"`
}

Send whatever media is attached to the [botInlineMediaResult](https://core.telegram.org/constructor/botInlineMediaResult)

func (*BotInlineMessageMediaAuto) CRC

func (*BotInlineMessageMediaAuto) FlagIndex

func (*BotInlineMessageMediaAuto) FlagIndex() int

func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage

func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage()

type BotInlineMessageMediaContact

type BotInlineMessageMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	ReplyMarkup ReplyMarkup `tl:"flag:2"`
}

Send a contact

func (*BotInlineMessageMediaContact) CRC

func (*BotInlineMessageMediaContact) FlagIndex

func (*BotInlineMessageMediaContact) FlagIndex() int

func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage

func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage()

type BotInlineMessageMediaGeo

type BotInlineMessageMediaGeo struct {
	Geo                         GeoPoint
	Heading                     int32       `tl:"flag:0"`
	Period                      int32       `tl:"flag:1"`
	ProximityNotificationRadius int32       `tl:"flag:3"`
	ReplyMarkup                 ReplyMarkup `tl:"flag:2"`
}

Send a geolocation

func (*BotInlineMessageMediaGeo) CRC

func (*BotInlineMessageMediaGeo) FlagIndex

func (*BotInlineMessageMediaGeo) FlagIndex() int

func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage

func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage()

type BotInlineMessageMediaInvoice

type BotInlineMessageMediaInvoice struct {
	ShippingAddressRequested bool `tl:"flag:1,encoded_in_bitflags"`
	Test                     bool `tl:"flag:3,encoded_in_bitflags"`
	Title                    string
	Description              string
	Photo                    WebDocument `tl:"flag:0"`
	Currency                 string
	TotalAmount              int64
	ReplyMarkup              ReplyMarkup `tl:"flag:2"`
}

Send an invoice

func (*BotInlineMessageMediaInvoice) CRC

func (*BotInlineMessageMediaInvoice) FlagIndex

func (*BotInlineMessageMediaInvoice) FlagIndex() int

func (*BotInlineMessageMediaInvoice) ImplementsBotInlineMessage

func (*BotInlineMessageMediaInvoice) ImplementsBotInlineMessage()

type BotInlineMessageMediaVenue

type BotInlineMessageMediaVenue struct {
	Geo         GeoPoint
	Title       string
	Address     string
	Provider    string
	VenueID     string
	VenueType   string
	ReplyMarkup ReplyMarkup `tl:"flag:2"`
}

Send a venue

func (*BotInlineMessageMediaVenue) CRC

func (*BotInlineMessageMediaVenue) FlagIndex

func (*BotInlineMessageMediaVenue) FlagIndex() int

func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage

func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage()

type BotInlineMessageMediaWebPage

type BotInlineMessageMediaWebPage struct {
	InvertMedia     bool `tl:"flag:3,encoded_in_bitflags"`
	ForceLargeMedia bool `tl:"flag:4,encoded_in_bitflags"`
	ForceSmallMedia bool `tl:"flag:5,encoded_in_bitflags"`
	Manual          bool `tl:"flag:7,encoded_in_bitflags"`
	Safe            bool `tl:"flag:8,encoded_in_bitflags"`
	Message         string
	Entities        []MessageEntity `tl:"flag:1"`
	URL             string
	ReplyMarkup     ReplyMarkup `tl:"flag:2"`
}

Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.

func (*BotInlineMessageMediaWebPage) CRC

func (*BotInlineMessageMediaWebPage) FlagIndex

func (*BotInlineMessageMediaWebPage) FlagIndex() int

func (*BotInlineMessageMediaWebPage) ImplementsBotInlineMessage

func (*BotInlineMessageMediaWebPage) ImplementsBotInlineMessage()

type BotInlineMessageText

type BotInlineMessageText struct {
	NoWebpage   bool `tl:"flag:0,encoded_in_bitflags"`
	InvertMedia bool `tl:"flag:3,encoded_in_bitflags"`
	Message     string
	Entities    []MessageEntity `tl:"flag:1"`
	ReplyMarkup ReplyMarkup     `tl:"flag:2"`
}

Send a simple text message

func (*BotInlineMessageText) CRC

func (*BotInlineMessageText) FlagIndex

func (*BotInlineMessageText) FlagIndex() int

func (*BotInlineMessageText) ImplementsBotInlineMessage

func (*BotInlineMessageText) ImplementsBotInlineMessage()

type BotInlineResult

type BotInlineResult interface {
	tl.Object
	ImplementsBotInlineResult()
}

type BotInlineResultObj

type BotInlineResultObj struct {
	ID          string
	Type        string
	Title       string      `tl:"flag:1"`
	Description string      `tl:"flag:2"`
	URL         string      `tl:"flag:3"`
	Thumb       WebDocument `tl:"flag:4"`
	Content     WebDocument `tl:"flag:5"`
	SendMessage BotInlineMessage
}

Generic result

func (*BotInlineResultObj) CRC

func (*BotInlineResultObj) CRC() uint32

func (*BotInlineResultObj) FlagIndex

func (*BotInlineResultObj) FlagIndex() int

func (*BotInlineResultObj) ImplementsBotInlineResult

func (*BotInlineResultObj) ImplementsBotInlineResult()

type BotMenuButton

type BotMenuButton interface {
	tl.Object
	ImplementsBotMenuButton()
}

type BotMenuButtonCommands

type BotMenuButtonCommands struct{}

[Bot menu button](https://core.telegram.org/api/bots/menu) that opens the bot command list when clicked.

func (*BotMenuButtonCommands) CRC

func (*BotMenuButtonCommands) ImplementsBotMenuButton

func (*BotMenuButtonCommands) ImplementsBotMenuButton()

type BotMenuButtonDefault

type BotMenuButtonDefault struct{}

Placeholder [bot menu button](https://core.telegram.org/api/bots/menu) never returned to users: see [the docs for more info](https://core.telegram.org/api/bots/menu).

func (*BotMenuButtonDefault) CRC

func (*BotMenuButtonDefault) ImplementsBotMenuButton

func (*BotMenuButtonDefault) ImplementsBotMenuButton()

type BotMenuButtonObj

type BotMenuButtonObj struct {
	Text string
	URL  string
}

[Bot menu button](https://core.telegram.org/api/bots/menu) that opens a [web app](https://core.telegram.org/api/bots/webapps) when clicked.

func (*BotMenuButtonObj) CRC

func (*BotMenuButtonObj) CRC() uint32

func (*BotMenuButtonObj) ImplementsBotMenuButton

func (*BotMenuButtonObj) ImplementsBotMenuButton()

type BotPreviewMedia

type BotPreviewMedia struct {
	Date  int32
	Media MessageMedia
}

func (*BotPreviewMedia) CRC

func (*BotPreviewMedia) CRC() uint32

type BotsAddPreviewMediaParams

type BotsAddPreviewMediaParams struct {
	Bot      InputUser
	LangCode string
	Media    InputMedia
}

func (*BotsAddPreviewMediaParams) CRC

type BotsAllowSendMessageParams

type BotsAllowSendMessageParams struct {
	Bot InputUser
}

func (*BotsAllowSendMessageParams) CRC

type BotsAnswerWebhookJsonQueryParams

type BotsAnswerWebhookJsonQueryParams struct {
	QueryID int64
	Data    *DataJson
}

func (*BotsAnswerWebhookJsonQueryParams) CRC

type BotsBotInfo

type BotsBotInfo struct {
	Name        string
	About       string
	Description string
}

Localized information about a bot.

func (*BotsBotInfo) CRC

func (*BotsBotInfo) CRC() uint32

type BotsCanSendMessageParams

type BotsCanSendMessageParams struct {
	Bot InputUser
}

func (*BotsCanSendMessageParams) CRC

type BotsDeletePreviewMediaParams

type BotsDeletePreviewMediaParams struct {
	Bot      InputUser
	LangCode string
	Media    []InputMedia
}

func (*BotsDeletePreviewMediaParams) CRC

type BotsEditPreviewMediaParams

type BotsEditPreviewMediaParams struct {
	Bot      InputUser
	LangCode string
	Media    InputMedia
	NewMedia InputMedia
}

func (*BotsEditPreviewMediaParams) CRC

type BotsGetBotCommandsParams

type BotsGetBotCommandsParams struct {
	Scope    BotCommandScope
	LangCode string
}

func (*BotsGetBotCommandsParams) CRC

type BotsGetBotInfoParams

type BotsGetBotInfoParams struct {
	Bot      InputUser `tl:"flag:0"`
	LangCode string
}

func (*BotsGetBotInfoParams) CRC

func (*BotsGetBotInfoParams) FlagIndex

func (*BotsGetBotInfoParams) FlagIndex() int

type BotsGetBotMenuButtonParams

type BotsGetBotMenuButtonParams struct {
	UserID InputUser
}

func (*BotsGetBotMenuButtonParams) CRC

type BotsGetPopularAppBotsParams

type BotsGetPopularAppBotsParams struct {
	Offset string
	Limit  int32
}

func (*BotsGetPopularAppBotsParams) CRC

type BotsGetPreviewInfoParams

type BotsGetPreviewInfoParams struct {
	Bot      InputUser
	LangCode string
}

func (*BotsGetPreviewInfoParams) CRC

type BotsGetPreviewMediasParams

type BotsGetPreviewMediasParams struct {
	Bot InputUser
}

func (*BotsGetPreviewMediasParams) CRC

type BotsInvokeWebViewCustomMethodParams

type BotsInvokeWebViewCustomMethodParams struct {
	Bot          InputUser
	CustomMethod string
	Params       *DataJson
}

func (*BotsInvokeWebViewCustomMethodParams) CRC

type BotsPopularAppBots

type BotsPopularAppBots struct {
	NextOffset string `tl:"flag:0"`
	Users      []User
}

func (*BotsPopularAppBots) CRC

func (*BotsPopularAppBots) CRC() uint32

func (*BotsPopularAppBots) FlagIndex

func (*BotsPopularAppBots) FlagIndex() int

type BotsPreviewInfo

type BotsPreviewInfo struct {
	Media     []*BotPreviewMedia
	LangCodes []string
}

func (*BotsPreviewInfo) CRC

func (*BotsPreviewInfo) CRC() uint32

type BotsReorderPreviewMediasParams

type BotsReorderPreviewMediasParams struct {
	Bot      InputUser
	LangCode string
	Order    []InputMedia
}

func (*BotsReorderPreviewMediasParams) CRC

type BotsReorderUsernamesParams

type BotsReorderUsernamesParams struct {
	Bot   InputUser
	Order []string
}

func (*BotsReorderUsernamesParams) CRC

type BotsResetBotCommandsParams

type BotsResetBotCommandsParams struct {
	Scope    BotCommandScope
	LangCode string
}

func (*BotsResetBotCommandsParams) CRC

type BotsSendCustomRequestParams

type BotsSendCustomRequestParams struct {
	CustomMethod string
	Params       *DataJson
}

func (*BotsSendCustomRequestParams) CRC

type BotsSetBotBroadcastDefaultAdminRightsParams

type BotsSetBotBroadcastDefaultAdminRightsParams struct {
	AdminRights *ChatAdminRights
}

func (*BotsSetBotBroadcastDefaultAdminRightsParams) CRC

type BotsSetBotCommandsParams

type BotsSetBotCommandsParams struct {
	Scope    BotCommandScope
	LangCode string
	Commands []*BotCommand
}

func (*BotsSetBotCommandsParams) CRC

type BotsSetBotGroupDefaultAdminRightsParams

type BotsSetBotGroupDefaultAdminRightsParams struct {
	AdminRights *ChatAdminRights
}

func (*BotsSetBotGroupDefaultAdminRightsParams) CRC

type BotsSetBotInfoParams

type BotsSetBotInfoParams struct {
	Bot         InputUser `tl:"flag:2"`
	LangCode    string
	Name        string `tl:"flag:3"`
	About       string `tl:"flag:0"`
	Description string `tl:"flag:1"`
}

func (*BotsSetBotInfoParams) CRC

func (*BotsSetBotInfoParams) FlagIndex

func (*BotsSetBotInfoParams) FlagIndex() int

type BotsSetBotMenuButtonParams

type BotsSetBotMenuButtonParams struct {
	UserID InputUser
	Button BotMenuButton
}

func (*BotsSetBotMenuButtonParams) CRC

type BotsToggleUsernameParams

type BotsToggleUsernameParams struct {
	Bot      InputUser
	Username string
	Active   bool
}

func (*BotsToggleUsernameParams) CRC

type BroadcastRevenueBalances

type BroadcastRevenueBalances struct {
	CurrentBalance   int64
	AvailableBalance int64
	OverallRevenue   int64
}

func (*BroadcastRevenueBalances) CRC

type BroadcastRevenueTransaction

type BroadcastRevenueTransaction interface {
	tl.Object
	ImplementsBroadcastRevenueTransaction()
}

type BroadcastRevenueTransactionProceeds

type BroadcastRevenueTransactionProceeds struct {
	Amount   int64
	FromDate int32
	ToDate   int32
}

func (*BroadcastRevenueTransactionProceeds) CRC

func (*BroadcastRevenueTransactionProceeds) ImplementsBroadcastRevenueTransaction

func (*BroadcastRevenueTransactionProceeds) ImplementsBroadcastRevenueTransaction()

type BroadcastRevenueTransactionRefund

type BroadcastRevenueTransactionRefund struct {
	Amount   int64
	Date     int32
	Provider string
}

func (*BroadcastRevenueTransactionRefund) CRC

func (*BroadcastRevenueTransactionRefund) ImplementsBroadcastRevenueTransaction

func (*BroadcastRevenueTransactionRefund) ImplementsBroadcastRevenueTransaction()

type BroadcastRevenueTransactionWithdrawal

type BroadcastRevenueTransactionWithdrawal struct {
	Pending         bool `tl:"flag:0,encoded_in_bitflags"`
	Failed          bool `tl:"flag:2,encoded_in_bitflags"`
	Amount          int64
	Date            int32
	Provider        string
	TransactionDate int32  `tl:"flag:1"`
	TransactionURL  string `tl:"flag:1"`
}

func (*BroadcastRevenueTransactionWithdrawal) CRC

func (*BroadcastRevenueTransactionWithdrawal) FlagIndex

func (*BroadcastRevenueTransactionWithdrawal) ImplementsBroadcastRevenueTransaction

func (*BroadcastRevenueTransactionWithdrawal) ImplementsBroadcastRevenueTransaction()

type BusinessAwayMessage

type BusinessAwayMessage struct {
	OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
	ShortcutID  int32
	Schedule    BusinessAwayMessageSchedule
	Recipients  *BusinessRecipients
}

func (*BusinessAwayMessage) CRC

func (*BusinessAwayMessage) CRC() uint32

func (*BusinessAwayMessage) FlagIndex

func (*BusinessAwayMessage) FlagIndex() int

type BusinessAwayMessageSchedule

type BusinessAwayMessageSchedule interface {
	tl.Object
	ImplementsBusinessAwayMessageSchedule()
}

type BusinessAwayMessageScheduleAlways

type BusinessAwayMessageScheduleAlways struct{}

func (*BusinessAwayMessageScheduleAlways) CRC

func (*BusinessAwayMessageScheduleAlways) ImplementsBusinessAwayMessageSchedule

func (*BusinessAwayMessageScheduleAlways) ImplementsBusinessAwayMessageSchedule()

type BusinessAwayMessageScheduleCustom

type BusinessAwayMessageScheduleCustom struct {
	StartDate int32
	EndDate   int32
}

func (*BusinessAwayMessageScheduleCustom) CRC

func (*BusinessAwayMessageScheduleCustom) ImplementsBusinessAwayMessageSchedule

func (*BusinessAwayMessageScheduleCustom) ImplementsBusinessAwayMessageSchedule()

type BusinessAwayMessageScheduleOutsideWorkHours

type BusinessAwayMessageScheduleOutsideWorkHours struct{}

func (*BusinessAwayMessageScheduleOutsideWorkHours) CRC

func (*BusinessAwayMessageScheduleOutsideWorkHours) ImplementsBusinessAwayMessageSchedule

func (*BusinessAwayMessageScheduleOutsideWorkHours) ImplementsBusinessAwayMessageSchedule()

type BusinessBotRecipients

type BusinessBotRecipients struct {
	ExistingChats   bool    `tl:"flag:0,encoded_in_bitflags"`
	NewChats        bool    `tl:"flag:1,encoded_in_bitflags"`
	Contacts        bool    `tl:"flag:2,encoded_in_bitflags"`
	NonContacts     bool    `tl:"flag:3,encoded_in_bitflags"`
	ExcludeSelected bool    `tl:"flag:5,encoded_in_bitflags"`
	Users           []int64 `tl:"flag:4"`
	ExcludeUsers    []int64 `tl:"flag:6"`
}

func (*BusinessBotRecipients) CRC

func (*BusinessBotRecipients) FlagIndex

func (*BusinessBotRecipients) FlagIndex() int
type BusinessChatLink struct {
	Link     string
	Message  string
	Entities []MessageEntity `tl:"flag:0"`
	Title    string          `tl:"flag:1"`
	Views    int32
}

func (*BusinessChatLink) CRC

func (*BusinessChatLink) CRC() uint32

func (*BusinessChatLink) FlagIndex

func (*BusinessChatLink) FlagIndex() int

type BusinessGreetingMessage

type BusinessGreetingMessage struct {
	ShortcutID     int32
	Recipients     *BusinessRecipients
	NoActivityDays int32
}

func (*BusinessGreetingMessage) CRC

type BusinessIntro

type BusinessIntro struct {
	Title       string
	Description string
	Sticker     Document `tl:"flag:0"`
}

func (*BusinessIntro) CRC

func (*BusinessIntro) CRC() uint32

func (*BusinessIntro) FlagIndex

func (*BusinessIntro) FlagIndex() int

type BusinessLocation

type BusinessLocation struct {
	GeoPoint GeoPoint `tl:"flag:0"`
	Address  string
}

func (*BusinessLocation) CRC

func (*BusinessLocation) CRC() uint32

func (*BusinessLocation) FlagIndex

func (*BusinessLocation) FlagIndex() int

type BusinessRecipients

type BusinessRecipients struct {
	ExistingChats   bool    `tl:"flag:0,encoded_in_bitflags"`
	NewChats        bool    `tl:"flag:1,encoded_in_bitflags"`
	Contacts        bool    `tl:"flag:2,encoded_in_bitflags"`
	NonContacts     bool    `tl:"flag:3,encoded_in_bitflags"`
	ExcludeSelected bool    `tl:"flag:5,encoded_in_bitflags"`
	Users           []int64 `tl:"flag:4"`
}

func (*BusinessRecipients) CRC

func (*BusinessRecipients) CRC() uint32

func (*BusinessRecipients) FlagIndex

func (*BusinessRecipients) FlagIndex() int

type BusinessWeeklyOpen

type BusinessWeeklyOpen struct {
	StartMinute int32
	EndMinute   int32
}

func (*BusinessWeeklyOpen) CRC

func (*BusinessWeeklyOpen) CRC() uint32

type BusinessWorkHours

type BusinessWorkHours struct {
	OpenNow    bool `tl:"flag:0,encoded_in_bitflags"`
	TimezoneID string
	WeeklyOpen []*BusinessWeeklyOpen
}

func (*BusinessWorkHours) CRC

func (*BusinessWorkHours) CRC() uint32

func (*BusinessWorkHours) FlagIndex

func (*BusinessWorkHours) FlagIndex() int

type Button

type Button struct{}

func (Button) Auth

func (Button) Auth(Text, URL, ForwardText string, ButtonID int32) *KeyboardButtonURLAuth

func (Button) Buy

func (Button) Buy(Text string) *KeyboardButtonBuy

func (Button) Clear

func (Button) Clear() *ReplyKeyboardHide

func (Button) Data

func (Button) Data(Text, Data string) *KeyboardButtonCallback

func (Button) Force

func (Button) Force(placeHolder string) *ReplyKeyboardForceReply

func (Button) Game

func (Button) Game(Text string) *KeyboardButtonGame

func (Button) Keyboard

func (Button) Keyboard(Rows ...*KeyboardButtonRow) *ReplyInlineMarkup

func (Button) Mention

func (Button) Mention(Text string, UserID int64) *KeyboardButtonUserProfile

func (Button) RequestLocation

func (Button) RequestLocation(Text string) *KeyboardButtonRequestGeoLocation

func (Button) RequestPeer

func (Button) RequestPeer(Text string, ButtonID int32, PeerType RequestPeerType, Max ...int32) *KeyboardButtonRequestPeer

func (Button) RequestPhone

func (Button) RequestPhone(Text string) *KeyboardButtonRequestPhone

func (Button) RequestPoll

func (Button) RequestPoll(Text string, Quiz bool) *KeyboardButtonRequestPoll

func (Button) Row

func (Button) Row(Buttons ...KeyboardButton) *KeyboardButtonRow

func (Button) SwitchInline

func (Button) SwitchInline(Text string, SamePeer bool, Query string) *KeyboardButtonSwitchInline

func (Button) URL

func (Button) URL(Text, URL string) *KeyboardButtonURL

func (Button) WebView

func (Button) WebView(Text, URL string) *KeyboardButtonSimpleWebView

type CACHE

type CACHE struct {
	*sync.RWMutex

	InputPeers *InputPeerCache `json:"input_peers,omitempty"`
	// contains filtered or unexported fields
}

func NewCache

func NewCache(logLevel string, fileN string) *CACHE

func (*CACHE) ExportJSON

func (c *CACHE) ExportJSON() ([]byte, error)

func (*CACHE) GetInputPeer

func (c *CACHE) GetInputPeer(peerID int64) (InputPeer, error)

func (*CACHE) ImportJSON

func (c *CACHE) ImportJSON(data []byte) error

func (*CACHE) ReadFile

func (c *CACHE) ReadFile()

func (*CACHE) UpdateChannel

func (c *CACHE) UpdateChannel(channel *Channel) bool

func (*CACHE) UpdateChat

func (c *CACHE) UpdateChat(chat *ChatObj) bool

func (*CACHE) UpdatePeersToCache

func (cache *CACHE) UpdatePeersToCache(users []User, chats []Chat)

func (*CACHE) UpdateUser

func (c *CACHE) UpdateUser(user *UserObj) bool

func (*CACHE) WriteFile

func (c *CACHE) WriteFile()

--------- Cache file Functions ---------

type CallbackHandler

type CallbackHandler func(m *CallbackQuery) error

type CallbackOptions

type CallbackOptions struct {
	Alert     bool   `json:"alert,omitempty"`
	CacheTime int32  `json:"cache_time,omitempty"`
	URL       string `json:"url,omitempty"`
}

type CallbackQuery

type CallbackQuery struct {
	QueryID        int64
	Data           []byte
	OriginalUpdate *UpdateBotCallbackQuery
	Sender         *UserObj
	MessageID      int32
	SenderID       int64
	ChatID         int64
	Chat           *ChatObj
	Channel        *Channel
	Peer           Peer
	Client         *Client
}

func (*CallbackQuery) Answer

func (b *CallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)

func (*CallbackQuery) ChatType

func (m *CallbackQuery) ChatType() string

func (*CallbackQuery) DataString

func (b *CallbackQuery) DataString() string

func (*CallbackQuery) Delete

func (*CallbackQuery) Edit

func (b *CallbackQuery) Edit(Text interface{}, options ...*SendOptions) (*NewMessage, error)

func (*CallbackQuery) ForwardTo

func (b *CallbackQuery) ForwardTo(ChatID int64, options ...*ForwardOptions) (*NewMessage, error)

func (*CallbackQuery) GetChannel

func (b *CallbackQuery) GetChannel() (*Channel, error)

func (*CallbackQuery) GetChat

func (b *CallbackQuery) GetChat() (*ChatObj, error)

func (*CallbackQuery) GetChatID

func (b *CallbackQuery) GetChatID() int64

func (*CallbackQuery) GetMessage

func (b *CallbackQuery) GetMessage() (*NewMessage, error)

func (*CallbackQuery) GetSender

func (b *CallbackQuery) GetSender() (*UserObj, error)

func (*CallbackQuery) GetSenderID

func (b *CallbackQuery) GetSenderID() int64

func (*CallbackQuery) IsChannel

func (b *CallbackQuery) IsChannel() bool

func (*CallbackQuery) IsGroup

func (b *CallbackQuery) IsGroup() bool

func (*CallbackQuery) IsPrivate

func (b *CallbackQuery) IsPrivate() bool

func (*CallbackQuery) Marshal

func (b *CallbackQuery) Marshal(nointent ...bool) string

func (*CallbackQuery) Reply

func (b *CallbackQuery) Reply(Text interface{}, options ...*SendOptions) (*NewMessage, error)

func (*CallbackQuery) ReplyMedia

func (b *CallbackQuery) ReplyMedia(Media interface{}, options ...*MediaOptions) (*NewMessage, error)

func (*CallbackQuery) Respond

func (b *CallbackQuery) Respond(Text interface{}, options ...*SendOptions) (*NewMessage, error)

func (*CallbackQuery) RespondMedia

func (b *CallbackQuery) RespondMedia(Media interface{}, options ...*MediaOptions) (*NewMessage, error)

func (*CallbackQuery) ShortName

func (b *CallbackQuery) ShortName() string

type CdnConfig

type CdnConfig struct {
	PublicKeys []*CdnPublicKey
}

Configuration for [CDN](https://core.telegram.org/cdn) file downloads.

func (*CdnConfig) CRC

func (*CdnConfig) CRC() uint32

type CdnPublicKey

type CdnPublicKey struct {
	DcID      int32
	PublicKey string
}

Public key to use <strong>only</strong> during handshakes to [CDN](https://core.telegram.org/cdn) DCs.

func (*CdnPublicKey) CRC

func (*CdnPublicKey) CRC() uint32

type Channel

type Channel struct {
	Creator               bool `tl:"flag:0,encoded_in_bitflags"`
	Left                  bool `tl:"flag:2,encoded_in_bitflags"`
	Broadcast             bool `tl:"flag:5,encoded_in_bitflags"`
	Verified              bool `tl:"flag:7,encoded_in_bitflags"`
	Megagroup             bool `tl:"flag:8,encoded_in_bitflags"`
	Restricted            bool `tl:"flag:9,encoded_in_bitflags"`
	Signatures            bool `tl:"flag:11,encoded_in_bitflags"`
	Min                   bool `tl:"flag:12,encoded_in_bitflags"`
	Scam                  bool `tl:"flag:19,encoded_in_bitflags"`
	HasLink               bool `tl:"flag:20,encoded_in_bitflags"`
	HasGeo                bool `tl:"flag:21,encoded_in_bitflags"`
	SlowmodeEnabled       bool `tl:"flag:22,encoded_in_bitflags"`
	CallActive            bool `tl:"flag:23,encoded_in_bitflags"`
	CallNotEmpty          bool `tl:"flag:24,encoded_in_bitflags"`
	Fake                  bool `tl:"flag:25,encoded_in_bitflags"`
	Gigagroup             bool `tl:"flag:26,encoded_in_bitflags"`
	Noforwards            bool `tl:"flag:27,encoded_in_bitflags"`
	JoinToSend            bool `tl:"flag:28,encoded_in_bitflags"`
	JoinRequest           bool `tl:"flag:29,encoded_in_bitflags"`
	Forum                 bool `tl:"flag:30,encoded_in_bitflags"`
	StoriesHidden         bool `tl:"flag2:1,encoded_in_bitflags"`
	StoriesHiddenMin      bool `tl:"flag2:2,encoded_in_bitflags"`
	StoriesUnavailable    bool `tl:"flag2:3,encoded_in_bitflags"`
	ID                    int64
	SignatureProfiles     bool  `tl:"flag2:12,encoded_in_bitflags"`
	AccessHash            int64 `tl:"flag:13"`
	Title                 string
	Username              string `tl:"flag:6"`
	Photo                 ChatPhoto
	Date                  int32
	RestrictionReason     []*RestrictionReason `tl:"flag:9"`
	AdminRights           *ChatAdminRights     `tl:"flag:14"`
	BannedRights          *ChatBannedRights    `tl:"flag:15"`
	DefaultBannedRights   *ChatBannedRights    `tl:"flag:18"`
	ParticipantsCount     int32                `tl:"flag:17"`
	Usernames             []*Username          `tl:"flag2:0"`
	StoriesMaxID          int32                `tl:"flag2:4"`
	Color                 *PeerColor           `tl:"flag2:7"`
	ProfileColor          *PeerColor           `tl:"flag2:8"`
	EmojiStatus           EmojiStatus          `tl:"flag2:9"`
	Level                 int32                `tl:"flag2:10"`
	SubscriptionUntilDate int32                `tl:"flag2:11"`
}

Channel/supergroup info

func (*Channel) CRC

func (*Channel) CRC() uint32

func (*Channel) FlagIndex

func (*Channel) FlagIndex() int

func (*Channel) ImplementsChat

func (*Channel) ImplementsChat()

type ChannelAdminLogEvent

type ChannelAdminLogEvent struct {
	ID     int64
	Date   int32
	UserID int64
	Action ChannelAdminLogEventAction
}

Admin log event

func (*ChannelAdminLogEvent) CRC

type ChannelAdminLogEventAction

type ChannelAdminLogEventAction interface {
	tl.Object
	ImplementsChannelAdminLogEventAction()
}

type ChannelAdminLogEventActionChangeAbout

type ChannelAdminLogEventActionChangeAbout struct {
	PrevValue string
	NewValue  string
}

The description was changed

func (*ChannelAdminLogEventActionChangeAbout) CRC

func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeAvailableReactions

type ChannelAdminLogEventActionChangeAvailableReactions struct {
	PrevValue ChatReactions
	NewValue  ChatReactions
}

The set of allowed [message reactions »](https://core.telegram.org/api/reactions) for this channel has changed

func (*ChannelAdminLogEventActionChangeAvailableReactions) CRC

func (*ChannelAdminLogEventActionChangeAvailableReactions) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeAvailableReactions) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeEmojiStatus

type ChannelAdminLogEventActionChangeEmojiStatus struct {
	PrevValue EmojiStatus
	NewValue  EmojiStatus
}

The [emoji status](https://core.telegram.org/api/emoji-status) was changed

func (*ChannelAdminLogEventActionChangeEmojiStatus) CRC

func (*ChannelAdminLogEventActionChangeEmojiStatus) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeEmojiStatus) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeEmojiStickerSet

type ChannelAdminLogEventActionChangeEmojiStickerSet struct {
	PrevStickerset InputStickerSet
	NewStickerset  InputStickerSet
}

func (*ChannelAdminLogEventActionChangeEmojiStickerSet) CRC

func (*ChannelAdminLogEventActionChangeEmojiStickerSet) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeEmojiStickerSet) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeHistoryTtl

type ChannelAdminLogEventActionChangeHistoryTtl struct {
	PrevValue int32
	NewValue  int32
}

The Time-To-Live of messages in this chat was changed

func (*ChannelAdminLogEventActionChangeHistoryTtl) CRC

func (*ChannelAdminLogEventActionChangeHistoryTtl) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeHistoryTtl) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeLinkedChat

type ChannelAdminLogEventActionChangeLinkedChat struct {
	PrevValue int64
	NewValue  int64
}

The linked chat was changed

func (*ChannelAdminLogEventActionChangeLinkedChat) CRC

func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeLocation

type ChannelAdminLogEventActionChangeLocation struct {
	PrevValue ChannelLocation
	NewValue  ChannelLocation
}

The geogroup location was changed

func (*ChannelAdminLogEventActionChangeLocation) CRC

func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangePeerColor

type ChannelAdminLogEventActionChangePeerColor struct {
	PrevValue *PeerColor
	NewValue  *PeerColor
}

The [message accent color](https://core.telegram.org/api/colors) was changed

func (*ChannelAdminLogEventActionChangePeerColor) CRC

func (*ChannelAdminLogEventActionChangePeerColor) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangePeerColor) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangePhoto

type ChannelAdminLogEventActionChangePhoto struct {
	PrevPhoto Photo
	NewPhoto  Photo
}

The channel/supergroup's picture was changed

func (*ChannelAdminLogEventActionChangePhoto) CRC

func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeProfilePeerColor

type ChannelAdminLogEventActionChangeProfilePeerColor struct {
	PrevValue *PeerColor
	NewValue  *PeerColor
}

The [profile accent color](https://core.telegram.org/api/colors) was changed

func (*ChannelAdminLogEventActionChangeProfilePeerColor) CRC

func (*ChannelAdminLogEventActionChangeProfilePeerColor) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeProfilePeerColor) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeStickerSet

type ChannelAdminLogEventActionChangeStickerSet struct {
	PrevStickerset InputStickerSet
	NewStickerset  InputStickerSet
}

The supergroup's stickerset was changed

func (*ChannelAdminLogEventActionChangeStickerSet) CRC

func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeTitle

type ChannelAdminLogEventActionChangeTitle struct {
	PrevValue string
	NewValue  string
}

Channel/supergroup title was changed

func (*ChannelAdminLogEventActionChangeTitle) CRC

func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeUsername

type ChannelAdminLogEventActionChangeUsername struct {
	PrevValue string
	NewValue  string
}

Channel/supergroup username was changed

func (*ChannelAdminLogEventActionChangeUsername) CRC

func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeUsernames

type ChannelAdminLogEventActionChangeUsernames struct {
	PrevValue []string
	NewValue  []string
}

The list of usernames associated with the channel was changed

func (*ChannelAdminLogEventActionChangeUsernames) CRC

func (*ChannelAdminLogEventActionChangeUsernames) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeUsernames) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeWallpaper

type ChannelAdminLogEventActionChangeWallpaper struct {
	PrevValue WallPaper
	NewValue  WallPaper
}

The [wallpaper](https://core.telegram.org/api/wallpapers) was changed

func (*ChannelAdminLogEventActionChangeWallpaper) CRC

func (*ChannelAdminLogEventActionChangeWallpaper) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeWallpaper) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionCreateTopic

type ChannelAdminLogEventActionCreateTopic struct {
	Topic ForumTopic
}

A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created

func (*ChannelAdminLogEventActionCreateTopic) CRC

func (*ChannelAdminLogEventActionCreateTopic) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionCreateTopic) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDefaultBannedRights

type ChannelAdminLogEventActionDefaultBannedRights struct {
	PrevBannedRights *ChatBannedRights
	NewBannedRights  *ChatBannedRights
}

The default banned rights were modified

func (*ChannelAdminLogEventActionDefaultBannedRights) CRC

func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDeleteMessage

type ChannelAdminLogEventActionDeleteMessage struct {
	Message Message
}

A message was deleted

func (*ChannelAdminLogEventActionDeleteMessage) CRC

func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDeleteTopic

type ChannelAdminLogEventActionDeleteTopic struct {
	Topic ForumTopic
}

A [forum topic](https://core.telegram.org/api/forum#forum-topics) was deleted

func (*ChannelAdminLogEventActionDeleteTopic) CRC

func (*ChannelAdminLogEventActionDeleteTopic) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDeleteTopic) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDiscardGroupCall

type ChannelAdminLogEventActionDiscardGroupCall struct {
	Call *InputGroupCall
}

A group call was terminated

func (*ChannelAdminLogEventActionDiscardGroupCall) CRC

func (*ChannelAdminLogEventActionDiscardGroupCall) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDiscardGroupCall) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionEditMessage

type ChannelAdminLogEventActionEditMessage struct {
	PrevMessage Message
	NewMessage  Message
}

A message was edited

func (*ChannelAdminLogEventActionEditMessage) CRC

func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionEditTopic

type ChannelAdminLogEventActionEditTopic struct {
	PrevTopic ForumTopic
	NewTopic  ForumTopic
}

A [forum topic](https://core.telegram.org/api/forum#forum-topics) was edited

func (*ChannelAdminLogEventActionEditTopic) CRC

func (*ChannelAdminLogEventActionEditTopic) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionEditTopic) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionExportedInviteDelete

type ChannelAdminLogEventActionExportedInviteDelete struct {
	Invite ExportedChatInvite
}

A chat invite was deleted

func (*ChannelAdminLogEventActionExportedInviteDelete) CRC

func (*ChannelAdminLogEventActionExportedInviteDelete) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionExportedInviteDelete) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionExportedInviteEdit

type ChannelAdminLogEventActionExportedInviteEdit struct {
	PrevInvite ExportedChatInvite
	NewInvite  ExportedChatInvite
}

A chat invite was edited

func (*ChannelAdminLogEventActionExportedInviteEdit) CRC

func (*ChannelAdminLogEventActionExportedInviteEdit) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionExportedInviteEdit) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionExportedInviteRevoke

type ChannelAdminLogEventActionExportedInviteRevoke struct {
	Invite ExportedChatInvite
}

A specific invite link was revoked

func (*ChannelAdminLogEventActionExportedInviteRevoke) CRC

func (*ChannelAdminLogEventActionExportedInviteRevoke) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionExportedInviteRevoke) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantInvite

type ChannelAdminLogEventActionParticipantInvite struct {
	Participant ChannelParticipant
}

A user was invited to the group

func (*ChannelAdminLogEventActionParticipantInvite) CRC

func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantJoin

type ChannelAdminLogEventActionParticipantJoin struct{}

A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)

func (*ChannelAdminLogEventActionParticipantJoin) CRC

func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantJoinByInvite

type ChannelAdminLogEventActionParticipantJoinByInvite struct {
	ViaChatlist bool `tl:"flag:0,encoded_in_bitflags"`
	Invite      ExportedChatInvite
}

A user joined the supergroup/channel(https://core.telegram.org/api/channel) using a specific invite link

func (*ChannelAdminLogEventActionParticipantJoinByInvite) CRC

func (*ChannelAdminLogEventActionParticipantJoinByInvite) FlagIndex

func (*ChannelAdminLogEventActionParticipantJoinByInvite) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantJoinByInvite) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantJoinByRequest

type ChannelAdminLogEventActionParticipantJoinByRequest struct {
	Invite     ExportedChatInvite
	ApprovedBy int64
}

A new member was accepted to the chat by an admin

func (*ChannelAdminLogEventActionParticipantJoinByRequest) CRC

func (*ChannelAdminLogEventActionParticipantJoinByRequest) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantJoinByRequest) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantLeave

type ChannelAdminLogEventActionParticipantLeave struct{}

A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)

func (*ChannelAdminLogEventActionParticipantLeave) CRC

func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantMute

type ChannelAdminLogEventActionParticipantMute struct {
	Participant *GroupCallParticipant
}

A group call participant was muted

func (*ChannelAdminLogEventActionParticipantMute) CRC

func (*ChannelAdminLogEventActionParticipantMute) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantMute) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantToggleAdmin

type ChannelAdminLogEventActionParticipantToggleAdmin struct {
	PrevParticipant ChannelParticipant
	NewParticipant  ChannelParticipant
}

The admin [rights](https://core.telegram.org/api/rights) of a user were changed

func (*ChannelAdminLogEventActionParticipantToggleAdmin) CRC

func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantToggleBan

type ChannelAdminLogEventActionParticipantToggleBan struct {
	PrevParticipant ChannelParticipant
	NewParticipant  ChannelParticipant
}

The banned [rights](https://core.telegram.org/api/rights) of a user were changed

func (*ChannelAdminLogEventActionParticipantToggleBan) CRC

func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantUnmute

type ChannelAdminLogEventActionParticipantUnmute struct {
	Participant *GroupCallParticipant
}

A group call participant was unmuted

func (*ChannelAdminLogEventActionParticipantUnmute) CRC

func (*ChannelAdminLogEventActionParticipantUnmute) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantUnmute) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantVolume

type ChannelAdminLogEventActionParticipantVolume struct {
	Participant *GroupCallParticipant
}

channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume

func (*ChannelAdminLogEventActionParticipantVolume) CRC

func (*ChannelAdminLogEventActionParticipantVolume) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantVolume) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionPinTopic

type ChannelAdminLogEventActionPinTopic struct {
	PrevTopic ForumTopic `tl:"flag:0"`
	NewTopic  ForumTopic `tl:"flag:1"`
}

A [forum topic](https://core.telegram.org/api/forum#forum-topics) was pinned or unpinned

func (*ChannelAdminLogEventActionPinTopic) CRC

func (*ChannelAdminLogEventActionPinTopic) FlagIndex

func (*ChannelAdminLogEventActionPinTopic) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionPinTopic) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionSendMessage

type ChannelAdminLogEventActionSendMessage struct {
	Message Message
}

A message was posted in a channel

func (*ChannelAdminLogEventActionSendMessage) CRC

func (*ChannelAdminLogEventActionSendMessage) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionSendMessage) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionStartGroupCall

type ChannelAdminLogEventActionStartGroupCall struct {
	Call *InputGroupCall
}

A group call was started

func (*ChannelAdminLogEventActionStartGroupCall) CRC

func (*ChannelAdminLogEventActionStartGroupCall) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionStartGroupCall) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionStopPoll

type ChannelAdminLogEventActionStopPoll struct {
	Message Message
}

A poll was stopped

func (*ChannelAdminLogEventActionStopPoll) CRC

func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleAntiSpam

type ChannelAdminLogEventActionToggleAntiSpam struct {
	NewValue bool
}

[Native antispam](https://core.telegram.org/api/antispam) functionality was enabled or disabled.

func (*ChannelAdminLogEventActionToggleAntiSpam) CRC

func (*ChannelAdminLogEventActionToggleAntiSpam) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleAntiSpam) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleForum

type ChannelAdminLogEventActionToggleForum struct {
	NewValue bool
}

[Forum](https://core.telegram.org/api/forum) functionality was enabled or disabled.

func (*ChannelAdminLogEventActionToggleForum) CRC

func (*ChannelAdminLogEventActionToggleForum) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleForum) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleGroupCallSetting

type ChannelAdminLogEventActionToggleGroupCallSetting struct {
	JoinMuted bool
}

Group call settings were changed

func (*ChannelAdminLogEventActionToggleGroupCallSetting) CRC

func (*ChannelAdminLogEventActionToggleGroupCallSetting) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleGroupCallSetting) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleInvites

type ChannelAdminLogEventActionToggleInvites struct {
	NewValue bool
}

Invites were enabled/disabled

func (*ChannelAdminLogEventActionToggleInvites) CRC

func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleNoForwards

type ChannelAdminLogEventActionToggleNoForwards struct {
	NewValue bool
}

Forwards were enabled or disabled

func (*ChannelAdminLogEventActionToggleNoForwards) CRC

func (*ChannelAdminLogEventActionToggleNoForwards) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleNoForwards) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionTogglePreHistoryHidden

type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
	NewValue bool
}

The hidden prehistory setting was [changed](https://core.telegram.org/method/channels.togglePreHistoryHidden)

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) CRC

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleSignatureProfiles

type ChannelAdminLogEventActionToggleSignatureProfiles struct {
	Value bool
}

func (*ChannelAdminLogEventActionToggleSignatureProfiles) CRC

func (*ChannelAdminLogEventActionToggleSignatureProfiles) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleSignatureProfiles) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleSignatures

type ChannelAdminLogEventActionToggleSignatures struct {
	NewValue bool
}

Channel signatures were enabled/disabled

func (*ChannelAdminLogEventActionToggleSignatures) CRC

func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleSlowMode

type ChannelAdminLogEventActionToggleSlowMode struct {
	PrevValue int32
	NewValue  int32
}

[Slow mode setting for supergroups was changed](https://core.telegram.org/method/channels.toggleSlowMode)

func (*ChannelAdminLogEventActionToggleSlowMode) CRC

func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionUpdatePinned

type ChannelAdminLogEventActionUpdatePinned struct {
	Message Message
}

A message was pinned

func (*ChannelAdminLogEventActionUpdatePinned) CRC

func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventsFilter

type ChannelAdminLogEventsFilter struct {
	Join      bool `tl:"flag:0,encoded_in_bitflags"`
	Leave     bool `tl:"flag:1,encoded_in_bitflags"`
	Invite    bool `tl:"flag:2,encoded_in_bitflags"`
	Ban       bool `tl:"flag:3,encoded_in_bitflags"`
	Unban     bool `tl:"flag:4,encoded_in_bitflags"`
	Kick      bool `tl:"flag:5,encoded_in_bitflags"`
	Unkick    bool `tl:"flag:6,encoded_in_bitflags"`
	Promote   bool `tl:"flag:7,encoded_in_bitflags"`
	Demote    bool `tl:"flag:8,encoded_in_bitflags"`
	Info      bool `tl:"flag:9,encoded_in_bitflags"`
	Settings  bool `tl:"flag:10,encoded_in_bitflags"`
	Pinned    bool `tl:"flag:11,encoded_in_bitflags"`
	Edit      bool `tl:"flag:12,encoded_in_bitflags"`
	Delete    bool `tl:"flag:13,encoded_in_bitflags"`
	GroupCall bool `tl:"flag:14,encoded_in_bitflags"`
	Invites   bool `tl:"flag:15,encoded_in_bitflags"`
	Send      bool `tl:"flag:16,encoded_in_bitflags"`
	Forums    bool `tl:"flag:17,encoded_in_bitflags"`
}

Filter only certain admin log events

func (*ChannelAdminLogEventsFilter) CRC

func (*ChannelAdminLogEventsFilter) FlagIndex

func (*ChannelAdminLogEventsFilter) FlagIndex() int

type ChannelForbidden

type ChannelForbidden struct {
	Broadcast  bool `tl:"flag:5,encoded_in_bitflags"`
	Megagroup  bool `tl:"flag:8,encoded_in_bitflags"`
	ID         int64
	AccessHash int64
	Title      string
	UntilDate  int32 `tl:"flag:16"`
}

Indicates a channel/supergroup we can't access because we were banned, or for some other reason.

func (*ChannelForbidden) CRC

func (*ChannelForbidden) CRC() uint32

func (*ChannelForbidden) FlagIndex

func (*ChannelForbidden) FlagIndex() int

func (*ChannelForbidden) ImplementsChat

func (*ChannelForbidden) ImplementsChat()

type ChannelFull

type ChannelFull struct {
	CanViewParticipants    bool `tl:"flag:3,encoded_in_bitflags"`
	CanSetUsername         bool `tl:"flag:6,encoded_in_bitflags"`
	CanSetStickers         bool `tl:"flag:7,encoded_in_bitflags"`
	HiddenPrehistory       bool `tl:"flag:10,encoded_in_bitflags"`
	CanSetLocation         bool `tl:"flag:16,encoded_in_bitflags"`
	HasScheduled           bool `tl:"flag:19,encoded_in_bitflags"`
	CanViewStats           bool `tl:"flag:20,encoded_in_bitflags"`
	Blocked                bool `tl:"flag:22,encoded_in_bitflags"`
	CanDeleteChannel       bool `tl:"flag2:0,encoded_in_bitflags"`
	Antispam               bool `tl:"flag2:1,encoded_in_bitflags"`
	ParticipantsHidden     bool `tl:"flag2:2,encoded_in_bitflags"`
	TranslationsDisabled   bool `tl:"flag2:3,encoded_in_bitflags"`
	StoriesPinnedAvailable bool `tl:"flag2:5,encoded_in_bitflags"`
	ViewForumAsMessages    bool `tl:"flag2:6,encoded_in_bitflags"`
	RestrictedSponsored    bool `tl:"flag2:11,encoded_in_bitflags"`
	CanViewRevenue         bool `tl:"flag2:12,encoded_in_bitflags"`
	PaidMediaAllowed       bool `tl:"flag2:14,encoded_in_bitflags"`
	CanViewStarsRevenue    bool `tl:"flag2:15,encoded_in_bitflags"`
	ID                     int64
	PaidReactionsAvailable bool `tl:"flag2:16,encoded_in_bitflags"`
	About                  string
	ParticipantsCount      int32 `tl:"flag:0"`
	AdminsCount            int32 `tl:"flag:1"`
	KickedCount            int32 `tl:"flag:2"`
	BannedCount            int32 `tl:"flag:2"`
	OnlineCount            int32 `tl:"flag:13"`
	ReadInboxMaxID         int32
	ReadOutboxMaxID        int32
	UnreadCount            int32
	ChatPhoto              Photo
	NotifySettings         *PeerNotifySettings
	ExportedInvite         ExportedChatInvite `tl:"flag:23"`
	BotInfo                []*BotInfo
	MigratedFromChatID     int64           `tl:"flag:4"`
	MigratedFromMaxID      int32           `tl:"flag:4"`
	PinnedMsgID            int32           `tl:"flag:5"`
	Stickerset             *StickerSet     `tl:"flag:8"`
	AvailableMinID         int32           `tl:"flag:9"`
	FolderID               int32           `tl:"flag:11"`
	LinkedChatID           int64           `tl:"flag:14"`
	Location               ChannelLocation `tl:"flag:15"`
	SlowmodeSeconds        int32           `tl:"flag:17"`
	SlowmodeNextSendDate   int32           `tl:"flag:18"`
	StatsDc                int32           `tl:"flag:12"`
	Pts                    int32
	Call                   *InputGroupCall `tl:"flag:21"`
	TtlPeriod              int32           `tl:"flag:24"`
	PendingSuggestions     []string        `tl:"flag:25"`
	GroupcallDefaultJoinAs Peer            `tl:"flag:26"`
	ThemeEmoticon          string          `tl:"flag:27"`
	RequestsPending        int32           `tl:"flag:28"`
	RecentRequesters       []int64         `tl:"flag:28"`
	DefaultSendAs          Peer            `tl:"flag:29"`
	AvailableReactions     ChatReactions   `tl:"flag:30"`
	ReactionsLimit         int32           `tl:"flag2:13"`
	Stories                *PeerStories    `tl:"flag2:4"`
	Wallpaper              WallPaper       `tl:"flag2:7"`
	BoostsApplied          int32           `tl:"flag2:8"`
	BoostsUnrestrict       int32           `tl:"flag2:9"`
	Emojiset               *StickerSet     `tl:"flag2:10"`
}

Full info about a [channel](https://core.telegram.org/api/channel#channels), [supergroup](https://core.telegram.org/api/channel#supergroups) or [gigagroup](https://core.telegram.org/api/channel#gigagroups).

func (*ChannelFull) CRC

func (*ChannelFull) CRC() uint32

func (*ChannelFull) FlagIndex

func (*ChannelFull) FlagIndex() int

func (*ChannelFull) ImplementsChatFull

func (*ChannelFull) ImplementsChatFull()

type ChannelLocation

type ChannelLocation interface {
	tl.Object
	ImplementsChannelLocation()
}

type ChannelLocationEmpty

type ChannelLocationEmpty struct{}

No location (normal supergroup)

func (*ChannelLocationEmpty) CRC

func (*ChannelLocationEmpty) ImplementsChannelLocation

func (*ChannelLocationEmpty) ImplementsChannelLocation()

type ChannelLocationObj

type ChannelLocationObj struct {
	GeoPoint GeoPoint
	Address  string
}

Geographical location of supergroup (geogroups)

func (*ChannelLocationObj) CRC

func (*ChannelLocationObj) CRC() uint32

func (*ChannelLocationObj) ImplementsChannelLocation

func (*ChannelLocationObj) ImplementsChannelLocation()

type ChannelMessagesFilter

type ChannelMessagesFilter interface {
	tl.Object
	ImplementsChannelMessagesFilter()
}

type ChannelMessagesFilterEmpty

type ChannelMessagesFilterEmpty struct{}

No filter

func (*ChannelMessagesFilterEmpty) CRC

func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter

func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter()

type ChannelMessagesFilterObj

type ChannelMessagesFilterObj struct {
	ExcludeNewMessages bool `tl:"flag:1,encoded_in_bitflags"`
	Ranges             []*MessageRange
}

Filter for getting only certain types of channel messages

func (*ChannelMessagesFilterObj) CRC

func (*ChannelMessagesFilterObj) FlagIndex

func (*ChannelMessagesFilterObj) FlagIndex() int

func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter

func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter()

type ChannelOptions

type ChannelOptions struct {
	About        string        `json:"about,omitempty"`
	NotBroadcast bool          `json:"broadcast,omitempty"`
	Megagroup    bool          `json:"megagroup,omitempty"`
	Address      string        `json:"address,omitempty"`
	ForImport    bool          `json:"for_import,omitempty"`
	GeoPoint     InputGeoPoint `json:"geo_point,omitempty"`
}

type ChannelParticipant

type ChannelParticipant interface {
	tl.Object
	ImplementsChannelParticipant()
}

type ChannelParticipantAdmin

type ChannelParticipantAdmin struct {
	CanEdit     bool `tl:"flag:0,encoded_in_bitflags"`
	Self        bool `tl:"flag:1,encoded_in_bitflags"`
	UserID      int64
	InviterID   int64 `tl:"flag:1"`
	PromotedBy  int64
	Date        int32
	AdminRights *ChatAdminRights
	Rank        string `tl:"flag:2"`
}

Admin

func (*ChannelParticipantAdmin) CRC

func (*ChannelParticipantAdmin) FlagIndex

func (*ChannelParticipantAdmin) FlagIndex() int

func (*ChannelParticipantAdmin) ImplementsChannelParticipant

func (*ChannelParticipantAdmin) ImplementsChannelParticipant()

type ChannelParticipantBanned

type ChannelParticipantBanned struct {
	Left         bool `tl:"flag:0,encoded_in_bitflags"`
	Peer         Peer
	KickedBy     int64
	Date         int32
	BannedRights *ChatBannedRights
}

Banned/kicked user

func (*ChannelParticipantBanned) CRC

func (*ChannelParticipantBanned) FlagIndex

func (*ChannelParticipantBanned) FlagIndex() int

func (*ChannelParticipantBanned) ImplementsChannelParticipant

func (*ChannelParticipantBanned) ImplementsChannelParticipant()

type ChannelParticipantCreator

type ChannelParticipantCreator struct {
	UserID      int64
	AdminRights *ChatAdminRights
	Rank        string `tl:"flag:0"`
}

Channel/supergroup creator

func (*ChannelParticipantCreator) CRC

func (*ChannelParticipantCreator) FlagIndex

func (*ChannelParticipantCreator) FlagIndex() int

func (*ChannelParticipantCreator) ImplementsChannelParticipant

func (*ChannelParticipantCreator) ImplementsChannelParticipant()

type ChannelParticipantLeft

type ChannelParticipantLeft struct {
	Peer Peer
}

A participant that left the channel/supergroup

func (*ChannelParticipantLeft) CRC

func (*ChannelParticipantLeft) ImplementsChannelParticipant

func (*ChannelParticipantLeft) ImplementsChannelParticipant()

type ChannelParticipantObj

type ChannelParticipantObj struct {
	UserID                int64
	Date                  int32
	SubscriptionUntilDate int32 `tl:"flag:0"`
}

Channel/supergroup participant

func (*ChannelParticipantObj) CRC

func (*ChannelParticipantObj) FlagIndex

func (*ChannelParticipantObj) FlagIndex() int

func (*ChannelParticipantObj) ImplementsChannelParticipant

func (*ChannelParticipantObj) ImplementsChannelParticipant()

type ChannelParticipantSelf

type ChannelParticipantSelf struct {
	ViaRequest            bool `tl:"flag:0,encoded_in_bitflags"`
	ViaInvite             bool `tl:"flag:0,encoded_in_bitflags"`
	UserID                int64
	InviterID             int64
	Date                  int32
	SubscriptionUntilDate int32 `tl:"flag:1"`
}

Myself

func (*ChannelParticipantSelf) CRC

func (*ChannelParticipantSelf) FlagIndex

func (*ChannelParticipantSelf) FlagIndex() int

func (*ChannelParticipantSelf) ImplementsChannelParticipant

func (*ChannelParticipantSelf) ImplementsChannelParticipant()

type ChannelParticipantsAdmins

type ChannelParticipantsAdmins struct{}

Fetch only admin participants

func (*ChannelParticipantsAdmins) CRC

func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter()

type ChannelParticipantsBanned

type ChannelParticipantsBanned struct {
	Q string
}

Fetch only banned participants

func (*ChannelParticipantsBanned) CRC

func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter()

type ChannelParticipantsBots

type ChannelParticipantsBots struct{}

Fetch only bot participants

func (*ChannelParticipantsBots) CRC

func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter()

type ChannelParticipantsContacts

type ChannelParticipantsContacts struct {
	Q string
}

Fetch only participants that are also contacts

func (*ChannelParticipantsContacts) CRC

func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter()

type ChannelParticipantsFilter

type ChannelParticipantsFilter interface {
	tl.Object
	ImplementsChannelParticipantsFilter()
}

type ChannelParticipantsKicked

type ChannelParticipantsKicked struct {
	Q string
}

Fetch only kicked participants

func (*ChannelParticipantsKicked) CRC

func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter()

type ChannelParticipantsMentions

type ChannelParticipantsMentions struct {
	Q        string `tl:"flag:0"`
	TopMsgID int32  `tl:"flag:1"`
}

This filter is used when looking for supergroup members to mention.<br> This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific [thread](https://core.telegram.org/api/threads) through the [comment section](https://core.telegram.org/api/threads#channel-comments) of a channel.

func (*ChannelParticipantsMentions) CRC

func (*ChannelParticipantsMentions) FlagIndex

func (*ChannelParticipantsMentions) FlagIndex() int

func (*ChannelParticipantsMentions) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsMentions) ImplementsChannelParticipantsFilter()

type ChannelParticipantsRecent

type ChannelParticipantsRecent struct{}

Fetch only recent participants

func (*ChannelParticipantsRecent) CRC

func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter()

type ChannelParticipantsSearch

type ChannelParticipantsSearch struct {
	Q string
}

Query participants by name

func (*ChannelParticipantsSearch) CRC

func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter()

type ChannelsAdminLogResults

type ChannelsAdminLogResults struct {
	Events []*ChannelAdminLogEvent
	Chats  []Chat
	Users  []User
}

Admin log events

func (*ChannelsAdminLogResults) CRC

type ChannelsChannelParticipant

type ChannelsChannelParticipant struct {
	Participant ChannelParticipant
	Chats       []Chat
	Users       []User
}

Represents a channel participant

func (*ChannelsChannelParticipant) CRC

type ChannelsChannelParticipants

type ChannelsChannelParticipants interface {
	tl.Object
	ImplementsChannelsChannelParticipants()
}

type ChannelsChannelParticipantsNotModified

type ChannelsChannelParticipantsNotModified struct{}

No new participant info could be found

func (*ChannelsChannelParticipantsNotModified) CRC

func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants

func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants()

type ChannelsChannelParticipantsObj

type ChannelsChannelParticipantsObj struct {
	Count        int32
	Participants []ChannelParticipant
	Chats        []Chat
	Users        []User
}

Represents multiple channel participants

func (*ChannelsChannelParticipantsObj) CRC

func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants

func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants()

type ChannelsCheckUsernameParams

type ChannelsCheckUsernameParams struct {
	Channel  InputChannel
	Username string
}

func (*ChannelsCheckUsernameParams) CRC

type ChannelsClickSponsoredMessageParams

type ChannelsClickSponsoredMessageParams struct {
	Channel  InputChannel
	RandomID []byte
}

func (*ChannelsClickSponsoredMessageParams) CRC

type ChannelsConvertToGigagroupParams

type ChannelsConvertToGigagroupParams struct {
	Channel InputChannel
}

func (*ChannelsConvertToGigagroupParams) CRC

type ChannelsCreateChannelParams

type ChannelsCreateChannelParams struct {
	Broadcast bool `tl:"flag:0,encoded_in_bitflags"`
	Megagroup bool `tl:"flag:1,encoded_in_bitflags"`
	ForImport bool `tl:"flag:3,encoded_in_bitflags"`
	Forum     bool `tl:"flag:5,encoded_in_bitflags"`
	Title     string
	About     string
	GeoPoint  InputGeoPoint `tl:"flag:2"`
	Address   string        `tl:"flag:2"`
	TtlPeriod int32         `tl:"flag:4"`
}

func (*ChannelsCreateChannelParams) CRC

func (*ChannelsCreateChannelParams) FlagIndex

func (*ChannelsCreateChannelParams) FlagIndex() int

type ChannelsCreateForumTopicParams

type ChannelsCreateForumTopicParams struct {
	Channel     InputChannel
	Title       string
	IconColor   int32 `tl:"flag:0"`
	IconEmojiID int64 `tl:"flag:3"`
	RandomID    int64
	SendAs      InputPeer `tl:"flag:2"`
}

func (*ChannelsCreateForumTopicParams) CRC

func (*ChannelsCreateForumTopicParams) FlagIndex

func (*ChannelsCreateForumTopicParams) FlagIndex() int

type ChannelsDeactivateAllUsernamesParams

type ChannelsDeactivateAllUsernamesParams struct {
	Channel InputChannel
}

func (*ChannelsDeactivateAllUsernamesParams) CRC

type ChannelsDeleteChannelParams

type ChannelsDeleteChannelParams struct {
	Channel InputChannel
}

func (*ChannelsDeleteChannelParams) CRC

type ChannelsDeleteHistoryParams

type ChannelsDeleteHistoryParams struct {
	ForEveryone bool `tl:"flag:0,encoded_in_bitflags"`
	Channel     InputChannel
	MaxID       int32
}

func (*ChannelsDeleteHistoryParams) CRC

func (*ChannelsDeleteHistoryParams) FlagIndex

func (*ChannelsDeleteHistoryParams) FlagIndex() int

type ChannelsDeleteMessagesParams

type ChannelsDeleteMessagesParams struct {
	Channel InputChannel
	ID      []int32
}

func (*ChannelsDeleteMessagesParams) CRC

type ChannelsDeleteParticipantHistoryParams

type ChannelsDeleteParticipantHistoryParams struct {
	Channel     InputChannel
	Participant InputPeer
}

func (*ChannelsDeleteParticipantHistoryParams) CRC

type ChannelsDeleteTopicHistoryParams

type ChannelsDeleteTopicHistoryParams struct {
	Channel  InputChannel
	TopMsgID int32
}

func (*ChannelsDeleteTopicHistoryParams) CRC

type ChannelsEditAdminParams

type ChannelsEditAdminParams struct {
	Channel     InputChannel
	UserID      InputUser
	AdminRights *ChatAdminRights
	Rank        string
}

func (*ChannelsEditAdminParams) CRC

type ChannelsEditBannedParams

type ChannelsEditBannedParams struct {
	Channel      InputChannel
	Participant  InputPeer
	BannedRights *ChatBannedRights
}

func (*ChannelsEditBannedParams) CRC

type ChannelsEditCreatorParams

type ChannelsEditCreatorParams struct {
	Channel  InputChannel
	UserID   InputUser
	Password InputCheckPasswordSRP
}

func (*ChannelsEditCreatorParams) CRC

type ChannelsEditForumTopicParams

type ChannelsEditForumTopicParams struct {
	Channel     InputChannel
	TopicID     int32
	Title       string `tl:"flag:0"`
	IconEmojiID int64  `tl:"flag:1"`
	Closed      bool   `tl:"flag:2"`
	Hidden      bool   `tl:"flag:3"`
}

func (*ChannelsEditForumTopicParams) CRC

func (*ChannelsEditForumTopicParams) FlagIndex

func (*ChannelsEditForumTopicParams) FlagIndex() int

type ChannelsEditLocationParams

type ChannelsEditLocationParams struct {
	Channel  InputChannel
	GeoPoint InputGeoPoint
	Address  string
}

func (*ChannelsEditLocationParams) CRC

type ChannelsEditPhotoParams

type ChannelsEditPhotoParams struct {
	Channel InputChannel
	Photo   InputChatPhoto
}

func (*ChannelsEditPhotoParams) CRC

type ChannelsEditTitleParams

type ChannelsEditTitleParams struct {
	Channel InputChannel
	Title   string
}

func (*ChannelsEditTitleParams) CRC

type ChannelsExportMessageLinkParams

type ChannelsExportMessageLinkParams struct {
	Grouped bool `tl:"flag:0,encoded_in_bitflags"`
	Thread  bool `tl:"flag:1,encoded_in_bitflags"`
	Channel InputChannel
	ID      int32
}

func (*ChannelsExportMessageLinkParams) CRC

func (*ChannelsExportMessageLinkParams) FlagIndex

func (*ChannelsExportMessageLinkParams) FlagIndex() int

type ChannelsGetAdminLogParams

type ChannelsGetAdminLogParams struct {
	Channel      InputChannel
	Q            string
	EventsFilter *ChannelAdminLogEventsFilter `tl:"flag:0"`
	Admins       []InputUser                  `tl:"flag:1"`
	MaxID        int64
	MinID        int64
	Limit        int32
}

func (*ChannelsGetAdminLogParams) CRC

func (*ChannelsGetAdminLogParams) FlagIndex

func (*ChannelsGetAdminLogParams) FlagIndex() int

type ChannelsGetAdminedPublicChannelsParams

type ChannelsGetAdminedPublicChannelsParams struct {
	ByLocation  bool `tl:"flag:0,encoded_in_bitflags"`
	CheckLimit  bool `tl:"flag:1,encoded_in_bitflags"`
	ForPersonal bool `tl:"flag:2,encoded_in_bitflags"`
}

func (*ChannelsGetAdminedPublicChannelsParams) CRC

func (*ChannelsGetAdminedPublicChannelsParams) FlagIndex

type ChannelsGetChannelRecommendationsParams

type ChannelsGetChannelRecommendationsParams struct {
	Channel InputChannel `tl:"flag:0"`
}

func (*ChannelsGetChannelRecommendationsParams) CRC

func (*ChannelsGetChannelRecommendationsParams) FlagIndex

type ChannelsGetChannelsParams

type ChannelsGetChannelsParams struct {
	ID []InputChannel
}

func (*ChannelsGetChannelsParams) CRC

type ChannelsGetForumTopicsByIDParams

type ChannelsGetForumTopicsByIDParams struct {
	Channel InputChannel
	Topics  []int32
}

func (*ChannelsGetForumTopicsByIDParams) CRC

type ChannelsGetForumTopicsParams

type ChannelsGetForumTopicsParams struct {
	Channel     InputChannel
	Q           string `tl:"flag:0"`
	OffsetDate  int32
	OffsetID    int32
	OffsetTopic int32
	Limit       int32
}

func (*ChannelsGetForumTopicsParams) CRC

func (*ChannelsGetForumTopicsParams) FlagIndex

func (*ChannelsGetForumTopicsParams) FlagIndex() int

type ChannelsGetFullChannelParams

type ChannelsGetFullChannelParams struct {
	Channel InputChannel
}

func (*ChannelsGetFullChannelParams) CRC

type ChannelsGetGroupsForDiscussionParams

type ChannelsGetGroupsForDiscussionParams struct{}

func (*ChannelsGetGroupsForDiscussionParams) CRC

type ChannelsGetInactiveChannelsParams

type ChannelsGetInactiveChannelsParams struct{}

func (*ChannelsGetInactiveChannelsParams) CRC

type ChannelsGetLeftChannelsParams

type ChannelsGetLeftChannelsParams struct {
	Offset int32
}

func (*ChannelsGetLeftChannelsParams) CRC

type ChannelsGetMessagesParams

type ChannelsGetMessagesParams struct {
	Channel InputChannel
	ID      []InputMessage
}

func (*ChannelsGetMessagesParams) CRC

type ChannelsGetParticipantParams

type ChannelsGetParticipantParams struct {
	Channel     InputChannel
	Participant InputPeer
}

func (*ChannelsGetParticipantParams) CRC

type ChannelsGetParticipantsParams

type ChannelsGetParticipantsParams struct {
	Channel InputChannel
	Filter  ChannelParticipantsFilter
	Offset  int32
	Limit   int32
	Hash    int64
}

func (*ChannelsGetParticipantsParams) CRC

type ChannelsGetSendAsParams

type ChannelsGetSendAsParams struct {
	Peer InputPeer
}

func (*ChannelsGetSendAsParams) CRC

type ChannelsGetSponsoredMessagesParams

type ChannelsGetSponsoredMessagesParams struct {
	Channel InputChannel
}

func (*ChannelsGetSponsoredMessagesParams) CRC

type ChannelsInviteToChannelParams

type ChannelsInviteToChannelParams struct {
	Channel InputChannel
	Users   []InputUser
}

func (*ChannelsInviteToChannelParams) CRC

type ChannelsJoinChannelParams

type ChannelsJoinChannelParams struct {
	Channel InputChannel
}

func (*ChannelsJoinChannelParams) CRC

type ChannelsLeaveChannelParams

type ChannelsLeaveChannelParams struct {
	Channel InputChannel
}

func (*ChannelsLeaveChannelParams) CRC

type ChannelsReadHistoryParams

type ChannelsReadHistoryParams struct {
	Channel InputChannel
	MaxID   int32
}

func (*ChannelsReadHistoryParams) CRC

type ChannelsReadMessageContentsParams

type ChannelsReadMessageContentsParams struct {
	Channel InputChannel
	ID      []int32
}

func (*ChannelsReadMessageContentsParams) CRC

type ChannelsReorderPinnedForumTopicsParams

type ChannelsReorderPinnedForumTopicsParams struct {
	Force   bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
	Order   []int32
}

func (*ChannelsReorderPinnedForumTopicsParams) CRC

func (*ChannelsReorderPinnedForumTopicsParams) FlagIndex

type ChannelsReorderUsernamesParams

type ChannelsReorderUsernamesParams struct {
	Channel InputChannel
	Order   []string
}

func (*ChannelsReorderUsernamesParams) CRC

type ChannelsReportAntiSpamFalsePositiveParams

type ChannelsReportAntiSpamFalsePositiveParams struct {
	Channel InputChannel
	MsgID   int32
}

func (*ChannelsReportAntiSpamFalsePositiveParams) CRC

type ChannelsReportSpamParams

type ChannelsReportSpamParams struct {
	Channel     InputChannel
	Participant InputPeer
	ID          []int32
}

func (*ChannelsReportSpamParams) CRC

type ChannelsReportSponsoredMessageParams

type ChannelsReportSponsoredMessageParams struct {
	Channel  InputChannel
	RandomID []byte
	Option   []byte
}

func (*ChannelsReportSponsoredMessageParams) CRC

type ChannelsRestrictSponsoredMessagesParams

type ChannelsRestrictSponsoredMessagesParams struct {
	Channel    InputChannel
	Restricted bool
}

func (*ChannelsRestrictSponsoredMessagesParams) CRC

type ChannelsSearchPostsParams

type ChannelsSearchPostsParams struct {
	Hashtag    string
	OffsetRate int32
	OffsetPeer InputPeer
	OffsetID   int32
	Limit      int32
}

func (*ChannelsSearchPostsParams) CRC

type ChannelsSendAsPeers

type ChannelsSendAsPeers struct {
	Peers []*SendAsPeer
	Chats []Chat
	Users []User
}

A list of peers that can be used to send messages in a specific group

func (*ChannelsSendAsPeers) CRC

func (*ChannelsSendAsPeers) CRC() uint32

type ChannelsSetBoostsToUnblockRestrictionsParams

type ChannelsSetBoostsToUnblockRestrictionsParams struct {
	Channel InputChannel
	Boosts  int32
}

func (*ChannelsSetBoostsToUnblockRestrictionsParams) CRC

type ChannelsSetDiscussionGroupParams

type ChannelsSetDiscussionGroupParams struct {
	Broadcast InputChannel
	Group     InputChannel
}

func (*ChannelsSetDiscussionGroupParams) CRC

type ChannelsSetEmojiStickersParams

type ChannelsSetEmojiStickersParams struct {
	Channel    InputChannel
	Stickerset InputStickerSet
}

func (*ChannelsSetEmojiStickersParams) CRC

type ChannelsSetStickersParams

type ChannelsSetStickersParams struct {
	Channel    InputChannel
	Stickerset InputStickerSet
}

func (*ChannelsSetStickersParams) CRC

type ChannelsSponsoredMessageReportResult

type ChannelsSponsoredMessageReportResult interface {
	tl.Object
	ImplementsChannelsSponsoredMessageReportResult()
}

type ChannelsSponsoredMessageReportResultAdsHidden

type ChannelsSponsoredMessageReportResultAdsHidden struct{}

func (*ChannelsSponsoredMessageReportResultAdsHidden) CRC

func (*ChannelsSponsoredMessageReportResultAdsHidden) ImplementsChannelsSponsoredMessageReportResult

func (*ChannelsSponsoredMessageReportResultAdsHidden) ImplementsChannelsSponsoredMessageReportResult()

type ChannelsSponsoredMessageReportResultChooseOption

type ChannelsSponsoredMessageReportResultChooseOption struct {
	Title   string
	Options []*SponsoredMessageReportOption
}

func (*ChannelsSponsoredMessageReportResultChooseOption) CRC

func (*ChannelsSponsoredMessageReportResultChooseOption) ImplementsChannelsSponsoredMessageReportResult

func (*ChannelsSponsoredMessageReportResultChooseOption) ImplementsChannelsSponsoredMessageReportResult()

type ChannelsSponsoredMessageReportResultReported

type ChannelsSponsoredMessageReportResultReported struct{}

func (*ChannelsSponsoredMessageReportResultReported) CRC

func (*ChannelsSponsoredMessageReportResultReported) ImplementsChannelsSponsoredMessageReportResult

func (*ChannelsSponsoredMessageReportResultReported) ImplementsChannelsSponsoredMessageReportResult()

type ChannelsToggleAntiSpamParams

type ChannelsToggleAntiSpamParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleAntiSpamParams) CRC

type ChannelsToggleForumParams

type ChannelsToggleForumParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleForumParams) CRC

type ChannelsToggleJoinRequestParams

type ChannelsToggleJoinRequestParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleJoinRequestParams) CRC

type ChannelsToggleJoinToSendParams

type ChannelsToggleJoinToSendParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleJoinToSendParams) CRC

type ChannelsToggleParticipantsHiddenParams

type ChannelsToggleParticipantsHiddenParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleParticipantsHiddenParams) CRC

type ChannelsTogglePreHistoryHiddenParams

type ChannelsTogglePreHistoryHiddenParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsTogglePreHistoryHiddenParams) CRC

type ChannelsToggleSignaturesParams

type ChannelsToggleSignaturesParams struct {
	Channel           InputChannel
	SignaturesEnabled bool `tl:"flag:0,encoded_in_bitflags"`
	ProfilesEnabled   bool `tl:"flag:1,encoded_in_bitflags"`
}

func (*ChannelsToggleSignaturesParams) CRC

func (*ChannelsToggleSignaturesParams) FlagIndex

func (*ChannelsToggleSignaturesParams) FlagIndex() int

type ChannelsToggleSlowModeParams

type ChannelsToggleSlowModeParams struct {
	Channel InputChannel
	Seconds int32
}

func (*ChannelsToggleSlowModeParams) CRC

type ChannelsToggleUsernameParams

type ChannelsToggleUsernameParams struct {
	Channel  InputChannel
	Username string
	Active   bool
}

func (*ChannelsToggleUsernameParams) CRC

type ChannelsToggleViewForumAsMessagesParams

type ChannelsToggleViewForumAsMessagesParams struct {
	Channel InputChannel
	Enabled bool
}

func (*ChannelsToggleViewForumAsMessagesParams) CRC

type ChannelsUpdateColorParams

type ChannelsUpdateColorParams struct {
	ForProfile        bool `tl:"flag:1,encoded_in_bitflags"`
	Channel           InputChannel
	Color             int32 `tl:"flag:2"`
	BackgroundEmojiID int64 `tl:"flag:0"`
}

func (*ChannelsUpdateColorParams) CRC

func (*ChannelsUpdateColorParams) FlagIndex

func (*ChannelsUpdateColorParams) FlagIndex() int

type ChannelsUpdateEmojiStatusParams

type ChannelsUpdateEmojiStatusParams struct {
	Channel     InputChannel
	EmojiStatus EmojiStatus
}

func (*ChannelsUpdateEmojiStatusParams) CRC

type ChannelsUpdatePinnedForumTopicParams

type ChannelsUpdatePinnedForumTopicParams struct {
	Channel InputChannel
	TopicID int32
	Pinned  bool
}

func (*ChannelsUpdatePinnedForumTopicParams) CRC

type ChannelsUpdateUsernameParams

type ChannelsUpdateUsernameParams struct {
	Channel  InputChannel
	Username string
}

func (*ChannelsUpdateUsernameParams) CRC

type ChannelsViewSponsoredMessageParams

type ChannelsViewSponsoredMessageParams struct {
	Channel  InputChannel
	RandomID []byte
}

func (*ChannelsViewSponsoredMessageParams) CRC

type Chat

type Chat interface {
	tl.Object
	ImplementsChat()
}

type ChatAdminRights

type ChatAdminRights struct {
	ChangeInfo     bool `tl:"flag:0,encoded_in_bitflags"`
	PostMessages   bool `tl:"flag:1,encoded_in_bitflags"`
	EditMessages   bool `tl:"flag:2,encoded_in_bitflags"`
	DeleteMessages bool `tl:"flag:3,encoded_in_bitflags"`
	BanUsers       bool `tl:"flag:4,encoded_in_bitflags"`
	InviteUsers    bool `tl:"flag:5,encoded_in_bitflags"`
	PinMessages    bool `tl:"flag:7,encoded_in_bitflags"`
	AddAdmins      bool `tl:"flag:9,encoded_in_bitflags"`
	Anonymous      bool `tl:"flag:10,encoded_in_bitflags"`
	ManageCall     bool `tl:"flag:11,encoded_in_bitflags"`
	Other          bool `tl:"flag:12,encoded_in_bitflags"`
	ManageTopics   bool `tl:"flag:13,encoded_in_bitflags"`
	PostStories    bool `tl:"flag:14,encoded_in_bitflags"`
	EditStories    bool `tl:"flag:15,encoded_in_bitflags"`
	DeleteStories  bool `tl:"flag:16,encoded_in_bitflags"`
}

Represents the rights of an admin in a channel/supergroup(https://core.telegram.org/api/channel).

func (*ChatAdminRights) CRC

func (*ChatAdminRights) CRC() uint32

func (*ChatAdminRights) FlagIndex

func (*ChatAdminRights) FlagIndex() int

type ChatAdminWithInvites

type ChatAdminWithInvites struct {
	AdminID             int64
	InvitesCount        int32
	RevokedInvitesCount int32
}

Info about chat invites generated by admins.

func (*ChatAdminWithInvites) CRC

type ChatBannedRights

type ChatBannedRights struct {
	ViewMessages    bool `tl:"flag:0,encoded_in_bitflags"`
	SendMessages    bool `tl:"flag:1,encoded_in_bitflags"`
	SendMedia       bool `tl:"flag:2,encoded_in_bitflags"`
	SendStickers    bool `tl:"flag:3,encoded_in_bitflags"`
	SendGifs        bool `tl:"flag:4,encoded_in_bitflags"`
	SendGames       bool `tl:"flag:5,encoded_in_bitflags"`
	SendInline      bool `tl:"flag:6,encoded_in_bitflags"`
	EmbedLinks      bool `tl:"flag:7,encoded_in_bitflags"`
	SendPolls       bool `tl:"flag:8,encoded_in_bitflags"`
	ChangeInfo      bool `tl:"flag:10,encoded_in_bitflags"`
	InviteUsers     bool `tl:"flag:15,encoded_in_bitflags"`
	PinMessages     bool `tl:"flag:17,encoded_in_bitflags"`
	ManageTopics    bool `tl:"flag:18,encoded_in_bitflags"`
	SendPhotos      bool `tl:"flag:19,encoded_in_bitflags"`
	SendVideos      bool `tl:"flag:20,encoded_in_bitflags"`
	SendRoundvideos bool `tl:"flag:21,encoded_in_bitflags"`
	SendAudios      bool `tl:"flag:22,encoded_in_bitflags"`
	SendVoices      bool `tl:"flag:23,encoded_in_bitflags"`
	SendDocs        bool `tl:"flag:24,encoded_in_bitflags"`
	SendPlain       bool `tl:"flag:25,encoded_in_bitflags"`
	UntilDate       int32
}

Represents the rights of a normal user in a supergroup/channel/chat(https://core.telegram.org/api/channel). In this case, the flags are inverted: if set, a flag <strong>does not allow</strong> a user to do X.

func (*ChatBannedRights) CRC

func (*ChatBannedRights) CRC() uint32

func (*ChatBannedRights) FlagIndex

func (*ChatBannedRights) FlagIndex() int

type ChatEmpty

type ChatEmpty struct {
	ID int64
}

Empty constructor, group doesn't exist

func (*ChatEmpty) CRC

func (*ChatEmpty) CRC() uint32

func (*ChatEmpty) ImplementsChat

func (*ChatEmpty) ImplementsChat()

type ChatForbidden

type ChatForbidden struct {
	ID    int64
	Title string
}

A group to which the user has no access. E.g., because the user was kicked from the group.

func (*ChatForbidden) CRC

func (*ChatForbidden) CRC() uint32

func (*ChatForbidden) ImplementsChat

func (*ChatForbidden) ImplementsChat()

type ChatFull

type ChatFull interface {
	tl.Object
	ImplementsChatFull()
}

type ChatFullObj

type ChatFullObj struct {
	CanSetUsername         bool `tl:"flag:7,encoded_in_bitflags"`
	HasScheduled           bool `tl:"flag:8,encoded_in_bitflags"`
	TranslationsDisabled   bool `tl:"flag:19,encoded_in_bitflags"`
	ID                     int64
	About                  string
	Participants           ChatParticipants
	ChatPhoto              Photo `tl:"flag:2"`
	NotifySettings         *PeerNotifySettings
	ExportedInvite         ExportedChatInvite `tl:"flag:13"`
	BotInfo                []*BotInfo         `tl:"flag:3"`
	PinnedMsgID            int32              `tl:"flag:6"`
	FolderID               int32              `tl:"flag:11"`
	Call                   *InputGroupCall    `tl:"flag:12"`
	TtlPeriod              int32              `tl:"flag:14"`
	GroupcallDefaultJoinAs Peer               `tl:"flag:15"`
	ThemeEmoticon          string             `tl:"flag:16"`
	RequestsPending        int32              `tl:"flag:17"`
	RecentRequesters       []int64            `tl:"flag:17"`
	AvailableReactions     ChatReactions      `tl:"flag:18"`
	ReactionsLimit         int32              `tl:"flag:20"`
}

Full info about a [basic group](https://core.telegram.org/api/channel#basic-groups).

func (*ChatFullObj) CRC

func (*ChatFullObj) CRC() uint32

func (*ChatFullObj) FlagIndex

func (*ChatFullObj) FlagIndex() int

func (*ChatFullObj) ImplementsChatFull

func (*ChatFullObj) ImplementsChatFull()

type ChatInvite

type ChatInvite interface {
	tl.Object
	ImplementsChatInvite()
}

type ChatInviteAlready

type ChatInviteAlready struct {
	Chat Chat
}

The user has already joined this chat

func (*ChatInviteAlready) CRC

func (*ChatInviteAlready) CRC() uint32

func (*ChatInviteAlready) ImplementsChatInvite

func (*ChatInviteAlready) ImplementsChatInvite()

type ChatInviteExported

type ChatInviteExported struct {
	Revoked             bool `tl:"flag:0,encoded_in_bitflags"`
	Permanent           bool `tl:"flag:5,encoded_in_bitflags"`
	RequestNeeded       bool `tl:"flag:6,encoded_in_bitflags"`
	Link                string
	AdminID             int64
	Date                int32
	StartDate           int32                     `tl:"flag:4"`
	ExpireDate          int32                     `tl:"flag:1"`
	UsageLimit          int32                     `tl:"flag:2"`
	Usage               int32                     `tl:"flag:3"`
	Requested           int32                     `tl:"flag:7"`
	Title               string                    `tl:"flag:8"`
	SubscriptionExpired int32                     `tl:"flag:10"`
	SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:9"`
}

Exported chat invite

func (*ChatInviteExported) CRC

func (*ChatInviteExported) CRC() uint32

func (*ChatInviteExported) FlagIndex

func (*ChatInviteExported) FlagIndex() int

func (*ChatInviteExported) ImplementsExportedChatInvite

func (*ChatInviteExported) ImplementsExportedChatInvite()

type ChatInviteImporter

type ChatInviteImporter struct {
	Requested   bool `tl:"flag:0,encoded_in_bitflags"`
	ViaChatlist bool `tl:"flag:3,encoded_in_bitflags"`
	UserID      int64
	Date        int32
	About       string `tl:"flag:2"`
	ApprovedBy  int64  `tl:"flag:1"`
}

When and which user joined the chat using a chat invite

func (*ChatInviteImporter) CRC

func (*ChatInviteImporter) CRC() uint32

func (*ChatInviteImporter) FlagIndex

func (*ChatInviteImporter) FlagIndex() int

type ChatInviteObj

type ChatInviteObj struct {
	Channel                  bool `tl:"flag:0,encoded_in_bitflags"`
	Broadcast                bool `tl:"flag:1,encoded_in_bitflags"`
	Public                   bool `tl:"flag:2,encoded_in_bitflags"`
	Megagroup                bool `tl:"flag:3,encoded_in_bitflags"`
	RequestNeeded            bool `tl:"flag:6,encoded_in_bitflags"`
	Verified                 bool `tl:"flag:7,encoded_in_bitflags"`
	Scam                     bool `tl:"flag:8,encoded_in_bitflags"`
	Fake                     bool `tl:"flag:9,encoded_in_bitflags"`
	Title                    string
	CanRefulfillSubscription bool   `tl:"flag:11,encoded_in_bitflags"`
	About                    string `tl:"flag:5"`
	Photo                    Photo
	ParticipantsCount        int32
	Participants             []User `tl:"flag:4"`
	Color                    int32
	SubscriptionPricing      *StarsSubscriptionPricing `tl:"flag:10"`
	SubscriptionFormID       int64                     `tl:"flag:12"`
}

Chat invite info

func (*ChatInviteObj) CRC

func (*ChatInviteObj) CRC() uint32

func (*ChatInviteObj) FlagIndex

func (*ChatInviteObj) FlagIndex() int

func (*ChatInviteObj) ImplementsChatInvite

func (*ChatInviteObj) ImplementsChatInvite()

type ChatInvitePeek

type ChatInvitePeek struct {
	Chat    Chat
	Expires int32
}

A chat invitation that also allows peeking into the group to read messages without joining it.

func (*ChatInvitePeek) CRC

func (*ChatInvitePeek) CRC() uint32

func (*ChatInvitePeek) ImplementsChatInvite

func (*ChatInvitePeek) ImplementsChatInvite()

type ChatInvitePublicJoinRequests

type ChatInvitePublicJoinRequests struct{}

Used in updates and in the channel log to indicate when a user is requesting to join or has joined a [discussion group](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group)

func (*ChatInvitePublicJoinRequests) CRC

func (*ChatInvitePublicJoinRequests) ImplementsExportedChatInvite

func (*ChatInvitePublicJoinRequests) ImplementsExportedChatInvite()

type ChatObj

type ChatObj struct {
	Creator             bool `tl:"flag:0,encoded_in_bitflags"`
	Left                bool `tl:"flag:2,encoded_in_bitflags"`
	Deactivated         bool `tl:"flag:5,encoded_in_bitflags"`
	CallActive          bool `tl:"flag:23,encoded_in_bitflags"`
	CallNotEmpty        bool `tl:"flag:24,encoded_in_bitflags"`
	Noforwards          bool `tl:"flag:25,encoded_in_bitflags"`
	ID                  int64
	Title               string
	Photo               ChatPhoto
	ParticipantsCount   int32
	Date                int32
	Version             int32
	MigratedTo          InputChannel      `tl:"flag:6"`
	AdminRights         *ChatAdminRights  `tl:"flag:14"`
	DefaultBannedRights *ChatBannedRights `tl:"flag:18"`
}

Info about a group

func (*ChatObj) CRC

func (*ChatObj) CRC() uint32

func (*ChatObj) FlagIndex

func (*ChatObj) FlagIndex() int

func (*ChatObj) ImplementsChat

func (*ChatObj) ImplementsChat()

type ChatOnlines

type ChatOnlines struct {
	Onlines int32
}

Number of online users in a chat

func (*ChatOnlines) CRC

func (*ChatOnlines) CRC() uint32

type ChatParticipant

type ChatParticipant interface {
	tl.Object
	ImplementsChatParticipant()
}

type ChatParticipantAdmin

type ChatParticipantAdmin struct {
	UserID    int64
	InviterID int64
	Date      int32
}

Chat admin

func (*ChatParticipantAdmin) CRC

func (*ChatParticipantAdmin) ImplementsChatParticipant

func (*ChatParticipantAdmin) ImplementsChatParticipant()

type ChatParticipantCreator

type ChatParticipantCreator struct {
	UserID int64
}

Represents the creator of the group

func (*ChatParticipantCreator) CRC

func (*ChatParticipantCreator) ImplementsChatParticipant

func (*ChatParticipantCreator) ImplementsChatParticipant()

type ChatParticipantObj

type ChatParticipantObj struct {
	UserID    int64
	InviterID int64
	Date      int32
}

Group member.

func (*ChatParticipantObj) CRC

func (*ChatParticipantObj) CRC() uint32

func (*ChatParticipantObj) ImplementsChatParticipant

func (*ChatParticipantObj) ImplementsChatParticipant()

type ChatParticipants

type ChatParticipants interface {
	tl.Object
	ImplementsChatParticipants()
}

type ChatParticipantsForbidden

type ChatParticipantsForbidden struct {
	ChatID          int64
	SelfParticipant ChatParticipant `tl:"flag:0"`
}

Info on members is unavailable

func (*ChatParticipantsForbidden) CRC

func (*ChatParticipantsForbidden) FlagIndex

func (*ChatParticipantsForbidden) FlagIndex() int

func (*ChatParticipantsForbidden) ImplementsChatParticipants

func (*ChatParticipantsForbidden) ImplementsChatParticipants()

type ChatParticipantsObj

type ChatParticipantsObj struct {
	ChatID       int64
	Participants []ChatParticipant
	Version      int32
}

Group members.

func (*ChatParticipantsObj) CRC

func (*ChatParticipantsObj) CRC() uint32

func (*ChatParticipantsObj) ImplementsChatParticipants

func (*ChatParticipantsObj) ImplementsChatParticipants()

type ChatPhoto

type ChatPhoto interface {
	tl.Object
	ImplementsChatPhoto()
}

type ChatPhotoEmpty

type ChatPhotoEmpty struct{}

Group photo is not set.

func (*ChatPhotoEmpty) CRC

func (*ChatPhotoEmpty) CRC() uint32

func (*ChatPhotoEmpty) ImplementsChatPhoto

func (*ChatPhotoEmpty) ImplementsChatPhoto()

type ChatPhotoObj

type ChatPhotoObj struct {
	HasVideo      bool `tl:"flag:0,encoded_in_bitflags"`
	PhotoID       int64
	StrippedThumb []byte `tl:"flag:1"`
	DcID          int32
}

Group profile photo.

func (*ChatPhotoObj) CRC

func (*ChatPhotoObj) CRC() uint32

func (*ChatPhotoObj) FlagIndex

func (*ChatPhotoObj) FlagIndex() int

func (*ChatPhotoObj) ImplementsChatPhoto

func (*ChatPhotoObj) ImplementsChatPhoto()

type ChatReactions

type ChatReactions interface {
	tl.Object
	ImplementsChatReactions()
}

type ChatReactionsAll

type ChatReactionsAll struct {
	AllowCustom bool `tl:"flag:0,encoded_in_bitflags"`
}

All reactions or all non-custom reactions are allowed

func (*ChatReactionsAll) CRC

func (*ChatReactionsAll) CRC() uint32

func (*ChatReactionsAll) FlagIndex

func (*ChatReactionsAll) FlagIndex() int

func (*ChatReactionsAll) ImplementsChatReactions

func (*ChatReactionsAll) ImplementsChatReactions()

type ChatReactionsNone

type ChatReactionsNone struct{}

No reactions are allowed

func (*ChatReactionsNone) CRC

func (*ChatReactionsNone) CRC() uint32

func (*ChatReactionsNone) ImplementsChatReactions

func (*ChatReactionsNone) ImplementsChatReactions()

type ChatReactionsSome

type ChatReactionsSome struct {
	Reactions []Reaction
}

Some reactions are allowed

func (*ChatReactionsSome) CRC

func (*ChatReactionsSome) CRC() uint32

func (*ChatReactionsSome) ImplementsChatReactions

func (*ChatReactionsSome) ImplementsChatReactions()

type ChatlistsChatlistInvite

type ChatlistsChatlistInvite interface {
	tl.Object
	ImplementsChatlistsChatlistInvite()
}

type ChatlistsChatlistInviteAlready

type ChatlistsChatlistInviteAlready struct {
	FilterID     int32
	MissingPeers []Peer
	AlreadyPeers []Peer
	Chats        []Chat
	Users        []User
}

Updated info about a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links) we already imported.

func (*ChatlistsChatlistInviteAlready) CRC

func (*ChatlistsChatlistInviteAlready) ImplementsChatlistsChatlistInvite

func (*ChatlistsChatlistInviteAlready) ImplementsChatlistsChatlistInvite()

type ChatlistsChatlistInviteObj

type ChatlistsChatlistInviteObj struct {
	Title    string
	Emoticon string `tl:"flag:0"`
	Peers    []Peer
	Chats    []Chat
	Users    []User
}

Info about a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*ChatlistsChatlistInviteObj) CRC

func (*ChatlistsChatlistInviteObj) FlagIndex

func (*ChatlistsChatlistInviteObj) FlagIndex() int

func (*ChatlistsChatlistInviteObj) ImplementsChatlistsChatlistInvite

func (*ChatlistsChatlistInviteObj) ImplementsChatlistsChatlistInvite()

type ChatlistsChatlistUpdates

type ChatlistsChatlistUpdates struct {
	MissingPeers []Peer
	Chats        []Chat
	Users        []User
}

Updated information about a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*ChatlistsChatlistUpdates) CRC

type ChatlistsCheckChatlistInviteParams

type ChatlistsCheckChatlistInviteParams struct {
	Slug string
}

func (*ChatlistsCheckChatlistInviteParams) CRC

type ChatlistsDeleteExportedInviteParams

type ChatlistsDeleteExportedInviteParams struct {
	Chatlist *InputChatlistDialogFilter
	Slug     string
}

func (*ChatlistsDeleteExportedInviteParams) CRC

type ChatlistsEditExportedInviteParams

type ChatlistsEditExportedInviteParams struct {
	Chatlist *InputChatlistDialogFilter
	Slug     string
	Title    string      `tl:"flag:1"`
	Peers    []InputPeer `tl:"flag:2"`
}

func (*ChatlistsEditExportedInviteParams) CRC

func (*ChatlistsEditExportedInviteParams) FlagIndex

type ChatlistsExportChatlistInviteParams

type ChatlistsExportChatlistInviteParams struct {
	Chatlist *InputChatlistDialogFilter
	Title    string
	Peers    []InputPeer
}

func (*ChatlistsExportChatlistInviteParams) CRC

type ChatlistsExportedChatlistInvite

type ChatlistsExportedChatlistInvite struct {
	Filter DialogFilter
	Invite *ExportedChatlistInvite
}

Info about an exported [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*ChatlistsExportedChatlistInvite) CRC

type ChatlistsExportedInvites

type ChatlistsExportedInvites struct {
	Invites []*ExportedChatlistInvite
	Chats   []Chat
	Users   []User
}

Info about multiple [chat folder deep links »](https://core.telegram.org/api/links#chat-folder-links).

func (*ChatlistsExportedInvites) CRC

type ChatlistsGetChatlistUpdatesParams

type ChatlistsGetChatlistUpdatesParams struct {
	Chatlist *InputChatlistDialogFilter
}

func (*ChatlistsGetChatlistUpdatesParams) CRC

type ChatlistsGetExportedInvitesParams

type ChatlistsGetExportedInvitesParams struct {
	Chatlist *InputChatlistDialogFilter
}

func (*ChatlistsGetExportedInvitesParams) CRC

type ChatlistsGetLeaveChatlistSuggestionsParams

type ChatlistsGetLeaveChatlistSuggestionsParams struct {
	Chatlist *InputChatlistDialogFilter
}

func (*ChatlistsGetLeaveChatlistSuggestionsParams) CRC

type ChatlistsHideChatlistUpdatesParams

type ChatlistsHideChatlistUpdatesParams struct {
	Chatlist *InputChatlistDialogFilter
}

func (*ChatlistsHideChatlistUpdatesParams) CRC

type ChatlistsJoinChatlistInviteParams

type ChatlistsJoinChatlistInviteParams struct {
	Slug  string
	Peers []InputPeer
}

func (*ChatlistsJoinChatlistInviteParams) CRC

type ChatlistsJoinChatlistUpdatesParams

type ChatlistsJoinChatlistUpdatesParams struct {
	Chatlist *InputChatlistDialogFilter
	Peers    []InputPeer
}

func (*ChatlistsJoinChatlistUpdatesParams) CRC

type ChatlistsLeaveChatlistParams

type ChatlistsLeaveChatlistParams struct {
	Chatlist *InputChatlistDialogFilter
	Peers    []InputPeer
}

func (*ChatlistsLeaveChatlistParams) CRC

type Client

type Client struct {
	*mtproto.MTProto
	Cache *CACHE

	Log *utils.Logger
	// contains filtered or unexported fields
}

Client is the main struct of the library

func NewClient

func NewClient(config ClientConfig) (*Client, error)

func (*Client) AcceptTOS

func (c *Client) AcceptTOS() (bool, error)

func (*Client) AccountAcceptAuthorization

func (c *Client) AccountAcceptAuthorization(botID int64, scope, publicKey string, valueHashes []*SecureValueHash, credentials *SecureCredentialsEncrypted) (bool, error)

Sends a Telegram Passport authorization form, effectively sharing data with the service

func (*Client) AccountCancelPasswordEmail

func (c *Client) AccountCancelPasswordEmail() (bool, error)

Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).

func (*Client) AccountChangeAuthorizationSettings

func (c *Client) AccountChangeAuthorizationSettings(confirmed bool, hash int64, encryptedRequestsDisabled, callRequestsDisabled bool) (bool, error)

Change settings related to a session.

func (*Client) AccountChangePhone

func (c *Client) AccountChangePhone(phoneNumber, phoneCodeHash, phoneCode string) (User, error)

Change the phone number of the current account

func (*Client) AccountCheckUsername

func (c *Client) AccountCheckUsername(username string) (bool, error)

Validates a username and checks availability.

func (*Client) AccountClearRecentEmojiStatuses

func (c *Client) AccountClearRecentEmojiStatuses() (bool, error)

Clears list of recently used [emoji statuses](https://core.telegram.org/api/emoji-status)

func (*Client) AccountConfirmPasswordEmail

func (c *Client) AccountConfirmPasswordEmail(code string) (bool, error)

Verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).

func (*Client) AccountConfirmPhone

func (c *Client) AccountConfirmPhone(phoneCodeHash, phoneCode string) (bool, error)

Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion)

func (c *Client) AccountCreateBusinessChatLink(link *InputBusinessChatLink) (*BusinessChatLink, error)

func (*Client) AccountCreateTheme

func (c *Client) AccountCreateTheme(slug, title string, document InputDocument, settings []*InputThemeSettings) (*Theme, error)

Create a theme

func (*Client) AccountDeclinePasswordReset

func (c *Client) AccountDeclinePasswordReset() (bool, error)

Abort a pending 2FA password reset, [see here for more info »](https://core.telegram.org/api/srp#password-reset)

func (*Client) AccountDeleteAccount

func (c *Client) AccountDeleteAccount(reason string, password InputCheckPasswordSRP) (bool, error)

Delete the user's account from the telegram servers.

func (*Client) AccountDeleteAutoSaveExceptions

func (c *Client) AccountDeleteAutoSaveExceptions() (bool, error)

Clear all peer-specific autosave settings.

func (c *Client) AccountDeleteBusinessChatLink(slug string) (bool, error)

func (*Client) AccountDeleteSecureValue

func (c *Client) AccountDeleteSecureValue(types []SecureValueType) (bool, error)

Delete stored [Telegram Passport](https://core.telegram.org/passport) documents, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

func (*Client) AccountDisablePeerConnectedBot

func (c *Client) AccountDisablePeerConnectedBot(peer InputPeer) (bool, error)
func (c *Client) AccountEditBusinessChatLink(slug string, link *InputBusinessChatLink) (*BusinessChatLink, error)

func (*Client) AccountFinishTakeoutSession

func (c *Client) AccountFinishTakeoutSession(success bool) (bool, error)

Terminate a [takeout session, see here » for more info](https://core.telegram.org/api/takeout).

func (*Client) AccountGetAccountTtl

func (c *Client) AccountGetAccountTtl() (*AccountDaysTtl, error)

Get days to live of account

func (*Client) AccountGetAllSecureValues

func (c *Client) AccountGetAllSecureValues() ([]*SecureValue, error)

Get all saved [Telegram Passport](https://core.telegram.org/passport) documents, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

func (*Client) AccountGetAuthorizationForm

func (c *Client) AccountGetAuthorizationForm(botID int64, scope, publicKey string) (*AccountAuthorizationForm, error)

Returns a Telegram Passport authorization form for sharing data with a service

func (*Client) AccountGetAuthorizations

func (c *Client) AccountGetAuthorizations() (*AccountAuthorizations, error)

Get logged-in sessions

func (*Client) AccountGetAutoDownloadSettings

func (c *Client) AccountGetAutoDownloadSettings() (*AccountAutoDownloadSettings, error)

Get media autodownload settings

func (*Client) AccountGetAutoSaveSettings

func (c *Client) AccountGetAutoSaveSettings() (*AccountAutoSaveSettings, error)

Get autosave settings

func (*Client) AccountGetBotBusinessConnection

func (c *Client) AccountGetBotBusinessConnection(connectionID string) (Updates, error)
func (c *Client) AccountGetBusinessChatLinks() (*AccountBusinessChatLinks, error)

func (*Client) AccountGetChannelDefaultEmojiStatuses

func (c *Client) AccountGetChannelDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)

Get a list of default suggested [channel emoji statuses](https://core.telegram.org/api/emoji-status).

func (*Client) AccountGetChannelRestrictedStatusEmojis

func (c *Client) AccountGetChannelRestrictedStatusEmojis(hash int64) (EmojiList, error)

Returns fetch the full list of [custom emoji IDs »](https://core.telegram.org/api/custom-emoji) that cannot be used in [channel emoji statuses »](https://core.telegram.org/api/emoji-status).

func (*Client) AccountGetChatThemes

func (c *Client) AccountGetChatThemes(hash int64) (AccountThemes, error)

Get all available chat [themes »](https://core.telegram.org/api/themes).

func (*Client) AccountGetConnectedBots

func (c *Client) AccountGetConnectedBots() (*AccountConnectedBots, error)

func (*Client) AccountGetContactSignUpNotification

func (c *Client) AccountGetContactSignUpNotification() (bool, error)

Whether the user will receive notifications when contacts sign up

func (*Client) AccountGetContentSettings

func (c *Client) AccountGetContentSettings() (*AccountContentSettings, error)

Get sensitive content settings

func (*Client) AccountGetDefaultBackgroundEmojis

func (c *Client) AccountGetDefaultBackgroundEmojis(hash int64) (EmojiList, error)

Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be used in an [accent color pattern](https://core.telegram.org/api/colors).

func (*Client) AccountGetDefaultEmojiStatuses

func (c *Client) AccountGetDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)

Get a list of default suggested [emoji statuses](https://core.telegram.org/api/emoji-status)

func (*Client) AccountGetDefaultGroupPhotoEmojis

func (c *Client) AccountGetDefaultGroupPhotoEmojis(hash int64) (EmojiList, error)

Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be [used as group picture](https://core.telegram.org/api/files#sticker-profile-pictures)

func (*Client) AccountGetDefaultProfilePhotoEmojis

func (c *Client) AccountGetDefaultProfilePhotoEmojis(hash int64) (EmojiList, error)

Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be [used as profile picture](https://core.telegram.org/api/files#sticker-profile-pictures)

func (*Client) AccountGetGlobalPrivacySettings

func (c *Client) AccountGetGlobalPrivacySettings() (*GlobalPrivacySettings, error)

Get global privacy settings

func (*Client) AccountGetMultiWallPapers

func (c *Client) AccountGetMultiWallPapers(wallpapers []InputWallPaper) ([]WallPaper, error)

Get info about multiple [wallpapers](https://core.telegram.org/api/wallpapers)

func (*Client) AccountGetNotifyExceptions

func (c *Client) AccountGetNotifyExceptions(compareSound, compareStories bool, peer InputNotifyPeer) (Updates, error)

Returns list of chats with non-default notification settings

func (*Client) AccountGetNotifySettings

func (c *Client) AccountGetNotifySettings(peer InputNotifyPeer) (*PeerNotifySettings, error)

Gets current notification settings for a given user/group, from all users/all groups.

func (*Client) AccountGetPassword

func (c *Client) AccountGetPassword() (*AccountPassword, error)

Obtain configuration for two-factor authorization with password

func (*Client) AccountGetPasswordSettings

func (c *Client) AccountGetPasswordSettings(password InputCheckPasswordSRP) (*AccountPasswordSettings, error)

Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info &amp; so on)

func (*Client) AccountGetPrivacy

func (c *Client) AccountGetPrivacy(key InputPrivacyKey) (*AccountPrivacyRules, error)

Get privacy settings of current account

func (*Client) AccountGetReactionsNotifySettings

func (c *Client) AccountGetReactionsNotifySettings() (*ReactionsNotifySettings, error)

func (*Client) AccountGetRecentEmojiStatuses

func (c *Client) AccountGetRecentEmojiStatuses(hash int64) (AccountEmojiStatuses, error)

Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status)

func (*Client) AccountGetSavedRingtones

func (c *Client) AccountGetSavedRingtones(hash int64) (AccountSavedRingtones, error)

Fetch saved notification sounds

func (*Client) AccountGetSecureValue

func (c *Client) AccountGetSecureValue(types []SecureValueType) ([]*SecureValue, error)

Get saved [Telegram Passport](https://core.telegram.org/passport) document, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

func (*Client) AccountGetTheme

func (c *Client) AccountGetTheme(format string, theme InputTheme) (*Theme, error)

Get theme information

func (*Client) AccountGetThemes

func (c *Client) AccountGetThemes(format string, hash int64) (AccountThemes, error)

Get installed themes

func (*Client) AccountGetTmpPassword

func (c *Client) AccountGetTmpPassword(password InputCheckPasswordSRP, period int32) (*AccountTmpPassword, error)

Get temporary payment password

func (*Client) AccountGetWallPaper

func (c *Client) AccountGetWallPaper(wallpaper InputWallPaper) (WallPaper, error)

Get info about a certain [wallpaper](https://core.telegram.org/api/wallpapers)

func (*Client) AccountGetWallPapers

func (c *Client) AccountGetWallPapers(hash int64) (AccountWallPapers, error)

Returns a list of available [wallpapers](https://core.telegram.org/api/wallpapers).

func (*Client) AccountGetWebAuthorizations

func (c *Client) AccountGetWebAuthorizations() (*AccountWebAuthorizations, error)

Get web [login widget](https://core.telegram.org/widgets/login) authorizations

func (*Client) AccountInitTakeoutSession

func (c *Client) AccountInitTakeoutSession(params *AccountInitTakeoutSessionParams) (*AccountTakeout, error)

Initialize a [takeout session, see here » for more info](https://core.telegram.org/api/takeout).

func (*Client) AccountInstallTheme

func (c *Client) AccountInstallTheme(dark bool, theme InputTheme, format string, baseTheme BaseTheme) (bool, error)

Install a theme

func (*Client) AccountInstallWallPaper

func (c *Client) AccountInstallWallPaper(wallpaper InputWallPaper, settings *WallPaperSettings) (bool, error)

Install [wallpaper](https://core.telegram.org/api/wallpapers)

func (*Client) AccountInvalidateSignInCodes

func (c *Client) AccountInvalidateSignInCodes(codes []string) (bool, error)

Invalidate the specified login codes, see [here »](https://core.telegram.org/api/auth#invalidating-login-codes) for more info.

func (*Client) AccountRegisterDevice

func (c *Client) AccountRegisterDevice(params *AccountRegisterDeviceParams) (bool, error)

Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates)

func (*Client) AccountReorderUsernames

func (c *Client) AccountReorderUsernames(order []string) (bool, error)

Reorder usernames associated with the currently logged-in user.

func (*Client) AccountReportPeer

func (c *Client) AccountReportPeer(peer InputPeer, reason ReportReason, message string) (bool, error)

Report a peer for violation of telegram's Terms of Service

func (*Client) AccountReportProfilePhoto

func (c *Client) AccountReportProfilePhoto(peer InputPeer, photoID InputPhoto, reason ReportReason, message string) (bool, error)

Report a profile photo of a dialog

func (*Client) AccountResendPasswordEmail

func (c *Client) AccountResendPasswordEmail() (bool, error)

Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).

func (*Client) AccountResetAuthorization

func (c *Client) AccountResetAuthorization(hash int64) (bool, error)

Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash

func (*Client) AccountResetNotifySettings

func (c *Client) AccountResetNotifySettings() (bool, error)

Resets all notification settings from users and groups.

func (*Client) AccountResetPassword

func (c *Client) AccountResetPassword() (AccountResetPasswordResult, error)

Initiate a 2FA password reset: can only be used if the user is already logged-in, [see here for more info »](https://core.telegram.org/api/srp#password-reset)

func (*Client) AccountResetWallPapers

func (c *Client) AccountResetWallPapers() (bool, error)

Delete all installed [wallpapers](https://core.telegram.org/api/wallpapers), reverting to the default wallpaper set.

func (*Client) AccountResetWebAuthorization

func (c *Client) AccountResetWebAuthorization(hash int64) (bool, error)

Log out an active web [telegram login](https://core.telegram.org/widgets/login) session

func (*Client) AccountResetWebAuthorizations

func (c *Client) AccountResetWebAuthorizations() (bool, error)

Reset all active web [telegram login](https://core.telegram.org/widgets/login) sessions

func (c *Client) AccountResolveBusinessChatLink(slug string) (*AccountResolvedBusinessChatLinks, error)

func (*Client) AccountSaveAutoDownloadSettings

func (c *Client) AccountSaveAutoDownloadSettings(low, high bool, settings *AutoDownloadSettings) (bool, error)

Change media autodownload settings

func (*Client) AccountSaveAutoSaveSettings

func (c *Client) AccountSaveAutoSaveSettings(params *AccountSaveAutoSaveSettingsParams) (bool, error)

Modify autosave settings

func (*Client) AccountSaveRingtone

func (c *Client) AccountSaveRingtone(id InputDocument, unsave bool) (AccountSavedRingtone, error)

Save or remove saved notification sound.

func (*Client) AccountSaveSecureValue

func (c *Client) AccountSaveSecureValue(value *InputSecureValue, secureSecretID int64) (*SecureValue, error)

Securely save [Telegram Passport](https://core.telegram.org/passport) document, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

func (*Client) AccountSaveTheme

func (c *Client) AccountSaveTheme(theme InputTheme, unsave bool) (bool, error)

Save a theme

func (*Client) AccountSaveWallPaper

func (c *Client) AccountSaveWallPaper(wallpaper InputWallPaper, unsave bool, settings *WallPaperSettings) (bool, error)

Install/uninstall [wallpaper](https://core.telegram.org/api/wallpapers)

func (*Client) AccountSendChangePhoneCode

func (c *Client) AccountSendChangePhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)

Verify a new phone number to associate to the current account

func (*Client) AccountSendConfirmPhoneCode

func (c *Client) AccountSendConfirmPhoneCode(hash string, settings *CodeSettings) (AuthSentCode, error)

Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion)

func (*Client) AccountSendVerifyEmailCode

func (c *Client) AccountSendVerifyEmailCode(purpose EmailVerifyPurpose, email string) (*AccountSentEmailCode, error)

Send an email verification code.

func (*Client) AccountSendVerifyPhoneCode

func (c *Client) AccountSendVerifyPhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)

Send the verification phone code for telegram [passport](https://core.telegram.org/passport).

func (*Client) AccountSetAccountTtl

func (c *Client) AccountSetAccountTtl(ttl *AccountDaysTtl) (bool, error)

Set account self-destruction period

func (*Client) AccountSetAuthorizationTtl

func (c *Client) AccountSetAuthorizationTtl(authorizationTtlDays int32) (bool, error)

Set time-to-live of current session

func (*Client) AccountSetContactSignUpNotification

func (c *Client) AccountSetContactSignUpNotification(silent bool) (bool, error)

Toggle contact sign up notifications

func (*Client) AccountSetContentSettings

func (c *Client) AccountSetContentSettings(sensitiveEnabled bool) (bool, error)

Set sensitive content settings (for viewing or hiding NSFW content)

func (*Client) AccountSetGlobalPrivacySettings

func (c *Client) AccountSetGlobalPrivacySettings(settings *GlobalPrivacySettings) (*GlobalPrivacySettings, error)

Set global privacy settings

func (*Client) AccountSetPrivacy

func (c *Client) AccountSetPrivacy(key InputPrivacyKey, rules []InputPrivacyRule) (*AccountPrivacyRules, error)

Change privacy settings of current account

func (*Client) AccountSetReactionsNotifySettings

func (c *Client) AccountSetReactionsNotifySettings(settings *ReactionsNotifySettings) (*ReactionsNotifySettings, error)

func (*Client) AccountToggleConnectedBotPaused

func (c *Client) AccountToggleConnectedBotPaused(peer InputPeer, paused bool) (bool, error)

func (*Client) AccountToggleSponsoredMessages

func (c *Client) AccountToggleSponsoredMessages(enabled bool) (bool, error)

func (*Client) AccountToggleUsername

func (c *Client) AccountToggleUsername(username string, active bool) (bool, error)

Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to the currently logged-in user.

func (*Client) AccountUnregisterDevice

func (c *Client) AccountUnregisterDevice(tokenType int32, token string, otherUids []int64) (bool, error)

Deletes a device by its token, stops sending PUSH-notifications to it.

func (*Client) AccountUpdateBirthday

func (c *Client) AccountUpdateBirthday(birthday *Birthday) (bool, error)

func (*Client) AccountUpdateBusinessAwayMessage

func (c *Client) AccountUpdateBusinessAwayMessage(message *InputBusinessAwayMessage) (bool, error)

func (*Client) AccountUpdateBusinessGreetingMessage

func (c *Client) AccountUpdateBusinessGreetingMessage(message *InputBusinessGreetingMessage) (bool, error)

func (*Client) AccountUpdateBusinessIntro

func (c *Client) AccountUpdateBusinessIntro(intro *InputBusinessIntro) (bool, error)

func (*Client) AccountUpdateBusinessLocation

func (c *Client) AccountUpdateBusinessLocation(geoPoint InputGeoPoint, address string) (bool, error)

func (*Client) AccountUpdateBusinessWorkHours

func (c *Client) AccountUpdateBusinessWorkHours(businessWorkHours *BusinessWorkHours) (bool, error)

func (*Client) AccountUpdateColor

func (c *Client) AccountUpdateColor(forProfile bool, color int32, backgroundEmojiID int64) (bool, error)

Update the [accent color and background custom emoji »](https://core.telegram.org/api/colors) of the current account.

func (*Client) AccountUpdateConnectedBot

func (c *Client) AccountUpdateConnectedBot(canReply, deleted bool, bot InputUser, recipients *InputBusinessBotRecipients) (Updates, error)

func (*Client) AccountUpdateDeviceLocked

func (c *Client) AccountUpdateDeviceLocked(period int32) (bool, error)

When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).

func (*Client) AccountUpdateEmojiStatus

func (c *Client) AccountUpdateEmojiStatus(emojiStatus EmojiStatus) (bool, error)

Set an [emoji status](https://core.telegram.org/api/emoji-status)

func (*Client) AccountUpdateNotifySettings

func (c *Client) AccountUpdateNotifySettings(peer InputNotifyPeer, settings *InputPeerNotifySettings) (bool, error)

Edits notification settings from a given user/group, from all users/all groups.

func (*Client) AccountUpdatePasswordSettings

func (c *Client) AccountUpdatePasswordSettings(password InputCheckPasswordSRP, newSettings *AccountPasswordInputSettings) (bool, error)

Set a new 2FA password

func (*Client) AccountUpdatePersonalChannel

func (c *Client) AccountUpdatePersonalChannel(channel InputChannel) (bool, error)

func (*Client) AccountUpdateProfile

func (c *Client) AccountUpdateProfile(firstName, lastName, about string) (User, error)

Updates user profile.

func (*Client) AccountUpdateStatus

func (c *Client) AccountUpdateStatus(offline bool) (bool, error)

Updates online user status.

func (*Client) AccountUpdateTheme

func (c *Client) AccountUpdateTheme(params *AccountUpdateThemeParams) (*Theme, error)

Update theme

func (*Client) AccountUpdateUsername

func (c *Client) AccountUpdateUsername(username string) (User, error)

Changes username for the current user.

func (*Client) AccountUploadRingtone

func (c *Client) AccountUploadRingtone(file InputFile, fileName, mimeType string) (Document, error)

Upload notification sound, use [account.saveRingtone](https://core.telegram.org/method/account.saveRingtone) to convert it and add it to the list of saved notification sounds.

func (*Client) AccountUploadTheme

func (c *Client) AccountUploadTheme(file, thumb InputFile, fileName, mimeType string) (Document, error)

Upload theme

func (*Client) AccountUploadWallPaper

func (c *Client) AccountUploadWallPaper(forChat bool, file InputFile, mimeType string, settings *WallPaperSettings) (WallPaper, error)

Create and upload a new [wallpaper](https://core.telegram.org/api/wallpapers)

func (*Client) AccountVerifyEmail

func (c *Client) AccountVerifyEmail(purpose EmailVerifyPurpose, verification EmailVerification) (AccountEmailVerified, error)

Verify an email address.

func (*Client) AccountVerifyPhone

func (c *Client) AccountVerifyPhone(phoneNumber, phoneCodeHash, phoneCode string) (bool, error)

Verify a phone number for telegram [passport](https://core.telegram.org/passport).

func (*Client) AddActionHandler

func (c *Client) AddActionHandler(handler MessageHandler) Handle

func (*Client) AddAlbumHandler

func (c *Client) AddAlbumHandler(handler func(m *Album) error) Handle

func (*Client) AddCallbackHandler

func (c *Client) AddCallbackHandler(pattern interface{}, handler CallbackHandler) Handle

Handle updates categorized as "UpdateBotCallbackQuery"

Included Updates:

  • Callback Query

func (*Client) AddDeleteHandler

func (c *Client) AddDeleteHandler(pattern interface{}, handler func(d *DeleteMessage) error) Handle

func (*Client) AddEditHandler

func (c *Client) AddEditHandler(pattern interface{}, handler MessageHandler, filters ...Filter) Handle

Handle updates categorized as "UpdateMessageEdited"

Included Updates:

  • Message Edited
  • Channel Post Edited

func (*Client) AddInlineCallbackHandler

func (c *Client) AddInlineCallbackHandler(pattern interface{}, handler InlineCallbackHandler) Handle

Handle updates categorized as "UpdateInlineBotCallbackQuery"

Included Updates:

  • Inline Callback Query

func (*Client) AddInlineHandler

func (c *Client) AddInlineHandler(pattern interface{}, handler InlineHandler) Handle

Handle updates categorized as "UpdateBotInlineQuery"

Included Updates:

  • Inline Query

func (*Client) AddMessageHandler

func (c *Client) AddMessageHandler(pattern interface{}, handler MessageHandler, filters ...Filter) Handle

func (*Client) AddNewExportedSenderToMap

func (c *Client) AddNewExportedSenderToMap(dcID int, sender *Client)

func (*Client) AddParticipantHandler

func (c *Client) AddParticipantHandler(handler ParticipantHandler) Handle

Handle updates categorized as "UpdateChannelParticipant"

Included Updates:

  • New Channel Participant
  • Banned Channel Participant
  • Left Channel Participant
  • Kicked Channel Participant
  • Channel Participant Admin
  • Channel Participant Creator

func (*Client) AddRawHandler

func (c *Client) AddRawHandler(updateType Update, handler RawHandler) Handle

func (*Client) AnswerCallbackQuery

func (c *Client) AnswerCallbackQuery(QueryID int64, Text string, Opts ...*CallbackOptions) (bool, error)

func (*Client) AnswerInlineQuery

func (c *Client) AnswerInlineQuery(QueryID int64, Results []InputBotInlineResult, Options ...*InlineSendOptions) (bool, error)

func (*Client) AppHash

func (c *Client) AppHash() string

returns the AppHash (api_hash) of the client

func (*Client) AppID

func (c *Client) AppID() int32

returns the AppID (api_id) of the client

func (*Client) AuthAcceptLoginToken

func (c *Client) AuthAcceptLoginToken(token []byte) (*Authorization, error)

Accept QR code login token, logging in the app that generated it.

func (*Client) AuthBindTempAuthKey

func (c *Client) AuthBindTempAuthKey(permAuthKeyID, nonce int64, expiresAt int32, encryptedMessage []byte) (bool, error)

Binds a temporary authorization key `temp_auth_key_id` to the permanent authorization key `perm_auth_key_id`. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.

func (*Client) AuthCancelCode

func (c *Client) AuthCancelCode(phoneNumber, phoneCodeHash string) (bool, error)

Cancel the login verification code

func (*Client) AuthCheckPassword

func (c *Client) AuthCheckPassword(password InputCheckPasswordSRP) (AuthAuthorization, error)

Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).

func (*Client) AuthCheckRecoveryPassword

func (c *Client) AuthCheckRecoveryPassword(code string) (bool, error)

Check if the [2FA recovery code](https://core.telegram.org/api/srp) sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery) is valid, before passing it to [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword).

func (*Client) AuthDropTempAuthKeys

func (c *Client) AuthDropTempAuthKeys(exceptAuthKeys []int64) (bool, error)

Delete all temporary authorization keys <strong>except for</strong> the ones specified

func (*Client) AuthExportAuthorization

func (c *Client) AuthExportAuthorization(dcID int32) (*AuthExportedAuthorization, error)

Returns data for copying authorization to another data-center.

func (*Client) AuthExportLoginToken

func (c *Client) AuthExportLoginToken(apiID int32, apiHash string, exceptIds []int64) (AuthLoginToken, error)

Generate a login token, for [login via QR code](https://core.telegram.org/api/qr-login).<br> The generated login token should be encoded using base64url, then shown as a `tg://login?token=base64encodedtoken` [deep link »](https://core.telegram.org/api/links#qr-code-login-links) in the QR code.

func (*Client) AuthImportAuthorization

func (c *Client) AuthImportAuthorization(id int64, bytes []byte) (AuthAuthorization, error)

Logs in a user using a key transmitted from his native data-center.

func (*Client) AuthImportBotAuthorization

func (c *Client) AuthImportBotAuthorization(flags, apiID int32, apiHash, botAuthToken string) (AuthAuthorization, error)

Login as a bot

func (*Client) AuthImportLoginToken

func (c *Client) AuthImportLoginToken(token []byte) (AuthLoginToken, error)

Login using a redirected login token, generated in case of DC mismatch during [QR code login](https://core.telegram.org/api/qr-login).

func (*Client) AuthImportWebTokenAuthorization

func (c *Client) AuthImportWebTokenAuthorization(apiID int32, apiHash, webAuthToken string) (AuthAuthorization, error)

Login by importing an authorization token

func (*Client) AuthLogOut

func (c *Client) AuthLogOut() (*AuthLoggedOut, error)

Logs out the user.

func (*Client) AuthPrompt

func (c *Client) AuthPrompt() error

AuthPromt will prompt user to enter phone number or bot token to authorize client

func (*Client) AuthRecoverPassword

func (c *Client) AuthRecoverPassword(code string, newSettings *AccountPasswordInputSettings) (AuthAuthorization, error)

Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery).

func (*Client) AuthReportMissingCode

func (c *Client) AuthReportMissingCode(phoneNumber, phoneCodeHash, mnc string) (bool, error)

func (*Client) AuthRequestFirebaseSms

func (c *Client) AuthRequestFirebaseSms(params *AuthRequestFirebaseSmsParams) (bool, error)

Request an SMS code via Firebase.

func (*Client) AuthRequestPasswordRecovery

func (c *Client) AuthRequestPasswordRecovery() (*AuthPasswordRecovery, error)

Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).

func (*Client) AuthResendCode

func (c *Client) AuthResendCode(phoneNumber, phoneCodeHash, reason string) (AuthSentCode, error)

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see [login](https://core.telegram.org/api/auth) for more info.

func (*Client) AuthResetAuthorizations

func (c *Client) AuthResetAuthorizations() (bool, error)

Terminates all user's authorized sessions except for the current one.

func (*Client) AuthResetLoginEmail

func (c *Client) AuthResetLoginEmail(phoneNumber, phoneCodeHash string) (AuthSentCode, error)

Reset the [login email »](https://core.telegram.orghttps://core.telegram.org/api/auth#email-verification).

func (*Client) AuthSendCode

func (c *Client) AuthSendCode(phoneNumber string, apiID int32, apiHash string, settings *CodeSettings) (AuthSentCode, error)

Send the verification code for login

func (*Client) AuthSignIn

func (c *Client) AuthSignIn(phoneNumber, phoneCodeHash, phoneCode string, emailVerification EmailVerification) (AuthAuthorization, error)

Signs in a user with a validated phone number.

func (*Client) AuthSignUp

func (c *Client) AuthSignUp(params *AuthSignUpParams) (AuthAuthorization, error)

Registers a validated phone number in the system.

func (*Client) BotsAddPreviewMedia

func (c *Client) BotsAddPreviewMedia(bot InputUser, langCode string, media InputMedia) (*BotPreviewMedia, error)

func (*Client) BotsAllowSendMessage

func (c *Client) BotsAllowSendMessage(bot InputUser) (Updates, error)

Allow the specified bot to send us messages

func (*Client) BotsAnswerWebhookJsonQuery

func (c *Client) BotsAnswerWebhookJsonQuery(queryID int64, data *DataJson) (bool, error)

Answers a custom query; for bots only

func (*Client) BotsCanSendMessage

func (c *Client) BotsCanSendMessage(bot InputUser) (bool, error)

Check whether the specified bot can send us messages

func (*Client) BotsDeletePreviewMedia

func (c *Client) BotsDeletePreviewMedia(bot InputUser, langCode string, media []InputMedia) (bool, error)

func (*Client) BotsEditPreviewMedia

func (c *Client) BotsEditPreviewMedia(bot InputUser, langCode string, media, newMedia InputMedia) (*BotPreviewMedia, error)

func (*Client) BotsGetBotCommands

func (c *Client) BotsGetBotCommands(scope BotCommandScope, langCode string) ([]*BotCommand, error)

Obtain a list of bot commands for the specified bot scope and language code

func (*Client) BotsGetBotInfo

func (c *Client) BotsGetBotInfo(bot InputUser, langCode string) (*BotsBotInfo, error)

Get localized name, about text and description of a bot (or of the current account, if called by a bot).

func (*Client) BotsGetBotMenuButton

func (c *Client) BotsGetBotMenuButton(userID InputUser) (BotMenuButton, error)

Gets the menu button action for a given user or for all users, previously set using [bots.setBotMenuButton](https://core.telegram.org/method/bots.setBotMenuButton); users can see this information in the [botInfo](https://core.telegram.org/constructor/botInfo) constructor.

func (*Client) BotsGetPopularAppBots

func (c *Client) BotsGetPopularAppBots(offset string, limit int32) (*BotsPopularAppBots, error)

func (*Client) BotsGetPreviewInfo

func (c *Client) BotsGetPreviewInfo(bot InputUser, langCode string) (*BotsPreviewInfo, error)

func (*Client) BotsGetPreviewMedias

func (c *Client) BotsGetPreviewMedias(bot InputUser) ([]*BotPreviewMedia, error)

func (*Client) BotsInvokeWebViewCustomMethod

func (c *Client) BotsInvokeWebViewCustomMethod(bot InputUser, customMethod string, params *DataJson) (*DataJson, error)

Send a custom request from a [mini bot app](https://core.telegram.org/api/bots/webapps), triggered by a [web_app_invoke_custom_method event »](https://core.telegram.org/api/web-events#web-app-invoke-custom-method).

func (*Client) BotsReorderPreviewMedias

func (c *Client) BotsReorderPreviewMedias(bot InputUser, langCode string, order []InputMedia) (bool, error)

func (*Client) BotsReorderUsernames

func (c *Client) BotsReorderUsernames(bot InputUser, order []string) (bool, error)

Reorder usernames associated to a bot we own.

func (*Client) BotsResetBotCommands

func (c *Client) BotsResetBotCommands(scope BotCommandScope, langCode string) (bool, error)

Clear bot commands for the specified bot scope and language code

func (*Client) BotsSendCustomRequest

func (c *Client) BotsSendCustomRequest(customMethod string, params *DataJson) (*DataJson, error)

Sends a custom request; for bots only

func (*Client) BotsSetBotBroadcastDefaultAdminRights

func (c *Client) BotsSetBotBroadcastDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)

Set the default [suggested admin rights](https://core.telegram.org/api/rights#suggested-bot-rights) for bots being added as admins to channels, see [here for more info on how to handle them »](https://core.telegram.org/api/rights#suggested-bot-rights).

func (*Client) BotsSetBotCommands

func (c *Client) BotsSetBotCommands(scope BotCommandScope, langCode string, commands []*BotCommand) (bool, error)

Set bot command list

func (*Client) BotsSetBotGroupDefaultAdminRights

func (c *Client) BotsSetBotGroupDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)

Set the default [suggested admin rights](https://core.telegram.org/api/rights#suggested-bot-rights) for bots being added as admins to groups, see [here for more info on how to handle them »](https://core.telegram.org/api/rights#suggested-bot-rights).

func (*Client) BotsSetBotInfo

func (c *Client) BotsSetBotInfo(params *BotsSetBotInfoParams) (bool, error)

Set localized name, about text and description of a bot (or of the current account, if called by a bot).

func (*Client) BotsSetBotMenuButton

func (c *Client) BotsSetBotMenuButton(userID InputUser, button BotMenuButton) (bool, error)

Sets the [menu button action »](https://core.telegram.org/api/bots/menu) for a given user or for all users

func (*Client) BotsToggleUsername

func (c *Client) BotsToggleUsername(bot InputUser, username string, active bool) (bool, error)

Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to a bot we own.

func (*Client) ChannelsCheckUsername

func (c *Client) ChannelsCheckUsername(channel InputChannel, username string) (bool, error)

Check if a username is free and can be assigned to a channel/supergroup

func (*Client) ChannelsClickSponsoredMessage

func (c *Client) ChannelsClickSponsoredMessage(channel InputChannel, randomID []byte) (bool, error)

Informs the server that the user has either:

func (*Client) ChannelsConvertToGigagroup

func (c *Client) ChannelsConvertToGigagroup(channel InputChannel) (Updates, error)

Convert a [supergroup](https://core.telegram.org/api/channel) to a [gigagroup](https://core.telegram.org/api/channel), when requested by [channel suggestions](https://core.telegram.org/api/config#channel-suggestions).

func (*Client) ChannelsCreateForumTopic

func (c *Client) ChannelsCreateForumTopic(params *ChannelsCreateForumTopicParams) (Updates, error)

Create a [forum topic](https://core.telegram.org/api/forum); requires <a href="/api/rights">`manage_topics` rights</a>.

func (*Client) ChannelsDeactivateAllUsernames

func (c *Client) ChannelsDeactivateAllUsernames(channel InputChannel) (bool, error)

Disable all purchased usernames of a supergroup or channel

func (*Client) ChannelsDeleteChannel

func (c *Client) ChannelsDeleteChannel(channel InputChannel) (Updates, error)

Delete a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsDeleteHistory

func (c *Client) ChannelsDeleteHistory(forEveryone bool, channel InputChannel, maxID int32) (Updates, error)

Delete the history of a [supergroup](https://core.telegram.org/api/channel)

func (*Client) ChannelsDeleteMessages

func (c *Client) ChannelsDeleteMessages(channel InputChannel, id []int32) (*MessagesAffectedMessages, error)

Delete messages in a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsDeleteParticipantHistory

func (c *Client) ChannelsDeleteParticipantHistory(channel InputChannel, participant InputPeer) (*MessagesAffectedHistory, error)

Delete all messages sent by a specific participant of a given supergroup

func (*Client) ChannelsDeleteTopicHistory

func (c *Client) ChannelsDeleteTopicHistory(channel InputChannel, topMsgID int32) (*MessagesAffectedHistory, error)

Delete message history of a [forum topic](https://core.telegram.org/api/forum)

func (*Client) ChannelsEditAdmin

func (c *Client) ChannelsEditAdmin(channel InputChannel, userID InputUser, adminRights *ChatAdminRights, rank string) (Updates, error)

Modify the admin rights of a user in a supergroup/channel(https://core.telegram.org/api/channel).

func (*Client) ChannelsEditBanned

func (c *Client) ChannelsEditBanned(channel InputChannel, participant InputPeer, bannedRights *ChatBannedRights) (Updates, error)

Ban/unban/kick a user in a supergroup/channel(https://core.telegram.org/api/channel).

func (*Client) ChannelsEditCreator

func (c *Client) ChannelsEditCreator(channel InputChannel, userID InputUser, password InputCheckPasswordSRP) (Updates, error)

Transfer channel ownership

func (*Client) ChannelsEditForumTopic

func (c *Client) ChannelsEditForumTopic(params *ChannelsEditForumTopicParams) (Updates, error)

Edit [forum topic](https://core.telegram.org/api/forum); requires <a href="/api/rights">`manage_topics` rights</a>.

func (*Client) ChannelsEditLocation

func (c *Client) ChannelsEditLocation(channel InputChannel, geoPoint InputGeoPoint, address string) (bool, error)

Edit location of geogroup, see [here »](https://core.telegram.org/api/nearby) for more info on geogroups.

func (*Client) ChannelsEditPhoto

func (c *Client) ChannelsEditPhoto(channel InputChannel, photo InputChatPhoto) (Updates, error)

Change the photo of a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsEditTitle

func (c *Client) ChannelsEditTitle(channel InputChannel, title string) (Updates, error)

Edit the name of a channel/supergroup(https://core.telegram.org/api/channel)

func (c *Client) ChannelsExportMessageLink(grouped, thread bool, channel InputChannel, id int32) (*ExportedMessageLink, error)

Get link and embed info of a message in a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsGetAdminLog

func (c *Client) ChannelsGetAdminLog(params *ChannelsGetAdminLogParams) (*ChannelsAdminLogResults, error)

Get the admin log of a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsGetAdminedPublicChannels

func (c *Client) ChannelsGetAdminedPublicChannels(byLocation, checkLimit, forPersonal bool) (MessagesChats, error)

Get channels/supergroups/geogroups(https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](https://core.telegram.org/constructor/config) for owned public channels/supergroups/geogroups(https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.

func (*Client) ChannelsGetChannelRecommendations

func (c *Client) ChannelsGetChannelRecommendations(channel InputChannel) (MessagesChats, error)

Obtain a list of similarly themed public channels, selected based on similarities in their <strong>subscriber bases</strong>.

func (*Client) ChannelsGetChannels

func (c *Client) ChannelsGetChannels(id []InputChannel) (MessagesChats, error)

Get info about channels/supergroups(https://core.telegram.org/api/channel)

func (*Client) ChannelsGetForumTopics

func (c *Client) ChannelsGetForumTopics(params *ChannelsGetForumTopicsParams) (*MessagesForumTopics, error)

Get [topics of a forum](https://core.telegram.org/api/forum)

func (*Client) ChannelsGetForumTopicsByID

func (c *Client) ChannelsGetForumTopicsByID(channel InputChannel, topics []int32) (*MessagesForumTopics, error)

Get forum topics by their ID

func (*Client) ChannelsGetGroupsForDiscussion

func (c *Client) ChannelsGetGroupsForDiscussion() (MessagesChats, error)

Get all groups that can be used as [discussion groups](https://core.telegram.org/api/discussion).

func (*Client) ChannelsGetInactiveChannels

func (c *Client) ChannelsGetInactiveChannels() (*MessagesInactiveChats, error)

Get inactive channels and supergroups

func (*Client) ChannelsGetLeftChannels

func (c *Client) ChannelsGetLeftChannels(offset int32) (MessagesChats, error)

Get a list of channels/supergroups(https://core.telegram.org/api/channel) we left, requires a [takeout session, see here » for more info](https://core.telegram.org/api/takeout).

func (*Client) ChannelsGetMessages

func (c *Client) ChannelsGetMessages(channel InputChannel, id []InputMessage) (MessagesMessages, error)

Get channel/supergroup(https://core.telegram.org/api/channel) messages

func (*Client) ChannelsGetParticipant

func (c *Client) ChannelsGetParticipant(channel InputChannel, participant InputPeer) (*ChannelsChannelParticipant, error)

Get info about a channel/supergroup(https://core.telegram.org/api/channel) participant

func (*Client) ChannelsGetParticipants

func (c *Client) ChannelsGetParticipants(channel InputChannel, filter ChannelParticipantsFilter, offset, limit int32, hash int64) (ChannelsChannelParticipants, error)

Get the participants of a supergroup/channel(https://core.telegram.org/api/channel)

func (*Client) ChannelsGetSendAs

func (c *Client) ChannelsGetSendAs(peer InputPeer) (*ChannelsSendAsPeers, error)

Obtains a list of peers that can be used to send messages in a specific group

func (*Client) ChannelsGetSponsoredMessages

func (c *Client) ChannelsGetSponsoredMessages(channel InputChannel) (MessagesSponsoredMessages, error)

Get a list of sponsored messages

func (*Client) ChannelsInviteToChannel

func (c *Client) ChannelsInviteToChannel(channel InputChannel, users []InputUser) (*MessagesInvitedUsers, error)

Invite users to a channel/supergroup

func (*Client) ChannelsJoinChannel

func (c *Client) ChannelsJoinChannel(channel InputChannel) (Updates, error)

Join a channel/supergroup

func (*Client) ChannelsLeaveChannel

func (c *Client) ChannelsLeaveChannel(channel InputChannel) (Updates, error)

Leave a channel/supergroup(https://core.telegram.org/api/channel)

func (*Client) ChannelsReadHistory

func (c *Client) ChannelsReadHistory(channel InputChannel, maxID int32) (bool, error)

Mark channel/supergroup(https://core.telegram.org/api/channel) history as read

func (*Client) ChannelsReadMessageContents

func (c *Client) ChannelsReadMessageContents(channel InputChannel, id []int32) (bool, error)

Mark channel/supergroup(https://core.telegram.org/api/channel) message contents as read

func (*Client) ChannelsReorderPinnedForumTopics

func (c *Client) ChannelsReorderPinnedForumTopics(force bool, channel InputChannel, order []int32) (Updates, error)

Reorder pinned forum topics

func (*Client) ChannelsReorderUsernames

func (c *Client) ChannelsReorderUsernames(channel InputChannel, order []string) (bool, error)

Reorder active usernames

func (*Client) ChannelsReportAntiSpamFalsePositive

func (c *Client) ChannelsReportAntiSpamFalsePositive(channel InputChannel, msgID int32) (bool, error)

Report a [native antispam](https://core.telegram.org/api/antispam) false positive

func (*Client) ChannelsReportSpam

func (c *Client) ChannelsReportSpam(channel InputChannel, participant InputPeer, id []int32) (bool, error)

Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup

func (*Client) ChannelsReportSponsoredMessage

func (c *Client) ChannelsReportSponsoredMessage(channel InputChannel, randomID, option []byte) (ChannelsSponsoredMessageReportResult, error)

func (*Client) ChannelsRestrictSponsoredMessages

func (c *Client) ChannelsRestrictSponsoredMessages(channel InputChannel, restricted bool) (Updates, error)

func (*Client) ChannelsSearchPosts

func (c *Client) ChannelsSearchPosts(hashtag string, offsetRate int32, offsetPeer InputPeer, offsetID, limit int32) (MessagesMessages, error)

func (*Client) ChannelsSetBoostsToUnblockRestrictions

func (c *Client) ChannelsSetBoostsToUnblockRestrictions(channel InputChannel, boosts int32) (Updates, error)

func (*Client) ChannelsSetDiscussionGroup

func (c *Client) ChannelsSetDiscussionGroup(broadcast, group InputChannel) (bool, error)

Associate a group to a channel as [discussion group](https://core.telegram.org/api/discussion) for that channel

func (*Client) ChannelsSetEmojiStickers

func (c *Client) ChannelsSetEmojiStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)

func (*Client) ChannelsSetStickers

func (c *Client) ChannelsSetStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)

Associate a stickerset to the supergroup

func (*Client) ChannelsToggleAntiSpam

func (c *Client) ChannelsToggleAntiSpam(channel InputChannel, enabled bool) (Updates, error)

Enable or disable the [native antispam system](https://core.telegram.org/api/antispam).

func (*Client) ChannelsToggleForum

func (c *Client) ChannelsToggleForum(channel InputChannel, enabled bool) (Updates, error)

Enable or disable [forum functionality](https://core.telegram.org/api/forum) in a supergroup.

func (*Client) ChannelsToggleJoinRequest

func (c *Client) ChannelsToggleJoinRequest(channel InputChannel, enabled bool) (Updates, error)

Set whether all users should [request admin approval to join the group »](https://core.telegram.org/api/invites#join-requests).

func (*Client) ChannelsToggleJoinToSend

func (c *Client) ChannelsToggleJoinToSend(channel InputChannel, enabled bool) (Updates, error)

Set whether all users [should join a discussion group in order to comment on a post »](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group)

func (*Client) ChannelsToggleParticipantsHidden

func (c *Client) ChannelsToggleParticipantsHidden(channel InputChannel, enabled bool) (Updates, error)

Hide or display the participants list in a [supergroup](https://core.telegram.org/api/channel).

func (*Client) ChannelsTogglePreHistoryHidden

func (c *Client) ChannelsTogglePreHistoryHidden(channel InputChannel, enabled bool) (Updates, error)

Hide/unhide message history for new channel/supergroup users

func (*Client) ChannelsToggleSignatures

func (c *Client) ChannelsToggleSignatures(channel InputChannel, signaturesEnabled, profilesEnabled bool) (Updates, error)

Enable/disable message signatures in channels

func (*Client) ChannelsToggleSlowMode

func (c *Client) ChannelsToggleSlowMode(channel InputChannel, seconds int32) (Updates, error)

Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds

func (*Client) ChannelsToggleUsername

func (c *Client) ChannelsToggleUsername(channel InputChannel, username string, active bool) (bool, error)

Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to a [supergroup or channel](https://core.telegram.org/api/channel) we own.

func (*Client) ChannelsToggleViewForumAsMessages

func (c *Client) ChannelsToggleViewForumAsMessages(channel InputChannel, enabled bool) (Updates, error)

Users may also choose to display messages from all topics of a [forum](https://core.telegram.org/api/forum) as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.

func (*Client) ChannelsUpdateColor

func (c *Client) ChannelsUpdateColor(forProfile bool, channel InputChannel, color int32, backgroundEmojiID int64) (Updates, error)

Update the [accent color and background custom emoji »](https://core.telegram.org/api/colors) of a channel.

func (*Client) ChannelsUpdateEmojiStatus

func (c *Client) ChannelsUpdateEmojiStatus(channel InputChannel, emojiStatus EmojiStatus) (Updates, error)

Set an [emoji status](https://core.telegram.org/api/emoji-status) for a channel.

func (*Client) ChannelsUpdatePinnedForumTopic

func (c *Client) ChannelsUpdatePinnedForumTopic(channel InputChannel, topicID int32, pinned bool) (Updates, error)

Pin or unpin [forum topics](https://core.telegram.org/api/forum)

func (*Client) ChannelsUpdateUsername

func (c *Client) ChannelsUpdateUsername(channel InputChannel, username string) (bool, error)

Change or remove the username of a supergroup/channel

func (*Client) ChannelsViewSponsoredMessage

func (c *Client) ChannelsViewSponsoredMessage(channel InputChannel, randomID []byte) (bool, error)

Mark a specific sponsored message as read

func (*Client) ChatlistsCheckChatlistInvite

func (c *Client) ChatlistsCheckChatlistInvite(slug string) (ChatlistsChatlistInvite, error)

Obtain information about a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsDeleteExportedInvite

func (c *Client) ChatlistsDeleteExportedInvite(chatlist *InputChatlistDialogFilter, slug string) (bool, error)

Delete a previously created [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsEditExportedInvite

func (c *Client) ChatlistsEditExportedInvite(chatlist *InputChatlistDialogFilter, slug, title string, peers []InputPeer) (*ExportedChatlistInvite, error)

Edit a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsExportChatlistInvite

func (c *Client) ChatlistsExportChatlistInvite(chatlist *InputChatlistDialogFilter, title string, peers []InputPeer) (*ChatlistsExportedChatlistInvite, error)

Export a [folder »](https://core.telegram.org/api/folders), creating a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsGetChatlistUpdates

func (c *Client) ChatlistsGetChatlistUpdates(chatlist *InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)

Fetch new chats associated with an imported [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links). Must be invoked at most every `chatlist_update_period` seconds (as per the related [client configuration parameter »](https://core.telegram.org/api/config#chatlist-update-period)).

func (*Client) ChatlistsGetExportedInvites

func (c *Client) ChatlistsGetExportedInvites(chatlist *InputChatlistDialogFilter) (*ChatlistsExportedInvites, error)

List all [chat folder deep links »](https://core.telegram.org/api/links#chat-folder-links) associated to a folder

func (*Client) ChatlistsGetLeaveChatlistSuggestions

func (c *Client) ChatlistsGetLeaveChatlistSuggestions(chatlist *InputChatlistDialogFilter) ([]Peer, error)

Returns identifiers of pinned or always included chats from a chat folder imported using a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links), which are suggested to be left when the chat folder is deleted.

func (*Client) ChatlistsHideChatlistUpdates

func (c *Client) ChatlistsHideChatlistUpdates(chatlist *InputChatlistDialogFilter) (bool, error)

Dismiss new pending peers recently added to a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsJoinChatlistInvite

func (c *Client) ChatlistsJoinChatlistInvite(slug string, peers []InputPeer) (Updates, error)

Import a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links), joining some or all the chats in the folder.

func (*Client) ChatlistsJoinChatlistUpdates

func (c *Client) ChatlistsJoinChatlistUpdates(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)

Join channels and supergroups recently added to a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*Client) ChatlistsLeaveChatlist

func (c *Client) ChatlistsLeaveChatlist(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)

Delete a folder imported using a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links)

func (*Client) Conn

func (c *Client) Conn() (*Client, error)

Wrapper for Connect()

func (*Client) Connect

func (c *Client) Connect() error

Establish connection to telegram servers

func (*Client) ConnectBot

func (c *Client) ConnectBot(botToken string) error

ConnectBot connects to telegram using bot token

func (*Client) ContactsAcceptContact

func (c *Client) ContactsAcceptContact(id InputUser) (Updates, error)

If the [add contact action bar is active](https://core.telegram.org/api/action-bar#add-contact), add that user as contact

func (*Client) ContactsAddContact

func (c *Client) ContactsAddContact(params *ContactsAddContactParams) (Updates, error)

Add an existing telegram user as contact.

func (*Client) ContactsBlock

func (c *Client) ContactsBlock(myStoriesFrom bool, id InputPeer) (bool, error)

Adds a peer to a blocklist, see [here »](https://core.telegram.org/api/block) for more info.

func (*Client) ContactsBlockFromReplies

func (c *Client) ContactsBlockFromReplies(deleteMessage, deleteHistory, reportSpam bool, msgID int32) (Updates, error)

Stop getting notifications about [discussion replies](https://core.telegram.org/api/discussion) of a certain user in `@replies`

func (*Client) ContactsDeleteByPhones

func (c *Client) ContactsDeleteByPhones(phones []string) (bool, error)

Delete contacts by phone number

func (*Client) ContactsDeleteContacts

func (c *Client) ContactsDeleteContacts(id []InputUser) (Updates, error)

Deletes several contacts from the list.

func (*Client) ContactsEditCloseFriends

func (c *Client) ContactsEditCloseFriends(id []int64) (bool, error)

Edit the [close friends list, see here »](https://core.telegram.org/api/privacy) for more info.

func (*Client) ContactsExportContactToken

func (c *Client) ContactsExportContactToken() (*ExportedContactToken, error)

Generates a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links) for the currently logged-in user.

func (*Client) ContactsGetBirthdays

func (c *Client) ContactsGetBirthdays() (*ContactsContactBirthdays, error)

func (*Client) ContactsGetBlocked

func (c *Client) ContactsGetBlocked(myStoriesFrom bool, offset, limit int32) (ContactsBlocked, error)

Returns the list of blocked users.

func (*Client) ContactsGetContactIDs

func (c *Client) ContactsGetContactIDs(hash int64) ([]int32, error)

Get the telegram IDs of all contacts.<br> Returns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).

func (*Client) ContactsGetContacts

func (c *Client) ContactsGetContacts(hash int64) (ContactsContacts, error)

Returns the current user's contact list.

func (*Client) ContactsGetLocated

func (c *Client) ContactsGetLocated(background bool, geoPoint InputGeoPoint, selfExpires int32) (Updates, error)

Get users and geochats near you, see [here »](https://core.telegram.org/api/nearby) for more info.

func (*Client) ContactsGetSaved

func (c *Client) ContactsGetSaved() ([]*SavedPhoneContact, error)

Get all contacts, requires a [takeout session, see here » for more info](https://core.telegram.org/api/takeout).

func (*Client) ContactsGetStatuses

func (c *Client) ContactsGetStatuses() ([]*ContactStatus, error)

Use this method to obtain the online statuses of all contacts with an accessible Telegram account.

func (*Client) ContactsGetTopPeers

func (c *Client) ContactsGetTopPeers(params *ContactsGetTopPeersParams) (ContactsTopPeers, error)

Get most used peers

func (*Client) ContactsImportContactToken

func (c *Client) ContactsImportContactToken(token string) (User, error)

Obtain user info from a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links).

func (*Client) ContactsImportContacts

func (c *Client) ContactsImportContacts(contacts []*InputPhoneContact) (*ContactsImportedContacts, error)

Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.

func (*Client) ContactsResetSaved

func (c *Client) ContactsResetSaved() (bool, error)

Removes all contacts without an associated Telegram account.

func (*Client) ContactsResetTopPeerRating

func (c *Client) ContactsResetTopPeerRating(category TopPeerCategory, peer InputPeer) (bool, error)

Reset [rating](https://core.telegram.org/api/top-rating) of top peer

func (*Client) ContactsResolvePhone

func (c *Client) ContactsResolvePhone(phone string) (*ContactsResolvedPeer, error)

Resolve a phone number to get user info, if their privacy settings allow it.

func (*Client) ContactsResolveUsername

func (c *Client) ContactsResolveUsername(username string) (*ContactsResolvedPeer, error)

Resolve a @username to get peer info

func (*Client) ContactsSearch

func (c *Client) ContactsSearch(q string, limit int32) (*ContactsFound, error)

Returns users found by username substring.

func (*Client) ContactsSetBlocked

func (c *Client) ContactsSetBlocked(myStoriesFrom bool, id []InputPeer, limit int32) (bool, error)

Replace the contents of an entire [blocklist, see here for more info »](https://core.telegram.org/api/block).

func (*Client) ContactsToggleTopPeers

func (c *Client) ContactsToggleTopPeers(enabled bool) (bool, error)

Enable/disable [top peers](https://core.telegram.org/api/top-rating)

func (*Client) ContactsUnblock

func (c *Client) ContactsUnblock(myStoriesFrom bool, id InputPeer) (bool, error)

Deletes a peer from a blocklist, see [here »](https://core.telegram.org/api/block) for more info.

func (*Client) CreateChannel

func (c *Client) CreateChannel(title string, opts ...*ChannelOptions) (*Channel, error)

func (*Client) CreateExportedSender

func (c *Client) CreateExportedSender(dcID int) (*Client, error)

createExportedSender creates a new exported sender

func (*Client) DeleteChannel

func (c *Client) DeleteChannel(channelID interface{}) (*Updates, error)

func (*Client) DeleteMessages

func (c *Client) DeleteMessages(peerID interface{}, msgIDs []int32, noRevoke ...bool) (*MessagesAffectedMessages, error)

DeleteMessages deletes messages. This method is a wrapper for messages.deleteMessages.

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect from telegram servers

func (*Client) DownloadMedia

func (c *Client) DownloadMedia(file interface{}, Opts ...*DownloadOptions) (string, error)

func (*Client) E

func (c *Client) E(obj any, err error) error

return only the error, omitting the object

func (*Client) Edit2FA

func (c *Client) Edit2FA(currPwd, newPwd string, opts ...*PasswordOptions) (bool, error)

Edit2FA changes the 2FA password of the current user, if 2fa is already enabled, should provide the current password.

func (*Client) EditAdmin

func (c *Client) EditAdmin(PeerID, UserID interface{}, Opts ...*AdminOptions) (bool, error)

Edit Admin rights of a user in a chat, returns true if successful

func (*Client) EditBanned

func (c *Client) EditBanned(PeerID, UserID interface{}, opts ...*BannedOptions) (bool, error)

Edit Restricted rights of a user in a chat, returns true if successful

func (*Client) EditMessage

func (c *Client) EditMessage(peerID interface{}, id int32, message interface{}, opts ...*SendOptions) (*NewMessage, error)

EditMessage edits a message. This method is a wrapper for messages.editMessage.

Parameters:

  • peerID: ID of the peer the message was sent to.
  • id: ID of the message to be edited.
  • message: New text of the message.
  • opts: Optional parameters.

Returns:

  • NewMessage: Returns a NewMessage object containing the edited message on success.
  • error: Returns an error on failure.

func (*Client) EditTitle

func (c *Client) EditTitle(PeerID interface{}, Title string, Opts ...*TitleOptions) (bool, error)

Edit the title of a chat, channel or self, returns true if successful

func (*Client) ExportRawSession

func (c *Client) ExportRawSession() *Session

ExportRawSession exports a session to raw TData

Returns:
  authKey: The auth key of the session
  authKeyHash: The auth key hash
  IpAddr: The IP address of the DC
  DcID: The DC ID to connect to
  AppID: The App ID to use

func (*Client) ExportSession

func (c *Client) ExportSession() string

ExportSession exports the current session to a string, This string can be used to import the session later

func (*Client) FoldersEditPeerFolders

func (c *Client) FoldersEditPeerFolders(folderPeers []*InputFolderPeer) (Updates, error)

Edit peers in [peer folder](https://core.telegram.org/api/folders#peer-folders)

func (*Client) FormatMessage

func (c *Client) FormatMessage(message, mode string) ([]MessageEntity, string)

func (*Client) Forward

func (c *Client) Forward(peerID, fromPeerID interface{}, msgIDs []int32, opts ...*ForwardOptions) ([]NewMessage, error)

Forward forwards a message. This method is a wrapper for messages.forwardMessages.

func (*Client) FragmentGetCollectibleInfo

func (c *Client) FragmentGetCollectibleInfo(collectible InputCollectible) (*FragmentCollectibleInfo, error)

func (*Client) GetCachedExportedSenders

func (c *Client) GetCachedExportedSenders(dcID int) []*Client

func (*Client) GetChannel

func (c *Client) GetChannel(channelID int64) (*Channel, error)

func (*Client) GetChat

func (c *Client) GetChat(chatID int64) (*ChatObj, error)
func (c *Client) GetChatInviteLink(peerID interface{}, LinkOpts ...*InviteLinkOptions) (ExportedChatInvite, error)

GetChatInviteLink returns the invite link of a chat

Params:
 - peerID : The ID of the chat
 - LegacyRevoke : If true, the link will be revoked
 - Expire: The time in seconds after which the link will expire
 - Limit: The maximum number of users that can join the chat using the link
 - Title: The title of the link
 - RequestNeeded: If true, join requests will be needed to join the chat

func (*Client) GetChatJoinRequests

func (c *Client) GetChatJoinRequests(channelID interface{}, lim int) ([]*UserObj, error)

func (*Client) GetChatMember

func (c *Client) GetChatMember(chatID, userID interface{}) (*Participant, error)

GetChatMember returns the members of a chat

Params:
 - chatID: The ID of the chat
 - userID: The ID of the user

func (*Client) GetChatMembers

func (c *Client) GetChatMembers(chatID interface{}, Opts ...*ParticipantOptions) ([]*Participant, int32, error)

GetChatMembers returns the members of a chat

Params:
 - chatID: The ID of the chat
 - filter: The filter to use
 - offset: The offset to use
 - limit: The limit to use

func (*Client) GetChatPhoto

func (c *Client) GetChatPhoto(chatID interface{}) (Photo, error)

GetChatPhoto returns the current chat photo

Params:
 - chatID: chat id

func (*Client) GetChatPhotos

func (c *Client) GetChatPhotos(chatID interface{}, limit ...int32) ([]Photo, error)

GetChatPhotos returns the profile photos of a chat

Params:
 - chatID: The ID of the chat
 - limit: The maximum number of photos to be returned

func (*Client) GetCommonChats

func (c *Client) GetCommonChats(userID interface{}) ([]Chat, error)

GetCommonChats returns the common chats of a user

Params:
 - userID: The user Identifier

func (*Client) GetCustomEmoji

func (c *Client) GetCustomEmoji(docIDs ...int64) ([]Document, error)

GetCustomEmoji gets the document of a custom emoji

Params:
 - docIDs: the document id of the emoji

func (*Client) GetDC

func (c *Client) GetDC() int

Gets the connected DC-ID

func (*Client) GetDialogs

func (c *Client) GetDialogs(Opts ...*DialogOptions) ([]Dialog, error)

GetDialogs returns the dialogs of the user

Params:
 - OffsetID: The offset ID of the dialog
 - OffsetDate: The offset date of the dialog
 - OffsetPeer: The offset peer of the dialog
 - Limit: The number of dialogs to return
 - ExcludePinned: Whether to exclude pinned dialogs
 - FolderID: The folder ID to get dialogs from

func (*Client) GetDifference

func (c *Client) GetDifference(Pts, Limit int32) (Message, error)

func (*Client) GetGroupCall

func (c *Client) GetGroupCall(chatId interface{}) (*InputGroupCall, error)

func (*Client) GetHistory

func (c *Client) GetHistory(PeerID interface{}, opts ...*HistoryOption) ([]NewMessage, error)

func (*Client) GetMe

func (c *Client) GetMe() (*UserObj, error)

GetMe returns the current user

func (*Client) GetMediaGroup

func (c *Client) GetMediaGroup(PeerID interface{}, MsgID int32) ([]NewMessage, error)

GetMediaGroup gets all the messages in a media group.

Params:
  - PeerID: The ID of the chat or channel.
  - MsgID: The ID of the message.

func (*Client) GetMessageByID

func (c *Client) GetMessageByID(PeerID interface{}, MsgID int32) (*NewMessage, error)

func (*Client) GetMessages

func (c *Client) GetMessages(PeerID interface{}, Opts ...*SearchOption) ([]NewMessage, error)

func (*Client) GetPeer

func (c *Client) GetPeer(peerID int64) (any, error)

mux function to getChat/getChannel/getUser

func (*Client) GetPeerChannel

func (c *Client) GetPeerChannel(channelID int64) (*InputPeerChannel, error)

func (*Client) GetPeerID

func (c *Client) GetPeerID(Peer interface{}) int64

func (*Client) GetPeerUser

func (c *Client) GetPeerUser(userID int64) (*InputPeerUser, error)

func (*Client) GetPinnedMessage

func (c *Client) GetPinnedMessage(PeerID interface{}) (*NewMessage, error)

Gets the current pinned message in a chat

func (*Client) GetProfilePhotos

func (c *Client) GetProfilePhotos(userID interface{}, Opts ...*PhotosOptions) ([]UserPhoto, error)

GetProfilePhotos returns the profile photos of a user

Params:
 - userID: The user ID
 - Offset: The offset to start from
 - Limit: The number of photos to return
 - MaxID: The maximum ID of the photo to return

func (*Client) GetSendableChannel

func (c *Client) GetSendableChannel(PeerID interface{}) (InputChannel, error)

func (*Client) GetSendablePeer

func (c *Client) GetSendablePeer(PeerID interface{}) (InputPeer, error)

func (*Client) GetSendableUser

func (c *Client) GetSendableUser(PeerID interface{}) (InputUser, error)

func (*Client) GetStats

func (c *Client) GetStats(channelID interface{}, messageID ...interface{}) (*StatsBroadcastStats, *StatsMessageStats, error)

GetStats returns the stats of the channel or message

Params:
 - channelID: the channel ID
 - messageID: the message ID

func (*Client) GetUser

func (c *Client) GetUser(userID int64) (*UserObj, error)

func (*Client) HelpAcceptTermsOfService

func (c *Client) HelpAcceptTermsOfService(id *DataJson) (bool, error)

Accept the new terms of service

func (*Client) HelpDismissSuggestion

func (c *Client) HelpDismissSuggestion(peer InputPeer, suggestion string) (bool, error)

Dismiss a [suggestion, see here for more info »](https://core.telegram.org/api/config#suggestions).

func (*Client) HelpEditUserInfo

func (c *Client) HelpEditUserInfo(userID InputUser, message string, entities []MessageEntity) (HelpUserInfo, error)

Internal use

func (*Client) HelpGetAppConfig

func (c *Client) HelpGetAppConfig(hash int32) (HelpAppConfig, error)

Get app-specific configuration, see [client configuration](https://core.telegram.org/api/config#client-configuration) for more info on the result.

func (*Client) HelpGetAppUpdate

func (c *Client) HelpGetAppUpdate(source string) (HelpAppUpdate, error)

Returns information on update availability for the current application.

func (*Client) HelpGetCdnConfig

func (c *Client) HelpGetCdnConfig() (*CdnConfig, error)

Get configuration for [CDN](https://core.telegram.org/cdn) file downloads.

func (*Client) HelpGetConfig

func (c *Client) HelpGetConfig() (*Config, error)

Returns current configuration, including data center configuration.

func (*Client) HelpGetCountriesList

func (c *Client) HelpGetCountriesList(langCode string, hash int32) (HelpCountriesList, error)

Get name, ISO code, localized name and phone codes/patterns of all available countries

func (*Client) HelpGetDeepLinkInfo

func (c *Client) HelpGetDeepLinkInfo(path string) (HelpDeepLinkInfo, error)

Get info about an unsupported deep link, see [here for more info »](https://core.telegram.org/api/links#unsupported-links).

func (*Client) HelpGetInviteText

func (c *Client) HelpGetInviteText() (*HelpInviteText, error)

Returns localized text of a text message with an invitation.

func (*Client) HelpGetNearestDc

func (c *Client) HelpGetNearestDc() (*NearestDc, error)

Returns info on data center nearest to the user.

func (*Client) HelpGetPassportConfig

func (c *Client) HelpGetPassportConfig(hash int32) (HelpPassportConfig, error)

Get [passport](https://core.telegram.org/passport) configuration

func (*Client) HelpGetPeerColors

func (c *Client) HelpGetPeerColors(hash int32) (HelpPeerColors, error)

Get the set of [accent color palettes »](https://core.telegram.org/api/colors) that can be used for message accents.

func (*Client) HelpGetPeerProfileColors

func (c *Client) HelpGetPeerProfileColors(hash int32) (HelpPeerColors, error)

Get the set of [accent color palettes »](https://core.telegram.org/api/colors) that can be used in profile page backgrounds.

func (*Client) HelpGetPremiumPromo

func (c *Client) HelpGetPremiumPromo() (*HelpPremiumPromo, error)

Get Telegram Premium promotion information

func (*Client) HelpGetPromoData

func (c *Client) HelpGetPromoData() (HelpPromoData, error)

Get MTProxy/Public Service Announcement information

func (*Client) HelpGetRecentMeUrls

func (c *Client) HelpGetRecentMeUrls(referer string) (*HelpRecentMeUrls, error)

Get recently used `t.me` links.

func (*Client) HelpGetSupport

func (c *Client) HelpGetSupport() (*HelpSupport, error)

Returns the support user for the "ask a question" feature.

func (*Client) HelpGetSupportName

func (c *Client) HelpGetSupportName() (*HelpSupportName, error)

Get localized name of the telegram support user

func (*Client) HelpGetTermsOfServiceUpdate

func (c *Client) HelpGetTermsOfServiceUpdate() (HelpTermsOfServiceUpdate, error)

Look for updates of telegram's terms of service

func (*Client) HelpGetTimezonesList

func (c *Client) HelpGetTimezonesList(hash int32) (HelpTimezonesList, error)

func (*Client) HelpGetUserInfo

func (c *Client) HelpGetUserInfo(userID InputUser) (HelpUserInfo, error)

Can only be used by TSF members to obtain internal information.

func (*Client) HelpHidePromoData

func (c *Client) HelpHidePromoData(peer InputPeer) (bool, error)

Hide MTProxy/Public Service Announcement information

func (*Client) HelpSaveAppLog

func (c *Client) HelpSaveAppLog(events []*InputAppEvent) (bool, error)

Saves logs of application on the server.

func (*Client) HelpSetBotUpdatesStatus

func (c *Client) HelpSetBotUpdatesStatus(pendingUpdatesCount int32, message string) (bool, error)

Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only

func (*Client) IdInCache

func (c *Client) IdInCache(id int64) bool

func (*Client) Idle

func (c *Client) Idle()

Idle blocks the current goroutine until the client is stopped/terminated

func (*Client) ImportRawSession

func (c *Client) ImportRawSession(authKey, authKeyHash []byte, IpAddr string, AppID int32) (bool, error)

ImportRawSession imports a session from raw TData

Params:
  authKey: The auth key of the session
  authKeyHash: The auth key hash
  IpAddr: The IP address of the DC
  DcID: The DC ID to connect to
  AppID: The App ID to use

func (*Client) ImportSession

func (c *Client) ImportSession(sessionString string) (bool, error)

ImportSession imports a session from a string

Params:
  sessionString: The sessionString to authenticate with

func (*Client) InitConnection

func (c *Client) InitConnection(params *InitConnectionParams) (tl.Object, error)

func (*Client) InitialRequest

func (c *Client) InitialRequest() error

initialRequest sends the initial initConnection request

func (*Client) InlineQuery

func (c *Client) InlineQuery(peerID interface{}, Options ...*InlineOptions) (*MessagesBotResults, error)

InlineQuery performs an inline query and returns the results.

Params:
  - peerID: The ID of the Inline Bot.
  - Query: The query to send.
  - Offset: The offset to send.
  - Dialog: The chat or channel to send the query to.
  - GeoPoint: The location to send.

func (*Client) InvokeWithLayer

func (m *Client) InvokeWithLayer(layer int, query tl.Object) (tl.Object, error)

func (*Client) InvokeWithTakeout

func (m *Client) InvokeWithTakeout(takeoutID int, query tl.Object) (tl.Object, error)

func (*Client) IsAuthorized

func (c *Client) IsAuthorized() (bool, error)

Returns true if the client is authorized as a user or a bot

func (*Client) IsConnected

func (c *Client) IsConnected() bool

Returns true if the client is connected to telegram servers

func (*Client) JSON

func (c *Client) JSON(object interface{}, nointent ...any) string

easy wrapper for json.MarshalIndent, returns string

func (*Client) JoinChannel

func (c *Client) JoinChannel(Channel interface{}) error

JoinChannel joins a channel or chat by its username or id

Params:
- Channel: the username or id of the channel or chat

func (*Client) KickParticipant

func (c *Client) KickParticipant(PeerID, UserID interface{}) (bool, error)

func (*Client) LangpackGetDifference

func (c *Client) LangpackGetDifference(langPack, langCode string, fromVersion int32) (*LangPackDifference, error)

Get new strings in language pack

func (*Client) LangpackGetLangPack

func (c *Client) LangpackGetLangPack(langPack, langCode string) (*LangPackDifference, error)

Get localization pack strings

func (*Client) LangpackGetLanguage

func (c *Client) LangpackGetLanguage(langPack, langCode string) (*LangPackLanguage, error)

Get information about a language in a localization pack

func (*Client) LangpackGetLanguages

func (c *Client) LangpackGetLanguages(langPack string) ([]*LangPackLanguage, error)

Get information about all languages in a localization pack

func (*Client) LangpackGetStrings

func (c *Client) LangpackGetStrings(langPack, langCode string, keys []string) ([]LangPackString, error)

Get strings from a language pack

func (*Client) LeaveChannel

func (c *Client) LeaveChannel(Channel interface{}, Revoke ...bool) error

LeaveChannel leaves a channel or chat

Params:
 - Channel: Channel or chat to leave
 - Revoke: If true, the channel will be deleted

func (*Client) LoadSession

func (c *Client) LoadSession(sess *Session) error

LoadSession loads a session from a file, database, etc.

Params:
  Session: The session to load

func (*Client) LogOut

func (c *Client) LogOut() error

Logs out from the current account

func (*Client) Login

func (c *Client) Login(phoneNumber string, options ...*LoginOptions) (bool, error)

Authorize client with phone number, code and phone code hash, If phone code hash is empty, it will be requested from telegram server

func (*Client) LoginBot

func (c *Client) LoginBot(botToken string) error

Authorize client with bot token

func (*Client) Me

func (c *Client) Me() *UserObj

func (*Client) MessagesAcceptEncryption

func (c *Client) MessagesAcceptEncryption(peer *InputEncryptedChat, gB []byte, keyFingerprint int64) (EncryptedChat, error)

Confirms creation of a secret chat

func (*Client) MessagesAcceptURLAuth

func (c *Client) MessagesAcceptURLAuth(params *MessagesAcceptURLAuthParams) (URLAuthResult, error)

Use this to accept a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)

func (*Client) MessagesAddChatUser

func (c *Client) MessagesAddChatUser(chatID int64, userID InputUser, fwdLimit int32) (*MessagesInvitedUsers, error)

Adds a user to a chat and sends a service message on it.

func (*Client) MessagesChangeStarsSubscription

func (c *Client) MessagesChangeStarsSubscription(canceled bool, peer InputPeer, subscriptionID string) (bool, error)

func (*Client) MessagesCheckChatInvite

func (c *Client) MessagesCheckChatInvite(hash string) (ChatInvite, error)

Check the validity of a chat invite link and get basic info about it

func (*Client) MessagesCheckHistoryImport

func (c *Client) MessagesCheckHistoryImport(importHead string) (*MessagesHistoryImportParsed, error)

Obtains information about a chat export file, generated by a foreign chat app, [click here for more info about imported chats »](https://core.telegram.org/api/import).

func (*Client) MessagesCheckHistoryImportPeer

func (c *Client) MessagesCheckHistoryImportPeer(peer InputPeer) (*MessagesCheckedHistoryImportPeer, error)

Check whether chat history exported from another chat app can be [imported into a specific Telegram chat, click here for more info »](https://core.telegram.org/api/import).

func (*Client) MessagesCheckQuickReplyShortcut

func (c *Client) MessagesCheckQuickReplyShortcut(shortcut string) (bool, error)

func (*Client) MessagesClearAllDrafts

func (c *Client) MessagesClearAllDrafts() (bool, error)

Clear all [drafts](https://core.telegram.org/api/drafts).

func (*Client) MessagesClearRecentReactions

func (c *Client) MessagesClearRecentReactions() (bool, error)

Clear recently used [message reactions](https://core.telegram.org/api/reactions)

func (*Client) MessagesClearRecentStickers

func (c *Client) MessagesClearRecentStickers(attached bool) (bool, error)

Clear recent stickers

func (*Client) MessagesCreateChat

func (c *Client) MessagesCreateChat(users []InputUser, title string, ttlPeriod int32) (*MessagesInvitedUsers, error)

Creates a new chat.

func (*Client) MessagesDeleteChat

func (c *Client) MessagesDeleteChat(chatID int64) (bool, error)

Delete a [chat](https://core.telegram.org/api/channel)

func (*Client) MessagesDeleteChatUser

func (c *Client) MessagesDeleteChatUser(revokeHistory bool, chatID int64, userID InputUser) (Updates, error)

Deletes a user from a chat and sends a service message on it.

func (*Client) MessagesDeleteExportedChatInvite

func (c *Client) MessagesDeleteExportedChatInvite(peer InputPeer, link string) (bool, error)

Delete a chat invite

func (*Client) MessagesDeleteFactCheck

func (c *Client) MessagesDeleteFactCheck(peer InputPeer, msgID int32) (Updates, error)

func (*Client) MessagesDeleteHistory

func (c *Client) MessagesDeleteHistory(params *MessagesDeleteHistoryParams) (*MessagesAffectedHistory, error)

Deletes communication history.

func (*Client) MessagesDeleteMessages

func (c *Client) MessagesDeleteMessages(revoke bool, id []int32) (*MessagesAffectedMessages, error)

Deletes messages by their identifiers.

func (*Client) MessagesDeletePhoneCallHistory

func (c *Client) MessagesDeletePhoneCallHistory(revoke bool) (*MessagesAffectedFoundMessages, error)

Delete the entire phone call history.

func (*Client) MessagesDeleteQuickReplyMessages

func (c *Client) MessagesDeleteQuickReplyMessages(shortcutID int32, id []int32) (Updates, error)

func (*Client) MessagesDeleteQuickReplyShortcut

func (c *Client) MessagesDeleteQuickReplyShortcut(shortcutID int32) (bool, error)

func (*Client) MessagesDeleteRevokedExportedChatInvites

func (c *Client) MessagesDeleteRevokedExportedChatInvites(peer InputPeer, adminID InputUser) (bool, error)

Delete all revoked chat invites

func (*Client) MessagesDeleteSavedHistory

func (c *Client) MessagesDeleteSavedHistory(peer InputPeer, maxID, minDate, maxDate int32) (*MessagesAffectedHistory, error)

Deletes messages forwarded from a specific peer to [saved messages »](https://core.telegram.org/api/saved-messages).

func (*Client) MessagesDeleteScheduledMessages

func (c *Client) MessagesDeleteScheduledMessages(peer InputPeer, id []int32) (Updates, error)

Delete scheduled messages

func (*Client) MessagesDiscardEncryption

func (c *Client) MessagesDiscardEncryption(deleteHistory bool, chatID int32) (bool, error)

Cancels a request for creation and/or delete info on secret chat.

func (*Client) MessagesEditChatAbout

func (c *Client) MessagesEditChatAbout(peer InputPeer, about string) (bool, error)

Edit the description of a group/supergroup/channel(https://core.telegram.org/api/channel).

func (*Client) MessagesEditChatAdmin

func (c *Client) MessagesEditChatAdmin(chatID int64, userID InputUser, isAdmin bool) (bool, error)

Make a user admin in a [basic group](https://core.telegram.org/api/channel#basic-groups).

func (*Client) MessagesEditChatDefaultBannedRights

func (c *Client) MessagesEditChatDefaultBannedRights(peer InputPeer, bannedRights *ChatBannedRights) (Updates, error)

Edit the default banned rights of a channel/supergroup/group(https://core.telegram.org/api/channel).

func (*Client) MessagesEditChatPhoto

func (c *Client) MessagesEditChatPhoto(chatID int64, photo InputChatPhoto) (Updates, error)

Changes chat photo and sends a service message on it

func (*Client) MessagesEditChatTitle

func (c *Client) MessagesEditChatTitle(chatID int64, title string) (Updates, error)

Changes chat name and sends a service message on it.

func (*Client) MessagesEditExportedChatInvite

func (c *Client) MessagesEditExportedChatInvite(params *MessagesEditExportedChatInviteParams) (MessagesExportedChatInvite, error)

Edit an exported chat invite

func (*Client) MessagesEditFactCheck

func (c *Client) MessagesEditFactCheck(peer InputPeer, msgID int32, text *TextWithEntities) (Updates, error)

func (*Client) MessagesEditInlineBotMessage

func (c *Client) MessagesEditInlineBotMessage(params *MessagesEditInlineBotMessageParams) (bool, error)

Edit an inline bot message

func (*Client) MessagesEditMessage

func (c *Client) MessagesEditMessage(params *MessagesEditMessageParams) (Updates, error)

Edit message

func (*Client) MessagesEditQuickReplyShortcut

func (c *Client) MessagesEditQuickReplyShortcut(shortcutID int32, shortcut string) (bool, error)

func (*Client) MessagesExportChatInvite

func (c *Client) MessagesExportChatInvite(params *MessagesExportChatInviteParams) (ExportedChatInvite, error)

Export an invite link for a chat

func (*Client) MessagesFaveSticker

func (c *Client) MessagesFaveSticker(id InputDocument, unfave bool) (bool, error)

Mark or unmark a sticker as favorite

func (*Client) MessagesForwardMessages

func (c *Client) MessagesForwardMessages(params *MessagesForwardMessagesParams) (Updates, error)

Forwards messages by their IDs.

func (*Client) MessagesFulfillStarsSubscription

func (c *Client) MessagesFulfillStarsSubscription(peer InputPeer, subscriptionID string) (bool, error)

func (*Client) MessagesGetAdminsWithInvites

func (c *Client) MessagesGetAdminsWithInvites(peer InputPeer) (*MessagesChatAdminsWithInvites, error)

Get info about chat invites generated by admins.

func (*Client) MessagesGetAllDrafts

func (c *Client) MessagesGetAllDrafts() (Updates, error)

Return all message [drafts](https://core.telegram.org/api/drafts).<br> Returns all the latest [updateDraftMessage](https://core.telegram.org/constructor/updateDraftMessage) updates related to all chats with drafts.

func (*Client) MessagesGetAllStickers

func (c *Client) MessagesGetAllStickers(hash int64) (MessagesAllStickers, error)

Get all installed stickers

func (*Client) MessagesGetArchivedStickers

func (c *Client) MessagesGetArchivedStickers(masks, emojis bool, offsetID int64, limit int32) (*MessagesArchivedStickers, error)

Get all archived stickers

func (*Client) MessagesGetAttachMenuBot

func (c *Client) MessagesGetAttachMenuBot(bot InputUser) (*AttachMenuBotsBot, error)

Returns attachment menu entry for a [bot mini app that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach)

func (*Client) MessagesGetAttachMenuBots

func (c *Client) MessagesGetAttachMenuBots(hash int64) (AttachMenuBots, error)

Returns installed attachment menu [bot mini apps »](https://core.telegram.org/api/bots/attach)

func (*Client) MessagesGetAttachedStickers

func (c *Client) MessagesGetAttachedStickers(media InputStickeredMedia) ([]StickerSetCovered, error)

Get stickers attached to a photo or video

func (*Client) MessagesGetAvailableEffects

func (c *Client) MessagesGetAvailableEffects(hash int32) (MessagesAvailableEffects, error)

func (*Client) MessagesGetAvailableReactions

func (c *Client) MessagesGetAvailableReactions(hash int32) (MessagesAvailableReactions, error)

Obtain available [message reactions »](https://core.telegram.org/api/reactions)

func (*Client) MessagesGetBotApp

func (c *Client) MessagesGetBotApp(app InputBotApp, hash int64) (*MessagesBotApp, error)

Obtain information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps)

func (*Client) MessagesGetBotCallbackAnswer

func (c *Client) MessagesGetBotCallbackAnswer(params *MessagesGetBotCallbackAnswerParams) (*MessagesBotCallbackAnswer, error)

Press an inline callback button and get a callback answer from the bot

func (*Client) MessagesGetChatInviteImporters

func (c *Client) MessagesGetChatInviteImporters(params *MessagesGetChatInviteImportersParams) (*MessagesChatInviteImporters, error)

Get info about the users that joined the chat using a specific chat invite

func (*Client) MessagesGetChats

func (c *Client) MessagesGetChats(id []int64) (MessagesChats, error)

Returns chat basic info on their IDs.

func (*Client) MessagesGetCommonChats

func (c *Client) MessagesGetCommonChats(userID InputUser, maxID int64, limit int32) (MessagesChats, error)

Get chats in common with a user

func (*Client) MessagesGetCustomEmojiDocuments

func (c *Client) MessagesGetCustomEmojiDocuments(documentID []int64) ([]Document, error)

Fetch [custom emoji stickers »](https://core.telegram.org/api/custom-emoji).

func (*Client) MessagesGetDefaultHistoryTtl

func (c *Client) MessagesGetDefaultHistoryTtl() (*DefaultHistoryTtl, error)

Gets the default value of the Time-To-Live setting, applied to all new chats.

func (*Client) MessagesGetDefaultTagReactions

func (c *Client) MessagesGetDefaultTagReactions(hash int64) (MessagesReactions, error)

func (*Client) MessagesGetDhConfig

func (c *Client) MessagesGetDhConfig(version, randomLength int32) (MessagesDhConfig, error)

Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.

func (*Client) MessagesGetDialogFilters

func (c *Client) MessagesGetDialogFilters() (*MessagesDialogFilters, error)

Get [folders](https://core.telegram.org/api/folders)

func (*Client) MessagesGetDialogUnreadMarks

func (c *Client) MessagesGetDialogUnreadMarks() ([]DialogPeer, error)

Get dialogs manually marked as unread

func (*Client) MessagesGetDialogs

func (c *Client) MessagesGetDialogs(params *MessagesGetDialogsParams) (MessagesDialogs, error)

Returns the current user dialog list.

func (*Client) MessagesGetDiscussionMessage

func (c *Client) MessagesGetDiscussionMessage(peer InputPeer, msgID int32) (*MessagesDiscussionMessage, error)

Get [discussion message](https://core.telegram.org/api/threads) from the [associated discussion group](https://core.telegram.org/api/discussion) of a channel to show it on top of the comment section, without actually joining the group

func (*Client) MessagesGetDocumentByHash

func (c *Client) MessagesGetDocumentByHash(sha256 []byte, size int64, mimeType string) (Document, error)

Get a document by its SHA256 hash, mainly used for gifs

func (*Client) MessagesGetEmojiGroups

func (c *Client) MessagesGetEmojiGroups(hash int32) (MessagesEmojiGroups, error)

Represents a list of [emoji categories](https://core.telegram.org/api/custom-emoji#emoji-categories), to be used when selecting [custom emojis](https://core.telegram.org/api/custom-emoji).

func (*Client) MessagesGetEmojiKeywords

func (c *Client) MessagesGetEmojiKeywords(langCode string) (*EmojiKeywordsDifference, error)

Get localized [emoji keywords »](https://core.telegram.org/api/custom-emoji#emoji-keywords).

func (*Client) MessagesGetEmojiKeywordsDifference

func (c *Client) MessagesGetEmojiKeywordsDifference(langCode string, fromVersion int32) (*EmojiKeywordsDifference, error)

Get changed [emoji keywords »](https://core.telegram.org/api/custom-emoji#emoji-keywords).

func (*Client) MessagesGetEmojiKeywordsLanguages

func (c *Client) MessagesGetEmojiKeywordsLanguages(langCodes []string) ([]*EmojiLanguage, error)

Obtain a list of related languages that must be used when fetching [emoji keyword lists »](https://core.telegram.org/api/custom-emoji#emoji-keywords).

func (*Client) MessagesGetEmojiProfilePhotoGroups

func (c *Client) MessagesGetEmojiProfilePhotoGroups(hash int32) (MessagesEmojiGroups, error)

Represents a list of [emoji categories](https://core.telegram.org/api/custom-emoji#emoji-categories), to be used when selecting custom emojis to set as [profile picture](https://core.telegram.org/api/files#sticker-profile-pictures).

func (*Client) MessagesGetEmojiStatusGroups

func (c *Client) MessagesGetEmojiStatusGroups(hash int32) (MessagesEmojiGroups, error)

Represents a list of [emoji categories](https://core.telegram.org/api/custom-emoji#emoji-categories), to be used when selecting custom emojis to set as [custom emoji status](https://core.telegram.org/api).

func (*Client) MessagesGetEmojiStickerGroups

func (c *Client) MessagesGetEmojiStickerGroups(hash int32) (MessagesEmojiGroups, error)

func (*Client) MessagesGetEmojiStickers

func (c *Client) MessagesGetEmojiStickers(hash int64) (MessagesAllStickers, error)

Gets the list of currently installed [custom emoji stickersets](https://core.telegram.org/api/custom-emoji).

func (*Client) MessagesGetEmojiURL

func (c *Client) MessagesGetEmojiURL(langCode string) (*EmojiURL, error)

Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new [emoji keywords »](https://core.telegram.org/api/custom-emoji#emoji-keywords). The URL will be valid for 30 seconds after generation.

func (*Client) MessagesGetExportedChatInvite

func (c *Client) MessagesGetExportedChatInvite(peer InputPeer, link string) (MessagesExportedChatInvite, error)

Get info about a chat invite

func (*Client) MessagesGetExportedChatInvites

func (c *Client) MessagesGetExportedChatInvites(params *MessagesGetExportedChatInvitesParams) (*MessagesExportedChatInvites, error)

Get info about the chat invites of a specific chat

func (*Client) MessagesGetExtendedMedia

func (c *Client) MessagesGetExtendedMedia(peer InputPeer, id []int32) (Updates, error)

Get information about extended media

func (*Client) MessagesGetFactCheck

func (c *Client) MessagesGetFactCheck(peer InputPeer, msgID []int32) ([]*FactCheck, error)

func (*Client) MessagesGetFavedStickers

func (c *Client) MessagesGetFavedStickers(hash int64) (MessagesFavedStickers, error)

Get faved stickers

func (*Client) MessagesGetFeaturedEmojiStickers

func (c *Client) MessagesGetFeaturedEmojiStickers(hash int64) (MessagesFeaturedStickers, error)

Gets featured custom emoji stickersets.

func (*Client) MessagesGetFeaturedStickers

func (c *Client) MessagesGetFeaturedStickers(hash int64) (MessagesFeaturedStickers, error)

Get featured stickers

func (*Client) MessagesGetFullChat

func (c *Client) MessagesGetFullChat(chatID int64) (*MessagesChatFull, error)

Get full info about a [basic group](https://core.telegram.org/api/channel#basic-groups).

func (*Client) MessagesGetGameHighScores

func (c *Client) MessagesGetGameHighScores(peer InputPeer, id int32, userID InputUser) (*MessagesHighScores, error)

Get highscores of a game

func (*Client) MessagesGetHistory

func (c *Client) MessagesGetHistory(params *MessagesGetHistoryParams) (MessagesMessages, error)

Returns the conversation history with one interlocutor / within a chat

func (*Client) MessagesGetInlineBotResults

func (c *Client) MessagesGetInlineBotResults(params *MessagesGetInlineBotResultsParams) (*MessagesBotResults, error)

Query an inline bot

func (*Client) MessagesGetInlineGameHighScores

func (c *Client) MessagesGetInlineGameHighScores(id InputBotInlineMessageID, userID InputUser) (*MessagesHighScores, error)

Get highscores of a game sent using an inline bot

func (*Client) MessagesGetMaskStickers

func (c *Client) MessagesGetMaskStickers(hash int64) (MessagesAllStickers, error)

Get installed mask stickers

func (*Client) MessagesGetMessageEditData

func (c *Client) MessagesGetMessageEditData(peer InputPeer, id int32) (*MessagesMessageEditData, error)

Find out if a media message's caption can be edited

func (*Client) MessagesGetMessageReactionsList

func (c *Client) MessagesGetMessageReactionsList(params *MessagesGetMessageReactionsListParams) (*MessagesMessageReactionsList, error)

Get [message reaction](https://core.telegram.org/api/reactions) list, along with the sender of each reaction.

func (*Client) MessagesGetMessageReadParticipants

func (c *Client) MessagesGetMessageReadParticipants(peer InputPeer, msgID int32) ([]*ReadParticipantDate, error)

Get which users read a specific message: only available for groups and supergroups with less than <a href="/api/config#chat-read-mark-size-threshold">`chat_read_mark_size_threshold` members</a>, read receipts will be stored for <a href="/api/config#chat-read-mark-expire-period">`chat_read_mark_expire_period` seconds after the message was sent</a>, see [client configuration for more info »](https://core.telegram.org/api/config#client-configuration).

func (*Client) MessagesGetMessages

func (c *Client) MessagesGetMessages(id []InputMessage) (MessagesMessages, error)

Returns the list of messages by their IDs.

func (*Client) MessagesGetMessagesReactions

func (c *Client) MessagesGetMessagesReactions(peer InputPeer, id []int32) (Updates, error)

Get [message reactions »](https://core.telegram.org/api/reactions)

func (*Client) MessagesGetMessagesViews

func (c *Client) MessagesGetMessagesViews(peer InputPeer, id []int32, increment bool) (*MessagesMessageViews, error)

Get and increase the view counter of a message sent or forwarded from a [channel](https://core.telegram.org/api/channel)

func (*Client) MessagesGetMyStickers

func (c *Client) MessagesGetMyStickers(offsetID int64, limit int32) (*MessagesMyStickers, error)

func (*Client) MessagesGetOldFeaturedStickers

func (c *Client) MessagesGetOldFeaturedStickers(offset, limit int32, hash int64) (MessagesFeaturedStickers, error)

Method for fetching previously featured stickers

func (*Client) MessagesGetOnlines

func (c *Client) MessagesGetOnlines(peer InputPeer) (*ChatOnlines, error)

Get count of online users in a chat

func (*Client) MessagesGetOutboxReadDate

func (c *Client) MessagesGetOutboxReadDate(peer InputPeer, msgID int32) (*OutboxReadDate, error)

func (*Client) MessagesGetPeerDialogs

func (c *Client) MessagesGetPeerDialogs(peers []InputDialogPeer) (*MessagesPeerDialogs, error)

Get dialog info of specified peers

func (*Client) MessagesGetPeerSettings

func (c *Client) MessagesGetPeerSettings(peer InputPeer) (*MessagesPeerSettings, error)

Get peer settings

func (*Client) MessagesGetPinnedDialogs

func (c *Client) MessagesGetPinnedDialogs(folderID int32) (*MessagesPeerDialogs, error)

Get pinned dialogs

func (*Client) MessagesGetPinnedSavedDialogs

func (c *Client) MessagesGetPinnedSavedDialogs() (MessagesSavedDialogs, error)

Get pinned [saved dialogs, see here »](https://core.telegram.org/api/saved-messages) for more info.

func (*Client) MessagesGetPollResults

func (c *Client) MessagesGetPollResults(peer InputPeer, msgID int32) (Updates, error)

Get poll results

func (*Client) MessagesGetPollVotes

func (c *Client) MessagesGetPollVotes(params *MessagesGetPollVotesParams) (*MessagesVotesList, error)

Get poll results for non-anonymous polls

func (*Client) MessagesGetQuickReplies

func (c *Client) MessagesGetQuickReplies(hash int64) (MessagesQuickReplies, error)

func (*Client) MessagesGetQuickReplyMessages

func (c *Client) MessagesGetQuickReplyMessages(shortcutID int32, id []int32, hash int64) (MessagesMessages, error)

func (*Client) MessagesGetRecentLocations

func (c *Client) MessagesGetRecentLocations(peer InputPeer, limit int32, hash int64) (MessagesMessages, error)

Get live location history of a certain user

func (*Client) MessagesGetRecentReactions

func (c *Client) MessagesGetRecentReactions(limit int32, hash int64) (MessagesReactions, error)

Get recently used [message reactions](https://core.telegram.org/api/reactions)

func (*Client) MessagesGetRecentStickers

func (c *Client) MessagesGetRecentStickers(attached bool, hash int64) (MessagesRecentStickers, error)

Get recent stickers

func (*Client) MessagesGetReplies

func (c *Client) MessagesGetReplies(params *MessagesGetRepliesParams) (MessagesMessages, error)

Get messages in a reply thread

func (*Client) MessagesGetSavedDialogs

func (c *Client) MessagesGetSavedDialogs(params *MessagesGetSavedDialogsParams) (MessagesSavedDialogs, error)

Returns the current saved dialog list, see [here »](https://core.telegram.org/api/saved-messages) for more info.

func (*Client) MessagesGetSavedGifs

func (c *Client) MessagesGetSavedGifs(hash int64) (MessagesSavedGifs, error)

Get saved GIFs

func (*Client) MessagesGetSavedHistory

func (c *Client) MessagesGetSavedHistory(params *MessagesGetSavedHistoryParams) (MessagesMessages, error)

Returns [saved messages »](https://core.telegram.org/api/saved-messages) forwarded from a specific peer

func (*Client) MessagesGetSavedReactionTags

func (c *Client) MessagesGetSavedReactionTags(peer InputPeer, hash int64) (MessagesSavedReactionTags, error)

func (*Client) MessagesGetScheduledHistory

func (c *Client) MessagesGetScheduledHistory(peer InputPeer, hash int64) (MessagesMessages, error)

Get scheduled messages

func (*Client) MessagesGetScheduledMessages

func (c *Client) MessagesGetScheduledMessages(peer InputPeer, id []int32) (MessagesMessages, error)

Get scheduled messages

func (*Client) MessagesGetSearchCounters

func (c *Client) MessagesGetSearchCounters(peer, savedPeerID InputPeer, topMsgID int32, filters []MessagesFilter) ([]*MessagesSearchCounter, error)

Get the number of results that would be found by a [messages.search](https://core.telegram.org/method/messages.search) call with the same parameters

func (*Client) MessagesGetSearchResultsCalendar

func (c *Client) MessagesGetSearchResultsCalendar(params *MessagesGetSearchResultsCalendarParams) (*MessagesSearchResultsCalendar, error)

Returns information about the next messages of the specified type in the chat split by days.

func (*Client) MessagesGetSearchResultsPositions

func (c *Client) MessagesGetSearchResultsPositions(params *MessagesGetSearchResultsPositionsParams) (*MessagesSearchResultsPositions, error)

Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.

func (*Client) MessagesGetSplitRanges

func (c *Client) MessagesGetSplitRanges() ([]*MessageRange, error)

Get message ranges for saving the user's chat history

func (*Client) MessagesGetStarsSubscriptions

func (c *Client) MessagesGetStarsSubscriptions(missingBalance bool, peer InputPeer, offset string) (*PaymentsStarsStatus, error)

func (*Client) MessagesGetStickerSet

func (c *Client) MessagesGetStickerSet(stickerset InputStickerSet, hash int32) (MessagesStickerSet, error)

Get info about a stickerset

func (*Client) MessagesGetStickers

func (c *Client) MessagesGetStickers(emoticon string, hash int64) (MessagesStickers, error)

Get stickers by emoji

func (*Client) MessagesGetSuggestedDialogFilters

func (c *Client) MessagesGetSuggestedDialogFilters() ([]*DialogFilterSuggested, error)

Get [suggested folders](https://core.telegram.org/api/folders)

func (*Client) MessagesGetTopReactions

func (c *Client) MessagesGetTopReactions(limit int32, hash int64) (MessagesReactions, error)

Got popular [message reactions](https://core.telegram.org/api/reactions)

func (*Client) MessagesGetUnreadMentions

func (c *Client) MessagesGetUnreadMentions(params *MessagesGetUnreadMentionsParams) (MessagesMessages, error)

Get unread messages where we were mentioned

func (*Client) MessagesGetUnreadReactions

func (c *Client) MessagesGetUnreadReactions(params *MessagesGetUnreadReactionsParams) (MessagesMessages, error)

Get unread reactions to messages you sent

func (*Client) MessagesGetWebPage

func (c *Client) MessagesGetWebPage(url string, hash int32) (*MessagesWebPage, error)

Get [instant view](https://core.telegram.orghttps://instantview.telegram.org) page

func (*Client) MessagesGetWebPagePreview

func (c *Client) MessagesGetWebPagePreview(message string, entities []MessageEntity) (MessageMedia, error)

Get preview of webpage

func (*Client) MessagesHideAllChatJoinRequests

func (c *Client) MessagesHideAllChatJoinRequests(approved bool, peer InputPeer, link string) (Updates, error)

Dismiss or approve all [join requests](https://core.telegram.org/api/invites#join-requests) related to a specific chat or channel.

func (*Client) MessagesHideChatJoinRequest

func (c *Client) MessagesHideChatJoinRequest(approved bool, peer InputPeer, userID InputUser) (Updates, error)

Dismiss or approve a chat [join request](https://core.telegram.org/api/invites#join-requests) related to a specific chat or channel.

func (*Client) MessagesHidePeerSettingsBar

func (c *Client) MessagesHidePeerSettingsBar(peer InputPeer) (bool, error)

Should be called after the user hides the [report spam/add as contact bar](https://core.telegram.org/api/action-bar) of a new chat, effectively prevents the user from executing the actions specified in the [action bar »](https://core.telegram.org/api/action-bar).

func (*Client) MessagesImportChatInvite

func (c *Client) MessagesImportChatInvite(hash string) (Updates, error)

Import a chat invite and join a private chat/supergroup/channel

func (*Client) MessagesInitHistoryImport

func (c *Client) MessagesInitHistoryImport(peer InputPeer, file InputFile, mediaCount int32) (*MessagesHistoryImport, error)

Import chat history from a foreign chat app into a specific Telegram chat, [click here for more info about imported chats »](https://core.telegram.org/api/import).

func (*Client) MessagesInstallStickerSet

func (c *Client) MessagesInstallStickerSet(stickerset InputStickerSet, archived bool) (MessagesStickerSetInstallResult, error)

Install a stickerset

func (*Client) MessagesMarkDialogUnread

func (c *Client) MessagesMarkDialogUnread(unread bool, peer InputDialogPeer) (bool, error)

Manually mark dialog as unread

func (*Client) MessagesMigrateChat

func (c *Client) MessagesMigrateChat(chatID int64) (Updates, error)

Turn a [basic group into a supergroup](https://core.telegram.org/api/channel#migration)

func (*Client) MessagesProlongWebView

func (c *Client) MessagesProlongWebView(params *MessagesProlongWebViewParams) (bool, error)

Indicate to the server (from the user side) that the user is still using a web app.

func (*Client) MessagesRateTranscribedAudio

func (c *Client) MessagesRateTranscribedAudio(peer InputPeer, msgID int32, transcriptionID int64, good bool) (bool, error)

Rate [transcribed voice message](https://core.telegram.org/api/transcribe)

func (*Client) MessagesReadDiscussion

func (c *Client) MessagesReadDiscussion(peer InputPeer, msgID, readMaxID int32) (bool, error)

Mark a [thread](https://core.telegram.org/api/threads) as read

func (*Client) MessagesReadEncryptedHistory

func (c *Client) MessagesReadEncryptedHistory(peer *InputEncryptedChat, maxDate int32) (bool, error)

Marks message history within a secret chat as read.

func (*Client) MessagesReadFeaturedStickers

func (c *Client) MessagesReadFeaturedStickers(id []int64) (bool, error)

Mark new featured stickers as read

func (*Client) MessagesReadHistory

func (c *Client) MessagesReadHistory(peer InputPeer, maxID int32) (*MessagesAffectedMessages, error)

Marks message history as read.

func (*Client) MessagesReadMentions

func (c *Client) MessagesReadMentions(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)

Mark mentions as read

func (*Client) MessagesReadMessageContents

func (c *Client) MessagesReadMessageContents(id []int32) (*MessagesAffectedMessages, error)

Notifies the sender about the recipient having listened a voice message or watched a video.

func (*Client) MessagesReadReactions

func (c *Client) MessagesReadReactions(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)

Mark [message reactions »](https://core.telegram.org/api/reactions) as read

func (*Client) MessagesReceivedMessages

func (c *Client) MessagesReceivedMessages(maxID int32) ([]*ReceivedNotifyMessage, error)

Confirms receipt of messages by a client, cancels PUSH-notification sending.

func (*Client) MessagesReceivedQueue

func (c *Client) MessagesReceivedQueue(maxQts int32) ([]int64, error)

Confirms receipt of messages in a secret chat by client, cancels push notifications.<br> The method returns a list of <strong>random_id</strong>s of messages for which push notifications were cancelled.

func (*Client) MessagesReorderPinnedDialogs

func (c *Client) MessagesReorderPinnedDialogs(force bool, folderID int32, order []InputDialogPeer) (bool, error)

Reorder pinned dialogs

func (*Client) MessagesReorderPinnedSavedDialogs

func (c *Client) MessagesReorderPinnedSavedDialogs(force bool, order []InputDialogPeer) (bool, error)

Reorder pinned [saved message dialogs »](https://core.telegram.org/api/saved-messages).

func (*Client) MessagesReorderQuickReplies

func (c *Client) MessagesReorderQuickReplies(order []int32) (bool, error)

func (*Client) MessagesReorderStickerSets

func (c *Client) MessagesReorderStickerSets(masks, emojis bool, order []int64) (bool, error)

Reorder installed stickersets

func (*Client) MessagesReport

func (c *Client) MessagesReport(peer InputPeer, id []int32, reason ReportReason, message string) (bool, error)

Report a message in a chat for violation of telegram's Terms of Service

func (*Client) MessagesReportEncryptedSpam

func (c *Client) MessagesReportEncryptedSpam(peer *InputEncryptedChat) (bool, error)

Report a secret chat for spam

func (*Client) MessagesReportReaction

func (c *Client) MessagesReportReaction(peer InputPeer, id int32, reactionPeer InputPeer) (bool, error)

Report a [message reaction](https://core.telegram.org/api/reactions)

func (*Client) MessagesReportSpam

func (c *Client) MessagesReportSpam(peer InputPeer) (bool, error)

Report a new incoming chat for spam, if the [peer settings](https://core.telegram.org/constructor/peerSettings) of the chat allow us to do that

func (*Client) MessagesRequestAppWebView

func (c *Client) MessagesRequestAppWebView(params *MessagesRequestAppWebViewParams) (*WebViewResultURL, error)

Open a [bot mini app](https://core.telegram.org/bots/webapps) from a [direct Mini App deep link](https://core.telegram.org/api/links#direct-mini-app-links), sending over user information after user confirmation.

func (*Client) MessagesRequestEncryption

func (c *Client) MessagesRequestEncryption(userID InputUser, randomID int32, gA []byte) (EncryptedChat, error)

Sends a request to start a secret chat to the user.

func (*Client) MessagesRequestMainWebView

func (c *Client) MessagesRequestMainWebView(params *MessagesRequestMainWebViewParams) (*WebViewResultURL, error)

func (*Client) MessagesRequestSimpleWebView

func (c *Client) MessagesRequestSimpleWebView(params *MessagesRequestSimpleWebViewParams) (*WebViewResultURL, error)

Open a [bot mini app](https://core.telegram.org/api/bots/webapps).

func (*Client) MessagesRequestURLAuth

func (c *Client) MessagesRequestURLAuth(peer InputPeer, msgID, buttonID int32, url string) (URLAuthResult, error)

Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)

func (*Client) MessagesRequestWebView

func (c *Client) MessagesRequestWebView(params *MessagesRequestWebViewParams) (*WebViewResultURL, error)

Open a [bot mini app](https://core.telegram.org/bots/webapps), sending over user information after user confirmation.

func (*Client) MessagesSaveDefaultSendAs

func (c *Client) MessagesSaveDefaultSendAs(peer, sendAs InputPeer) (bool, error)

Change the default peer that should be used when sending messages, reactions, poll votes to a specific group

func (*Client) MessagesSaveDraft

func (c *Client) MessagesSaveDraft(params *MessagesSaveDraftParams) (bool, error)

Save a message [draft](https://core.telegram.org/api/drafts) associated to a chat.

func (*Client) MessagesSaveGif

func (c *Client) MessagesSaveGif(id InputDocument, unsave bool) (bool, error)

Add GIF to saved gifs list

func (*Client) MessagesSaveRecentSticker

func (c *Client) MessagesSaveRecentSticker(attached bool, id InputDocument, unsave bool) (bool, error)

Add/remove sticker from recent stickers list

func (*Client) MessagesSearch

func (c *Client) MessagesSearch(params *MessagesSearchParams) (MessagesMessages, error)

Search for messages.

func (*Client) MessagesSearchCustomEmoji

func (c *Client) MessagesSearchCustomEmoji(emoticon string, hash int64) (EmojiList, error)

Look for [custom emojis](https://core.telegram.org/api/custom-emoji) associated to a UTF8 emoji

func (*Client) MessagesSearchEmojiStickerSets

func (c *Client) MessagesSearchEmojiStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)

Search for [custom emoji stickersets »](https://core.telegram.org/api/custom-emoji)

func (*Client) MessagesSearchGlobal

func (c *Client) MessagesSearchGlobal(params *MessagesSearchGlobalParams) (MessagesMessages, error)

Search for messages and peers globally

func (*Client) MessagesSearchSentMedia

func (c *Client) MessagesSearchSentMedia(q string, filter MessagesFilter, limit int32) (MessagesMessages, error)

View and search recently sent media.<br> This method does not support pagination.

func (*Client) MessagesSearchStickerSets

func (c *Client) MessagesSearchStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)

Search for stickersets

func (*Client) MessagesSendBotRequestedPeer

func (c *Client) MessagesSendBotRequestedPeer(peer InputPeer, msgID, buttonID int32, requestedPeers []InputPeer) (Updates, error)

Send one or more chosen peers, as requested by a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer) button.

func (*Client) MessagesSendEncrypted

func (c *Client) MessagesSendEncrypted(silent bool, peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)

Sends a text message to a secret chat.

func (*Client) MessagesSendEncryptedFile

func (c *Client) MessagesSendEncryptedFile(params *MessagesSendEncryptedFileParams) (MessagesSentEncryptedMessage, error)

Sends a message with a file attachment to a secret chat

func (*Client) MessagesSendEncryptedService

func (c *Client) MessagesSendEncryptedService(peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)

Sends a service message to a secret chat.

func (*Client) MessagesSendInlineBotResult

func (c *Client) MessagesSendInlineBotResult(params *MessagesSendInlineBotResultParams) (Updates, error)

Send a result obtained using [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults).

func (*Client) MessagesSendMedia

func (c *Client) MessagesSendMedia(params *MessagesSendMediaParams) (Updates, error)

Send a media

func (*Client) MessagesSendMessage

func (c *Client) MessagesSendMessage(params *MessagesSendMessageParams) (Updates, error)

Sends a message to a chat

func (*Client) MessagesSendMultiMedia

func (c *Client) MessagesSendMultiMedia(params *MessagesSendMultiMediaParams) (Updates, error)

Send an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media)

func (*Client) MessagesSendPaidReaction

func (c *Client) MessagesSendPaidReaction(params *MessagesSendPaidReactionParams) (Updates, error)

func (*Client) MessagesSendQuickReplyMessages

func (c *Client) MessagesSendQuickReplyMessages(peer InputPeer, shortcutID int32, id []int32, randomID []int64) (Updates, error)

func (*Client) MessagesSendReaction

func (c *Client) MessagesSendReaction(params *MessagesSendReactionParams) (Updates, error)

React to message.

func (*Client) MessagesSendScheduledMessages

func (c *Client) MessagesSendScheduledMessages(peer InputPeer, id []int32) (Updates, error)

Send scheduled messages right away

func (*Client) MessagesSendScreenshotNotification

func (c *Client) MessagesSendScreenshotNotification(peer InputPeer, replyTo InputReplyTo, randomID int64) (Updates, error)

Notify the other user in a private chat that a screenshot of the chat was taken

func (*Client) MessagesSendVote

func (c *Client) MessagesSendVote(peer InputPeer, msgID int32, options [][]byte) (Updates, error)

Vote in a [poll](https://core.telegram.org/constructor/poll)

func (*Client) MessagesSendWebViewData

func (c *Client) MessagesSendWebViewData(bot InputUser, randomID int64, buttonText, data string) (Updates, error)

Used by the user to relay data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) to the bot that owns it.

func (*Client) MessagesSendWebViewResultMessage

func (c *Client) MessagesSendWebViewResultMessage(botQueryID string, result InputBotInlineResult) (*WebViewMessageSent, error)

Terminate webview interaction started with [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView), sending the specified message to the chat on behalf of the user.

func (*Client) MessagesSetBotCallbackAnswer

func (c *Client) MessagesSetBotCallbackAnswer(params *MessagesSetBotCallbackAnswerParams) (bool, error)

Set the callback answer to a user button press (bots only)

func (*Client) MessagesSetBotPrecheckoutResults

func (c *Client) MessagesSetBotPrecheckoutResults(success bool, queryID int64, error string) (bool, error)

Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://core.telegram.org/constructor/updateBotPrecheckoutQuery) update.<br> Use this method to respond to such pre-checkout queries.<br> <strong>Note</strong>: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

func (*Client) MessagesSetBotShippingResults

func (c *Client) MessagesSetBotShippingResults(queryID int64, error string, shippingOptions []*ShippingOption) (bool, error)

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an [updateBotShippingQuery](https://core.telegram.org/constructor/updateBotShippingQuery) update. Use this method to reply to shipping queries.

func (*Client) MessagesSetChatAvailableReactions

func (c *Client) MessagesSetChatAvailableReactions(peer InputPeer, availableReactions ChatReactions, reactionsLimit int32, paidEnabled bool) (Updates, error)

Change the set of [message reactions »](https://core.telegram.org/api/reactions) that can be used in a certain group, supergroup or channel

func (*Client) MessagesSetChatTheme

func (c *Client) MessagesSetChatTheme(peer InputPeer, emoticon string) (Updates, error)

Change the chat theme of a certain chat

func (*Client) MessagesSetChatWallPaper

func (c *Client) MessagesSetChatWallPaper(params *MessagesSetChatWallPaperParams) (Updates, error)

Set a custom [wallpaper »](https://core.telegram.org/api/wallpapers) in a specific private chat with another user.

func (*Client) MessagesSetDefaultHistoryTtl

func (c *Client) MessagesSetDefaultHistoryTtl(period int32) (bool, error)

Changes the default value of the Time-To-Live setting, applied to all new chats.

func (*Client) MessagesSetDefaultReaction

func (c *Client) MessagesSetDefaultReaction(reaction Reaction) (bool, error)

Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using <a href="/method/help.getConfig">help.getConfig, `reactions_default` field</a>.

func (*Client) MessagesSetEncryptedTyping

func (c *Client) MessagesSetEncryptedTyping(peer *InputEncryptedChat, typing bool) (bool, error)

Send typing event by the current user to a secret chat.

func (*Client) MessagesSetGameScore

func (c *Client) MessagesSetGameScore(params *MessagesSetGameScoreParams) (Updates, error)

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

func (*Client) MessagesSetHistoryTtl

func (c *Client) MessagesSetHistoryTtl(peer InputPeer, period int32) (Updates, error)

Set maximum Time-To-Live of all messages in the specified chat

func (*Client) MessagesSetInlineBotResults

func (c *Client) MessagesSetInlineBotResults(params *MessagesSetInlineBotResultsParams) (bool, error)

Answer an inline query, for bots only

func (*Client) MessagesSetInlineGameScore

func (c *Client) MessagesSetInlineGameScore(params *MessagesSetInlineGameScoreParams) (bool, error)

Use this method to set the score of the specified user in a game sent as an inline message (bots only).

func (*Client) MessagesSetTyping

func (c *Client) MessagesSetTyping(peer InputPeer, topMsgID int32, action SendMessageAction) (bool, error)

Sends a current user typing event (see SendMessageAction(https://core.telegram.org/type/SendMessageAction) for all event types) to a conversation partner or group.

func (*Client) MessagesStartBot

func (c *Client) MessagesStartBot(bot InputUser, peer InputPeer, randomID int64, startParam string) (Updates, error)

Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/api/links#bot-links)

func (*Client) MessagesStartHistoryImport

func (c *Client) MessagesStartHistoryImport(peer InputPeer, importID int64) (bool, error)

Complete the [history import process](https://core.telegram.org/api/import), importing all messages into the chat.<br> To be called only after initializing the import with [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport) and uploading all files using [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia).

func (*Client) MessagesToggleBotInAttachMenu

func (c *Client) MessagesToggleBotInAttachMenu(writeAllowed bool, bot InputUser, enabled bool) (bool, error)

Enable or disable [web bot attachment menu »](https://core.telegram.org/api/bots/attach)

func (*Client) MessagesToggleDialogFilterTags

func (c *Client) MessagesToggleDialogFilterTags(enabled bool) (bool, error)

func (*Client) MessagesToggleDialogPin

func (c *Client) MessagesToggleDialogPin(pinned bool, peer InputDialogPeer) (bool, error)

Pin/unpin a dialog

func (*Client) MessagesToggleNoForwards

func (c *Client) MessagesToggleNoForwards(peer InputPeer, enabled bool) (Updates, error)

Enable or disable [content protection](https://core.telegram.orghttps://telegram.org/blog/protected-content-delete-by-date-and-more) on a channel or chat

func (*Client) MessagesTogglePaidReactionPrivacy

func (c *Client) MessagesTogglePaidReactionPrivacy(peer InputPeer, msgID int32, private bool) (bool, error)

func (*Client) MessagesTogglePeerTranslations

func (c *Client) MessagesTogglePeerTranslations(disabled bool, peer InputPeer) (bool, error)

Show or hide the [real-time chat translation popup](https://core.telegram.org/api/translation) for a certain chat

func (*Client) MessagesToggleSavedDialogPin

func (c *Client) MessagesToggleSavedDialogPin(pinned bool, peer InputDialogPeer) (bool, error)

Pin or unpin a [saved message dialog »](https://core.telegram.org/api/saved-messages).

func (*Client) MessagesToggleStickerSets

func (c *Client) MessagesToggleStickerSets(uninstall, archive, unarchive bool, stickersets []InputStickerSet) (bool, error)

Apply changes to multiple stickersets

func (*Client) MessagesTranscribeAudio

func (c *Client) MessagesTranscribeAudio(peer InputPeer, msgID int32) (*MessagesTranscribedAudio, error)

[Transcribe voice message](https://core.telegram.org/api/transcribe)

func (*Client) MessagesTranslateText

func (c *Client) MessagesTranslateText(peer InputPeer, id []int32, text []*TextWithEntities, toLang string) (*MessagesTranslateResult, error)

Translate a given text.

func (*Client) MessagesUninstallStickerSet

func (c *Client) MessagesUninstallStickerSet(stickerset InputStickerSet) (bool, error)

Uninstall a stickerset

func (*Client) MessagesUnpinAllMessages

func (c *Client) MessagesUnpinAllMessages(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)

[Unpin](https://core.telegram.org/api/pin) all pinned messages

func (*Client) MessagesUpdateDialogFilter

func (c *Client) MessagesUpdateDialogFilter(id int32, filter DialogFilter) (bool, error)

Update [folder](https://core.telegram.org/api/folders)

func (*Client) MessagesUpdateDialogFiltersOrder

func (c *Client) MessagesUpdateDialogFiltersOrder(order []int32) (bool, error)

Reorder [folders](https://core.telegram.org/api/folders)

func (*Client) MessagesUpdatePinnedMessage

func (c *Client) MessagesUpdatePinnedMessage(params *MessagesUpdatePinnedMessageParams) (Updates, error)

Pin a message

func (*Client) MessagesUpdateSavedReactionTag

func (c *Client) MessagesUpdateSavedReactionTag(reaction Reaction, title string) (bool, error)

func (*Client) MessagesUploadEncryptedFile

func (c *Client) MessagesUploadEncryptedFile(peer *InputEncryptedChat, file InputEncryptedFile) (EncryptedFile, error)

Upload encrypted file and associate it to a secret chat

func (*Client) MessagesUploadImportedMedia

func (c *Client) MessagesUploadImportedMedia(peer InputPeer, importID int64, fileName string, media InputMedia) (MessageMedia, error)

Upload a media file associated with an [imported chat, click here for more info »](https://core.telegram.org/api/import).

func (*Client) MessagesUploadMedia

func (c *Client) MessagesUploadMedia(businessConnectionID string, peer InputPeer, media InputMedia) (MessageMedia, error)

Upload a file and associate it to a chat (without actually sending it to the chat)

func (*Client) NewConversation

func (c *Client) NewConversation(peer any, isPrivate bool, timeout ...int32) (*Conversation, error)

func (*Client) NewRecovery

func (c *Client) NewRecovery() func()

NewRecovery makes a new recovery object

func (*Client) NewUpdateDispatcher

func (c *Client) NewUpdateDispatcher()

creates and populates a new UpdateDispatcher

func (*Client) On

func (c *Client) On(pattern any, handler interface{}, filters ...Filter) Handle

func (*Client) ParseMode

func (c *Client) ParseMode() string

returns the ParseMode of the client (HTML or Markdown)

func (*Client) PaymentsApplyGiftCode

func (c *Client) PaymentsApplyGiftCode(slug string) (Updates, error)

Apply a [Telegram Premium giftcode »](https://core.telegram.org/api/giveaways)

func (*Client) PaymentsAssignAppStoreTransaction

func (c *Client) PaymentsAssignAppStoreTransaction(receipt []byte, purpose InputStorePaymentPurpose) (Updates, error)

Informs server about a purchase made through the App Store: for official applications only.

func (*Client) PaymentsAssignPlayMarketTransaction

func (c *Client) PaymentsAssignPlayMarketTransaction(receipt *DataJson, purpose InputStorePaymentPurpose) (Updates, error)

Informs server about a purchase made through the Play Store: for official applications only.

func (*Client) PaymentsCanPurchasePremium

func (c *Client) PaymentsCanPurchasePremium(purpose InputStorePaymentPurpose) (bool, error)

Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only.

func (*Client) PaymentsCheckGiftCode

func (c *Client) PaymentsCheckGiftCode(slug string) (*PaymentsCheckedGiftCode, error)

Obtain information about a [Telegram Premium giftcode »](https://core.telegram.org/api/giveaways)

func (*Client) PaymentsClearSavedInfo

func (c *Client) PaymentsClearSavedInfo(credentials, info bool) (bool, error)

Clear saved payment information

func (*Client) PaymentsExportInvoice

func (c *Client) PaymentsExportInvoice(invoiceMedia InputMedia) (*PaymentsExportedInvoice, error)

Generate an [invoice deep link](https://core.telegram.org/api/links#invoice-links)

func (*Client) PaymentsGetBankCardData

func (c *Client) PaymentsGetBankCardData(number string) (*PaymentsBankCardData, error)

Get info about a credit card

func (*Client) PaymentsGetGiveawayInfo

func (c *Client) PaymentsGetGiveawayInfo(peer InputPeer, msgID int32) (PaymentsGiveawayInfo, error)

Obtain information about a [Telegram Premium giveaway »](https://core.telegram.org/api/giveaways).

func (*Client) PaymentsGetPaymentForm

func (c *Client) PaymentsGetPaymentForm(invoice InputInvoice, themeParams *DataJson) (PaymentsPaymentForm, error)

Get a payment form

func (*Client) PaymentsGetPaymentReceipt

func (c *Client) PaymentsGetPaymentReceipt(peer InputPeer, msgID int32) (PaymentsPaymentReceipt, error)

Get payment receipt

func (*Client) PaymentsGetPremiumGiftCodeOptions

func (c *Client) PaymentsGetPremiumGiftCodeOptions(boostPeer InputPeer) ([]*PremiumGiftCodeOption, error)

Obtain a list of Telegram Premium [giveaway/gift code »](https://core.telegram.org/api/giveaways) options.

func (*Client) PaymentsGetSavedInfo

func (c *Client) PaymentsGetSavedInfo() (*PaymentsSavedInfo, error)

Get saved payment information

func (*Client) PaymentsGetStarsGiftOptions

func (c *Client) PaymentsGetStarsGiftOptions(userID InputUser) ([]*StarsGiftOption, error)

func (*Client) PaymentsGetStarsRevenueAdsAccountURL

func (c *Client) PaymentsGetStarsRevenueAdsAccountURL(peer InputPeer) (*PaymentsStarsRevenueAdsAccountURL, error)

func (*Client) PaymentsGetStarsRevenueStats

func (c *Client) PaymentsGetStarsRevenueStats(dark bool, peer InputPeer) (*PaymentsStarsRevenueStats, error)

func (*Client) PaymentsGetStarsRevenueWithdrawalURL

func (c *Client) PaymentsGetStarsRevenueWithdrawalURL(peer InputPeer, stars int64, password InputCheckPasswordSRP) (*PaymentsStarsRevenueWithdrawalURL, error)

func (*Client) PaymentsGetStarsStatus

func (c *Client) PaymentsGetStarsStatus(peer InputPeer) (*PaymentsStarsStatus, error)

func (*Client) PaymentsGetStarsTopupOptions

func (c *Client) PaymentsGetStarsTopupOptions() ([]*StarsTopupOption, error)

func (*Client) PaymentsGetStarsTransactions

func (c *Client) PaymentsGetStarsTransactions(params *PaymentsGetStarsTransactionsParams) (*PaymentsStarsStatus, error)

func (*Client) PaymentsGetStarsTransactionsByID

func (c *Client) PaymentsGetStarsTransactionsByID(peer InputPeer, id []*InputStarsTransaction) (*PaymentsStarsStatus, error)

func (*Client) PaymentsLaunchPrepaidGiveaway

func (c *Client) PaymentsLaunchPrepaidGiveaway(peer InputPeer, giveawayID int64, purpose InputStorePaymentPurpose) (Updates, error)

Launch a [prepaid giveaway »](https://core.telegram.org/api/giveaways).

func (*Client) PaymentsRefundStarsCharge

func (c *Client) PaymentsRefundStarsCharge(userID InputUser, chargeID string) (Updates, error)

func (*Client) PaymentsSendPaymentForm

func (c *Client) PaymentsSendPaymentForm(params *PaymentsSendPaymentFormParams) (PaymentsPaymentResult, error)

Send compiled payment form

func (*Client) PaymentsSendStarsForm

func (c *Client) PaymentsSendStarsForm(formID int64, invoice InputInvoice) (PaymentsPaymentResult, error)

func (*Client) PaymentsValidateRequestedInfo

func (c *Client) PaymentsValidateRequestedInfo(save bool, invoice InputInvoice, info *PaymentRequestedInfo) (*PaymentsValidatedRequestedInfo, error)

Submit requested order information for validation

func (*Client) PhoneAcceptCall

func (c *Client) PhoneAcceptCall(peer *InputPhoneCall, gB []byte, protocol *PhoneCallProtocol) (*PhonePhoneCall, error)

Accept incoming call

func (*Client) PhoneCheckGroupCall

func (c *Client) PhoneCheckGroupCall(call *InputGroupCall, sources []int32) ([]int32, error)

Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.<br> Returns an intersection of the source IDs specified in `sources`, and the source IDs currently being forwarded by the SFU.

func (*Client) PhoneConfirmCall

func (c *Client) PhoneConfirmCall(peer *InputPhoneCall, gA []byte, keyFingerprint int64, protocol *PhoneCallProtocol) (*PhonePhoneCall, error)

[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls)

func (*Client) PhoneCreateGroupCall

func (c *Client) PhoneCreateGroupCall(params *PhoneCreateGroupCallParams) (Updates, error)

Create a group call or livestream

func (*Client) PhoneDiscardCall

func (c *Client) PhoneDiscardCall(params *PhoneDiscardCallParams) (Updates, error)

Refuse or end running call

func (*Client) PhoneDiscardGroupCall

func (c *Client) PhoneDiscardGroupCall(call *InputGroupCall) (Updates, error)

Terminate a group call

func (*Client) PhoneEditGroupCallParticipant

func (c *Client) PhoneEditGroupCallParticipant(params *PhoneEditGroupCallParticipantParams) (Updates, error)

Edit information about a given group call participant

func (*Client) PhoneEditGroupCallTitle

func (c *Client) PhoneEditGroupCallTitle(call *InputGroupCall, title string) (Updates, error)

Edit the title of a group call or livestream

func (*Client) PhoneExportGroupCallInvite

func (c *Client) PhoneExportGroupCallInvite(canSelfUnmute bool, call *InputGroupCall) (*PhoneExportedGroupCallInvite, error)

Get an [invite link](https://core.telegram.org/api/links#video-chat-livestream-links) for a group call or livestream

func (*Client) PhoneGetCallConfig

func (c *Client) PhoneGetCallConfig() (*DataJson, error)

Get phone call configuration to be passed to libtgvoip's shared config

func (*Client) PhoneGetGroupCall

func (c *Client) PhoneGetGroupCall(call *InputGroupCall, limit int32) (*PhoneGroupCall, error)

Get info about a group call

func (*Client) PhoneGetGroupCallJoinAs

func (c *Client) PhoneGetGroupCallJoinAs(peer InputPeer) (*PhoneJoinAsPeers, error)

Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

func (*Client) PhoneGetGroupCallStreamChannels

func (c *Client) PhoneGetGroupCallStreamChannels(call *InputGroupCall) (*PhoneGroupCallStreamChannels, error)

Get info about RTMP streams in a group call or livestream.<br> This method should be invoked to the same group/channel-related DC used for [downloading livestream chunks](https://core.telegram.org/api/files#downloading-files).<br> As usual, the media DC is preferred, if available.

func (*Client) PhoneGetGroupCallStreamRtmpURL

func (c *Client) PhoneGetGroupCallStreamRtmpURL(peer InputPeer, revoke bool) (*PhoneGroupCallStreamRtmpURL, error)

Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with [phone.createGroupCall](https://core.telegram.org/method/phone.createGroupCall) (the `rtmp_stream` flag must be set).

func (*Client) PhoneGetGroupParticipants

func (c *Client) PhoneGetGroupParticipants(call *InputGroupCall, ids []InputPeer, sources []int32, offset string, limit int32) (*PhoneGroupParticipants, error)

Get group call participants

func (*Client) PhoneInviteToGroupCall

func (c *Client) PhoneInviteToGroupCall(call *InputGroupCall, users []InputUser) (Updates, error)

Invite a set of users to a group call.

func (*Client) PhoneJoinGroupCall

func (c *Client) PhoneJoinGroupCall(params *PhoneJoinGroupCallParams) (Updates, error)

Join a group call

func (*Client) PhoneJoinGroupCallPresentation

func (c *Client) PhoneJoinGroupCallPresentation(call *InputGroupCall, params *DataJson) (Updates, error)

Start screen sharing in a call

func (*Client) PhoneLeaveGroupCall

func (c *Client) PhoneLeaveGroupCall(call *InputGroupCall, source int32) (Updates, error)

Leave a group call

func (*Client) PhoneLeaveGroupCallPresentation

func (c *Client) PhoneLeaveGroupCallPresentation(call *InputGroupCall) (Updates, error)

Stop screen sharing in a group call

func (*Client) PhoneReceivedCall

func (c *Client) PhoneReceivedCall(peer *InputPhoneCall) (bool, error)

Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.

func (*Client) PhoneRequestCall

func (c *Client) PhoneRequestCall(params *PhoneRequestCallParams) (*PhonePhoneCall, error)

Start a telegram phone call

func (*Client) PhoneSaveCallDebug

func (c *Client) PhoneSaveCallDebug(peer *InputPhoneCall, debug *DataJson) (bool, error)

Send phone call debug data to server

func (*Client) PhoneSaveCallLog

func (c *Client) PhoneSaveCallLog(peer *InputPhoneCall, file InputFile) (bool, error)

Save phone call debug information

func (*Client) PhoneSaveDefaultGroupCallJoinAs

func (c *Client) PhoneSaveDefaultGroupCallJoinAs(peer, joinAs InputPeer) (bool, error)

Set the default peer that will be used to join a group call in a specific dialog.

func (*Client) PhoneSendSignalingData

func (c *Client) PhoneSendSignalingData(peer *InputPhoneCall, data []byte) (bool, error)

Send VoIP signaling data

func (*Client) PhoneSetCallRating

func (c *Client) PhoneSetCallRating(userInitiative bool, peer *InputPhoneCall, rating int32, comment string) (Updates, error)

Rate a call, returns info about the rating message sent to the official VoIP bot.

func (*Client) PhoneStartScheduledGroupCall

func (c *Client) PhoneStartScheduledGroupCall(call *InputGroupCall) (Updates, error)

Start a scheduled group call.

func (*Client) PhoneToggleGroupCallRecord

func (c *Client) PhoneToggleGroupCallRecord(params *PhoneToggleGroupCallRecordParams) (Updates, error)

Start or stop recording a group call: the recorded audio and video streams will be automatically sent to `Saved messages` (the chat with ourselves).

func (*Client) PhoneToggleGroupCallSettings

func (c *Client) PhoneToggleGroupCallSettings(resetInviteHash bool, call *InputGroupCall, joinMuted bool) (Updates, error)

Change group call settings

func (*Client) PhoneToggleGroupCallStartSubscription

func (c *Client) PhoneToggleGroupCallStartSubscription(call *InputGroupCall, subscribed bool) (Updates, error)

Subscribe or unsubscribe to a scheduled group call

func (*Client) PhotosDeletePhotos

func (c *Client) PhotosDeletePhotos(id []InputPhoto) ([]int64, error)

Deletes profile photos. The method returns a list of successfully deleted photo IDs.

func (*Client) PhotosGetUserPhotos

func (c *Client) PhotosGetUserPhotos(userID InputUser, offset int32, maxID int64, limit int32) (PhotosPhotos, error)

Returns the list of user photos.

func (*Client) PhotosUpdateProfilePhoto

func (c *Client) PhotosUpdateProfilePhoto(fallback bool, bot InputUser, id InputPhoto) (*PhotosPhoto, error)

Installs a previously uploaded photo as a profile photo.

func (*Client) PhotosUploadContactProfilePhoto

func (c *Client) PhotosUploadContactProfilePhoto(params *PhotosUploadContactProfilePhotoParams) (*PhotosPhoto, error)

Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.

func (*Client) PhotosUploadProfilePhoto

func (c *Client) PhotosUploadProfilePhoto(params *PhotosUploadProfilePhotoParams) (*PhotosPhoto, error)

Updates current user profile photo.

func (*Client) PinMessage

func (c *Client) PinMessage(PeerID interface{}, MsgID int32, Opts ...*PinOptions) (Updates, error)

Pin pins a message. This method is a wrapper for messages.pinMessage.

func (*Client) Ping

func (c *Client) Ping() time.Duration

Ping telegram server TCP connection

func (*Client) PremiumApplyBoost

func (c *Client) PremiumApplyBoost(slots []int32, peer InputPeer) (*PremiumMyBoosts, error)

Apply one or more [boosts »](https://core.telegram.org/api/boost) to a peer.

func (*Client) PremiumGetBoostsList

func (c *Client) PremiumGetBoostsList(gifts bool, peer InputPeer, offset string, limit int32) (*PremiumBoostsList, error)

Obtains info about the boosts that were applied to a certain channel (admins only)

func (*Client) PremiumGetBoostsStatus

func (c *Client) PremiumGetBoostsStatus(peer InputPeer) (*PremiumBoostsStatus, error)

Gets the current [number of boosts](https://core.telegram.org/api/boost) of a channel.

func (*Client) PremiumGetMyBoosts

func (c *Client) PremiumGetMyBoosts() (*PremiumMyBoosts, error)

Obtain which peers are we currently [boosting](https://core.telegram.org/api/boost), and how many [boost slots](https://core.telegram.org/api/boost) we have left.

func (*Client) PremiumGetUserBoosts

func (c *Client) PremiumGetUserBoosts(peer InputPeer, userID InputUser) (*PremiumBoostsList, error)

Returns the lists of boost that were applied to a channel by a specific user (admins only)

func (*Client) QRLogin

func (c *Client) QRLogin(IgnoreIDs ...int64) (*QrToken, error)

func (*Client) RemoveHandle

func (c *Client) RemoveHandle(handle Handle) error

func (*Client) ResolvePeer

func (c *Client) ResolvePeer(peerToResolve interface{}) (InputPeer, error)

ResolvePeer resolves a peer to a sendable peer, searches the cache if the peer is already resolved

func (*Client) ResolveUsername

func (c *Client) ResolveUsername(username string) (interface{}, error)

func (*Client) ScrapeAppConfig

func (c *Client) ScrapeAppConfig(config ...*ScrapeConfig) (int32, string, bool, error)

func (*Client) SendAction

func (c *Client) SendAction(PeerID, Action interface{}, topMsgID ...int32) (*ActionResult, error)

SendAction sends a chat action. This method is a wrapper for messages.setTyping.

func (*Client) SendAlbum

func (c *Client) SendAlbum(peerID, Album interface{}, opts ...*MediaOptions) ([]*NewMessage, error)

SendAlbum sends a media album. This method is a wrapper for messages.sendMultiMedia.

Params:

  • peerID: ID of the peer to send the message to.
  • Album: List of media to send.
  • opts: Optional parameters.

Returns:

  • A slice of pointers to NewMessage objects and an error if the message sending fails.
  • If the messages are sent successfully, the returned NewMessage objects will contain information about the sent messages.

Note:

  • If the caption in opts is a string, it will be parsed for entities based on the parse_mode in opts.
  • If the caption in opts is a pointer to a NewMessage, its entities will be used instead.
  • If the entites field in opts is not nil, it will override any entities parsed from the caption.
  • If send_as in opts is not nil, the messages will be sent from the specified peer, otherwise they will be sent from the sender peer.

func (*Client) SendCode

func (c *Client) SendCode(phoneNumber string) (hash string, err error)

sendCode and return phoneCodeHash

func (*Client) SendDice

func (c *Client) SendDice(peerID interface{}, emoji string) (*NewMessage, error)

SendDice sends a special dice message. This method calls messages.sendMedia with a dice media.

func (*Client) SendMedia

func (c *Client) SendMedia(peerID, Media interface{}, opts ...*MediaOptions) (*NewMessage, error)

SendMedia sends a media message. This method is a wrapper for messages.sendMedia.

Params:

  • peerID: ID of the peer to send the message to.
  • Media: Media to send.
  • opts: Optional parameters.

Returns:

  • A pointer to a NewMessage object and an error if the message sending fails.
  • If the message is sent successfully, the returned NewMessage object will contain information about the sent message.

Note:

  • If the caption in opts is a string, it will be parsed for entities based on the parse_mode in opts.
  • If the caption in opts is a pointer to a NewMessage, its entities will be used instead.
  • If the entites field in opts is not nil, it will override any entities parsed from the caption.
  • If send_as in opts is not nil, the message will be sent from the specified peer, otherwise it will be sent from the sender peer.

func (*Client) SendMessage

func (c *Client) SendMessage(peerID, message interface{}, opts ...*SendOptions) (*NewMessage, error)

SendMessage sends a message to a specified peer using the Telegram API method messages.sendMessage.

Parameters:

  • peerID: ID of the peer to send the message to.
  • message: The message to be sent. It can be a string, a media object, or a NewMessage.
  • opts: Optional parameters that can be used to customize the message sending process.

Returns:

  • A pointer to a NewMessage object containing information about the sent message.
  • An error if the message sending fails.

Note: If the message parameter is a NewMessage or a pointer to a NewMessage, the function will extract the message text and entities from it. If the message parameter is a media object, the function will send the media as a separate message and return a pointer to a NewMessage object containing information about the sent media. If the message parameter is a string, the function will parse it for entities and send it as a text message.

func (*Client) SendPoll

func (c *Client) SendPoll(peerID interface{}, question string, options []string, opts ...*PollOptions) (*NewMessage, error)

func (*Client) SendReaction

func (c *Client) SendReaction(peerID interface{}, msgID int32, reaction interface{}, big ...bool) error

SendReaction sends a reaction to a message, which can be an emoji or a custom emoji.

func (*Client) SendReadAck

func (c *Client) SendReadAck(PeerID interface{}, MaxID ...int32) (*MessagesAffectedMessages, error)

SendReadAck sends a read acknowledgement. This method is a wrapper for messages.readHistory.

func (*Client) SetAppHash

func (c *Client) SetAppHash(appHash string)

func (*Client) SetAppID

func (c *Client) SetAppID(appID int32)

func (*Client) SetBotCommands

func (c *Client) SetBotCommands(commands []*BotCommand, scope *BotCommandScope, languageCode ...string) (bool, error)

func (*Client) SetBotDefaultPrivileges

func (c *Client) SetBotDefaultPrivileges(privileges *ChatAdminRights, ForChannels ...bool) (resp bool, err error)

func (*Client) SetChatMenuButton

func (c *Client) SetChatMenuButton(userID int64, button *BotMenuButton) (bool, error)

func (*Client) SetEmojiStatus

func (c *Client) SetEmojiStatus(emoji ...interface{}) (bool, error)

SetEmojiStatus sets the emoji status of the user

Params:
 - emoji: The emoji status to set

func (*Client) SetLogLevel

func (c *Client) SetLogLevel(level string)

setLogLevel sets the log level for all loggers

func (*Client) SmsjobsFinishJob

func (c *Client) SmsjobsFinishJob(jobID, error string) (bool, error)

func (*Client) SmsjobsGetSmsJob

func (c *Client) SmsjobsGetSmsJob(jobID string) (*SmsJob, error)

func (*Client) SmsjobsGetStatus

func (c *Client) SmsjobsGetStatus() (*SmsjobsStatus, error)

func (*Client) SmsjobsIsEligibleToJoin

func (c *Client) SmsjobsIsEligibleToJoin() (*SmsjobsEligibleToJoin, error)

func (*Client) SmsjobsJoin

func (c *Client) SmsjobsJoin() (bool, error)

func (*Client) SmsjobsLeave

func (c *Client) SmsjobsLeave() (bool, error)

func (*Client) SmsjobsUpdateSettings

func (c *Client) SmsjobsUpdateSettings(allowInternational bool) (bool, error)

func (*Client) Start

func (c *Client) Start() error

func (*Client) StartGroupCallMedia

func (c *Client) StartGroupCallMedia(peer interface{}) (PhoneCall, error)

func (*Client) StatsGetBroadcastRevenueStats

func (c *Client) StatsGetBroadcastRevenueStats(dark bool, channel InputChannel) (*StatsBroadcastRevenueStats, error)

func (*Client) StatsGetBroadcastRevenueTransactions

func (c *Client) StatsGetBroadcastRevenueTransactions(channel InputChannel, offset, limit int32) (*StatsBroadcastRevenueTransactions, error)

func (*Client) StatsGetBroadcastRevenueWithdrawalURL

func (c *Client) StatsGetBroadcastRevenueWithdrawalURL(channel InputChannel, password InputCheckPasswordSRP) (*StatsBroadcastRevenueWithdrawalURL, error)

func (*Client) StatsGetBroadcastStats

func (c *Client) StatsGetBroadcastStats(dark bool, channel InputChannel) (*StatsBroadcastStats, error)

Get [channel statistics](https://core.telegram.org/api/stats)

func (*Client) StatsGetMegagroupStats

func (c *Client) StatsGetMegagroupStats(dark bool, channel InputChannel) (*StatsMegagroupStats, error)

Get [supergroup statistics](https://core.telegram.org/api/stats)

func (*Client) StatsGetMessagePublicForwards

func (c *Client) StatsGetMessagePublicForwards(channel InputChannel, msgID int32, offset string, limit int32) (*StatsPublicForwards, error)

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.<br> Will return a list of [messages](https://core.telegram.org/constructor/message) with `peer_id` equal to the public channel to which this message was forwarded.

func (*Client) StatsGetMessageStats

func (c *Client) StatsGetMessageStats(dark bool, channel InputChannel, msgID int32) (*StatsMessageStats, error)

Get [message statistics](https://core.telegram.org/api/stats)

func (*Client) StatsGetStoryPublicForwards

func (c *Client) StatsGetStoryPublicForwards(peer InputPeer, id int32, offset string, limit int32) (*StatsPublicForwards, error)

Obtain forwards of a [story](https://core.telegram.org/api/stories) as a message to public chats and reposts by public channels.

func (*Client) StatsGetStoryStats

func (c *Client) StatsGetStoryStats(dark bool, peer InputPeer, id int32) (*StatsStoryStats, error)

Get [statistics](https://core.telegram.org/api/stats) for a certain [story](https://core.telegram.org/api/stories).

func (*Client) StatsLoadAsyncGraph

func (c *Client) StatsLoadAsyncGraph(token string, x int64) (StatsGraph, error)

Load [channel statistics graph](https://core.telegram.org/api/stats) asynchronously

func (*Client) StickersAddStickerToSet

func (c *Client) StickersAddStickerToSet(stickerset InputStickerSet, sticker *InputStickerSetItem) (MessagesStickerSet, error)

Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.

func (*Client) StickersChangeSticker

func (c *Client) StickersChangeSticker(sticker InputDocument, emoji string, maskCoords *MaskCoords, keywords string) (MessagesStickerSet, error)

Update the keywords, emojis or [mask coordinates](https://core.telegram.org/api/stickers#mask-stickers) of a sticker, bots only.

func (*Client) StickersChangeStickerPosition

func (c *Client) StickersChangeStickerPosition(sticker InputDocument, position int32) (MessagesStickerSet, error)

Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot

func (*Client) StickersCheckShortName

func (c *Client) StickersCheckShortName(shortName string) (bool, error)

Check whether the given short name is available

func (*Client) StickersCreateStickerSet

func (c *Client) StickersCreateStickerSet(params *StickersCreateStickerSetParams) (MessagesStickerSet, error)

Create a stickerset, bots only.

func (*Client) StickersDeleteStickerSet

func (c *Client) StickersDeleteStickerSet(stickerset InputStickerSet) (bool, error)

Deletes a stickerset we created, bots only.

func (*Client) StickersRemoveStickerFromSet

func (c *Client) StickersRemoveStickerFromSet(sticker InputDocument) (MessagesStickerSet, error)

Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.

func (*Client) StickersRenameStickerSet

func (c *Client) StickersRenameStickerSet(stickerset InputStickerSet, title string) (MessagesStickerSet, error)

Renames a stickerset, bots only.

func (*Client) StickersReplaceSticker

func (c *Client) StickersReplaceSticker(sticker InputDocument, newSticker *InputStickerSetItem) (MessagesStickerSet, error)

func (*Client) StickersSetStickerSetThumb

func (c *Client) StickersSetStickerSetThumb(stickerset InputStickerSet, thumb InputDocument, thumbDocumentID int64) (MessagesStickerSet, error)

Set stickerset thumbnail

func (*Client) StickersSuggestShortName

func (c *Client) StickersSuggestShortName(title string) (*StickersSuggestedShortName, error)

Suggests a short name for a given stickerpack name

func (*Client) Stop

func (c *Client) Stop() error

Stop stops the client and disconnects from telegram server

func (*Client) StoriesActivateStealthMode

func (c *Client) StoriesActivateStealthMode(past, future bool) (Updates, error)

Activates [stories stealth mode](https://core.telegram.org/api/stories#stealth-mode), see [here »](https://core.telegram.org/api/stories#stealth-mode) for more info.

func (*Client) StoriesCanSendStory

func (c *Client) StoriesCanSendStory(peer InputPeer) (bool, error)

Check whether we can post stories as the specified peer.

func (*Client) StoriesDeleteStories

func (c *Client) StoriesDeleteStories(peer InputPeer, id []int32) ([]int32, error)

Deletes some posted [stories](https://core.telegram.org/api/stories).

func (*Client) StoriesEditStory

func (c *Client) StoriesEditStory(params *StoriesEditStoryParams) (Updates, error)

Edit an uploaded [story](https://core.telegram.org/api/stories)

func (c *Client) StoriesExportStoryLink(peer InputPeer, id int32) (*ExportedStoryLink, error)

Generate a [story deep link](https://core.telegram.org/api/links#story-links) for a specific story

func (*Client) StoriesGetAllReadPeerStories

func (c *Client) StoriesGetAllReadPeerStories() (Updates, error)

Obtain the latest read story ID for all peers when first logging in, returned as a list of [updateReadStories](https://core.telegram.org/constructor/updateReadStories) updates, see [here »](https://core.telegram.org/api/stories#watching-stories) for more info.

func (*Client) StoriesGetAllStories

func (c *Client) StoriesGetAllStories(next, hidden bool, state string) (StoriesAllStories, error)

Fetch the List of active (or active and hidden) stories, see [here »](https://core.telegram.org/api/stories#watching-stories) for more info on watching stories.

func (*Client) StoriesGetChatsToSend

func (c *Client) StoriesGetChatsToSend() (MessagesChats, error)

Obtain a list of channels where the user can post [stories](https://core.telegram.org/api/stories)

func (*Client) StoriesGetPeerMaxIDs

func (c *Client) StoriesGetPeerMaxIDs(id []InputPeer) ([]int32, error)

Get the IDs of the maximum read stories for a set of peers.

func (*Client) StoriesGetPeerStories

func (c *Client) StoriesGetPeerStories(peer InputPeer) (*StoriesPeerStories, error)

Fetch the full active [story list](https://core.telegram.org/api/stories#watching-stories) of a specific peer.

func (*Client) StoriesGetPinnedStories

func (c *Client) StoriesGetPinnedStories(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)

Fetch the [stories](https://core.telegram.org/api/stories#pinned-or-archived-stories) pinned on a peer's profile.

func (*Client) StoriesGetStoriesArchive

func (c *Client) StoriesGetStoriesArchive(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)

Fetch the [story archive »](https://core.telegram.org/api/stories#pinned-or-archived-stories) of a peer we control.

func (*Client) StoriesGetStoriesByID

func (c *Client) StoriesGetStoriesByID(peer InputPeer, id []int32) (*StoriesStories, error)

Obtain full info about a set of [stories](https://core.telegram.org/api/stories) by their IDs.

func (*Client) StoriesGetStoriesViews

func (c *Client) StoriesGetStoriesViews(peer InputPeer, id []int32) (*StoriesStoryViews, error)

Obtain info about the view count, forward count, reactions and recent viewers of one or more [stories](https://core.telegram.org/api/stories).

func (*Client) StoriesGetStoryReactionsList

func (c *Client) StoriesGetStoryReactionsList(params *StoriesGetStoryReactionsListParams) (*StoriesStoryReactionsList, error)

Get the [reaction](https://core.telegram.org/api/reactions) and interaction list of a [story](https://core.telegram.org/api/stories) posted to a channel, along with the sender of each reaction.

func (*Client) StoriesGetStoryViewsList

func (c *Client) StoriesGetStoryViewsList(params *StoriesGetStoryViewsListParams) (*StoriesStoryViewsList, error)

Obtain the list of users that have viewed a specific [story we posted](https://core.telegram.org/api/stories)

func (*Client) StoriesIncrementStoryViews

func (c *Client) StoriesIncrementStoryViews(peer InputPeer, id []int32) (bool, error)

Increment the view counter of one or more stories.

func (*Client) StoriesReadStories

func (c *Client) StoriesReadStories(peer InputPeer, maxID int32) ([]int32, error)

Mark all stories up to a certain ID as read, for a given peer; will emit an [updateReadStories](https://core.telegram.org/constructor/updateReadStories) update to all logged-in sessions.

func (*Client) StoriesReport

func (c *Client) StoriesReport(peer InputPeer, id []int32, reason ReportReason, message string) (bool, error)

Report a story.

func (*Client) StoriesSearchPosts

func (c *Client) StoriesSearchPosts(hashtag string, area MediaArea, offset string, limit int32) (*StoriesFoundStories, error)

func (*Client) StoriesSendReaction

func (c *Client) StoriesSendReaction(addToRecent bool, peer InputPeer, storyID int32, reaction Reaction) (Updates, error)

React to a story.

func (*Client) StoriesSendStory

func (c *Client) StoriesSendStory(params *StoriesSendStoryParams) (Updates, error)

Uploads a [Telegram Story](https://core.telegram.org/api/stories).

func (*Client) StoriesToggleAllStoriesHidden

func (c *Client) StoriesToggleAllStoriesHidden(hidden bool) (bool, error)

Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.

func (*Client) StoriesTogglePeerStoriesHidden

func (c *Client) StoriesTogglePeerStoriesHidden(peer InputPeer, hidden bool) (bool, error)

Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see [here »](https://core.telegram.org/api/stories#hiding-stories-of-other-users) for more info.

func (*Client) StoriesTogglePinned

func (c *Client) StoriesTogglePinned(peer InputPeer, id []int32, pinned bool) ([]int32, error)

Pin or unpin one or more stories

func (*Client) StoriesTogglePinnedToTop

func (c *Client) StoriesTogglePinnedToTop(peer InputPeer, id []int32) (bool, error)

func (*Client) SwitchDc

func (c *Client) SwitchDc(dcID int) error

switchDC permanently switches the data center

func (*Client) Terminate

func (c *Client) Terminate() error

Terminate client and disconnect from telegram server

func (*Client) UnpinMessage

func (c *Client) UnpinMessage(PeerID interface{}, MsgID int32, Opts ...*PinOptions) (Updates, error)

UnpinMessage unpins a message.

func (*Client) UpdatesGetChannelDifference

func (c *Client) UpdatesGetChannelDifference(params *UpdatesGetChannelDifferenceParams) (UpdatesChannelDifference, error)

Returns the difference between the current state of updates of a certain channel and transmitted.

func (*Client) UpdatesGetDifference

func (c *Client) UpdatesGetDifference(params *UpdatesGetDifferenceParams) (UpdatesDifference, error)

Get new [updates](https://core.telegram.org/api/updates).

func (*Client) UpdatesGetState

func (c *Client) UpdatesGetState() (*UpdatesState, error)

Returns a current state of updates.

func (*Client) UploadFile

func (c *Client) UploadFile(src interface{}, Opts ...*UploadOptions) (InputFile, error)

func (*Client) UploadGetCdnFile

func (c *Client) UploadGetCdnFile(fileToken []byte, offset int64, limit int32) (UploadCdnFile, error)

Download a [CDN](https://core.telegram.org/cdn) file.

func (*Client) UploadGetCdnFileHashes

func (c *Client) UploadGetCdnFileHashes(fileToken []byte, offset int64) ([]*FileHash, error)

Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files

func (*Client) UploadGetFile

func (c *Client) UploadGetFile(params *UploadGetFileParams) (UploadFile, error)

Returns content of a whole file or its part.

func (*Client) UploadGetFileHashes

func (c *Client) UploadGetFileHashes(location InputFileLocation, offset int64) ([]*FileHash, error)

Get SHA256 hashes for verifying downloaded files

func (*Client) UploadGetWebFile

func (c *Client) UploadGetWebFile(location InputWebFileLocation, offset, limit int32) (*UploadWebFile, error)

Returns content of a web file, by proxying the request through telegram, see the [webfile docs for more info](https://core.telegram.org/api/files#downloading-webfiles).

func (*Client) UploadReuploadCdnFile

func (c *Client) UploadReuploadCdnFile(fileToken, requestToken []byte) ([]*FileHash, error)

Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).

func (*Client) UploadSaveBigFilePart

func (c *Client) UploadSaveBigFilePart(fileID int64, filePart, fileTotalParts int32, bytes []byte) (bool, error)

Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.

func (*Client) UploadSaveFilePart

func (c *Client) UploadSaveFilePart(fileID int64, filePart int32, bytes []byte) (bool, error)

Saves a part of file for further sending to one of the methods.

func (*Client) UsersGetFullUser

func (c *Client) UsersGetFullUser(id InputUser) (*UsersUserFull, error)

Returns extended user info by ID.

func (*Client) UsersGetIsPremiumRequiredToContact

func (c *Client) UsersGetIsPremiumRequiredToContact(id []InputUser) (bool, error)

func (*Client) UsersGetUsers

func (c *Client) UsersGetUsers(id []InputUser) ([]User, error)

Returns basic user info according to their identifiers.

func (*Client) UsersSetSecureValueErrors

func (c *Client) UsersSetSecureValueErrors(id InputUser, errorsw []SecureValueError) (bool, error)

Notify the user that the sent [passport](https://core.telegram.org/passport) data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).

func (*Client) W

func (c *Client) W(obj any, err error) any

return only the object, omitting the error

func (*Client) WrapError

func (c *Client) WrapError(err error) error

WrapError sends an error to the error channel if it is not nil

type ClientConfig

type ClientConfig struct {
	AppID         int32
	AppHash       string
	DeviceConfig  DeviceConfig
	Session       string
	StringSession string
	LangCode      string
	ParseMode     string
	MemorySession bool
	DataCenter    int
	IpAddr        string
	PublicKeys    []*rsa.PublicKey
	NoUpdates     bool
	DisableCache  bool
	TestMode      bool
	LogLevel      string
	Proxy         *url.URL
	FloodHandler  func(err error) bool
}

type CodeSettings

type CodeSettings struct {
	AllowFlashcall  bool     `tl:"flag:0,encoded_in_bitflags"`
	CurrentNumber   bool     `tl:"flag:1,encoded_in_bitflags"`
	AllowAppHash    bool     `tl:"flag:4,encoded_in_bitflags"`
	AllowMissedCall bool     `tl:"flag:5,encoded_in_bitflags"`
	AllowFirebase   bool     `tl:"flag:7,encoded_in_bitflags"`
	UnknownNumber   bool     `tl:"flag:9,encoded_in_bitflags"`
	LogoutTokens    [][]byte `tl:"flag:6"`
	Token           string   `tl:"flag:8"`
	AppSandbox      bool     `tl:"flag:8"`
}

Settings used by telegram servers for sending the confirm code.

func (*CodeSettings) CRC

func (*CodeSettings) CRC() uint32

func (*CodeSettings) FlagIndex

func (*CodeSettings) FlagIndex() int

type Config

type Config struct {
	DefaultP2PContacts      bool `tl:"flag:3,encoded_in_bitflags"`
	PreloadFeaturedStickers bool `tl:"flag:4,encoded_in_bitflags"`
	RevokePmInbox           bool `tl:"flag:6,encoded_in_bitflags"`
	BlockedMode             bool `tl:"flag:8,encoded_in_bitflags"`
	ForceTryIpv6            bool `tl:"flag:14,encoded_in_bitflags"`
	Date                    int32
	Expires                 int32
	TestMode                bool
	ThisDc                  int32
	DcOptions               []*DcOption
	DcTxtDomainName         string
	ChatSizeMax             int32
	MegagroupSizeMax        int32
	ForwardedCountMax       int32
	OnlineUpdatePeriodMs    int32
	OfflineBlurTimeoutMs    int32
	OfflineIdleTimeoutMs    int32
	OnlineCloudTimeoutMs    int32
	NotifyCloudDelayMs      int32
	NotifyDefaultDelayMs    int32
	PushChatPeriodMs        int32
	PushChatLimit           int32
	EditTimeLimit           int32
	RevokeTimeLimit         int32
	RevokePmTimeLimit       int32
	RatingEDecay            int32
	StickersRecentLimit     int32
	ChannelsReadMediaPeriod int32
	TmpSessions             int32 `tl:"flag:0"`
	CallReceiveTimeoutMs    int32
	CallRingTimeoutMs       int32
	CallConnectTimeoutMs    int32
	CallPacketTimeoutMs     int32
	MeURLPrefix             string
	AutoupdateURLPrefix     string `tl:"flag:7"`
	GifSearchUsername       string `tl:"flag:9"`
	VenueSearchUsername     string `tl:"flag:10"`
	ImgSearchUsername       string `tl:"flag:11"`
	StaticMapsProvider      string `tl:"flag:12"`
	CaptionLengthMax        int32
	MessageLengthMax        int32
	WebfileDcID             int32
	SuggestedLangCode       string   `tl:"flag:2"`
	LangPackVersion         int32    `tl:"flag:2"`
	BaseLangPackVersion     int32    `tl:"flag:2"`
	ReactionsDefault        Reaction `tl:"flag:15"`
	AutologinToken          string   `tl:"flag:16"`
}

Current configuration

func (*Config) CRC

func (*Config) CRC() uint32

func (*Config) FlagIndex

func (*Config) FlagIndex() int

type ConnectedBot

type ConnectedBot struct {
	CanReply   bool `tl:"flag:0,encoded_in_bitflags"`
	BotID      int64
	Recipients *BusinessBotRecipients
}

func (*ConnectedBot) CRC

func (*ConnectedBot) CRC() uint32

func (*ConnectedBot) FlagIndex

func (*ConnectedBot) FlagIndex() int

type Contact

type Contact struct {
	UserID int64
	Mutual bool
}

A contact of the current user that is registered in the system.

func (*Contact) CRC

func (*Contact) CRC() uint32

type ContactBirthday

type ContactBirthday struct {
	ContactID int64
	Birthday  *Birthday
}

func (*ContactBirthday) CRC

func (*ContactBirthday) CRC() uint32

type ContactStatus

type ContactStatus struct {
	UserID int64
	Status UserStatus
}

Contact status: online / offline.

func (*ContactStatus) CRC

func (*ContactStatus) CRC() uint32

type ContactsAcceptContactParams

type ContactsAcceptContactParams struct {
	ID InputUser
}

func (*ContactsAcceptContactParams) CRC

type ContactsAddContactParams

type ContactsAddContactParams struct {
	AddPhonePrivacyException bool `tl:"flag:0,encoded_in_bitflags"`
	ID                       InputUser
	FirstName                string
	LastName                 string
	Phone                    string
}

func (*ContactsAddContactParams) CRC

func (*ContactsAddContactParams) FlagIndex

func (*ContactsAddContactParams) FlagIndex() int

type ContactsBlockFromRepliesParams

type ContactsBlockFromRepliesParams struct {
	DeleteMessage bool `tl:"flag:0,encoded_in_bitflags"`
	DeleteHistory bool `tl:"flag:1,encoded_in_bitflags"`
	ReportSpam    bool `tl:"flag:2,encoded_in_bitflags"`
	MsgID         int32
}

func (*ContactsBlockFromRepliesParams) CRC

func (*ContactsBlockFromRepliesParams) FlagIndex

func (*ContactsBlockFromRepliesParams) FlagIndex() int

type ContactsBlockParams

type ContactsBlockParams struct {
	MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
	ID            InputPeer
}

func (*ContactsBlockParams) CRC

func (*ContactsBlockParams) CRC() uint32

func (*ContactsBlockParams) FlagIndex

func (*ContactsBlockParams) FlagIndex() int

type ContactsBlocked

type ContactsBlocked interface {
	tl.Object
	ImplementsContactsBlocked()
}

type ContactsBlockedObj

type ContactsBlockedObj struct {
	Blocked []*PeerBlocked
	Chats   []Chat
	Users   []User
}

Full list of blocked users.

func (*ContactsBlockedObj) CRC

func (*ContactsBlockedObj) CRC() uint32

func (*ContactsBlockedObj) ImplementsContactsBlocked

func (*ContactsBlockedObj) ImplementsContactsBlocked()

type ContactsBlockedSlice

type ContactsBlockedSlice struct {
	Count   int32
	Blocked []*PeerBlocked
	Chats   []Chat
	Users   []User
}

Incomplete list of blocked users.

func (*ContactsBlockedSlice) CRC

func (*ContactsBlockedSlice) ImplementsContactsBlocked

func (*ContactsBlockedSlice) ImplementsContactsBlocked()

type ContactsContactBirthdays

type ContactsContactBirthdays struct {
	Contacts []*ContactBirthday
	Users    []User
}

func (*ContactsContactBirthdays) CRC

type ContactsContacts

type ContactsContacts interface {
	tl.Object
	ImplementsContactsContacts()
}

type ContactsContactsNotModified

type ContactsContactsNotModified struct{}

Contact list on the server is the same as the list on the client.

func (*ContactsContactsNotModified) CRC

func (*ContactsContactsNotModified) ImplementsContactsContacts

func (*ContactsContactsNotModified) ImplementsContactsContacts()

type ContactsContactsObj

type ContactsContactsObj struct {
	Contacts   []*Contact
	SavedCount int32
	Users      []User
}

The current user's contact list and info on users.

func (*ContactsContactsObj) CRC

func (*ContactsContactsObj) CRC() uint32

func (*ContactsContactsObj) ImplementsContactsContacts

func (*ContactsContactsObj) ImplementsContactsContacts()

type ContactsDeleteByPhonesParams

type ContactsDeleteByPhonesParams struct {
	Phones []string
}

func (*ContactsDeleteByPhonesParams) CRC

type ContactsDeleteContactsParams

type ContactsDeleteContactsParams struct {
	ID []InputUser
}

func (*ContactsDeleteContactsParams) CRC

type ContactsEditCloseFriendsParams

type ContactsEditCloseFriendsParams struct {
	ID []int64
}

func (*ContactsEditCloseFriendsParams) CRC

type ContactsExportContactTokenParams

type ContactsExportContactTokenParams struct{}

func (*ContactsExportContactTokenParams) CRC

type ContactsFound

type ContactsFound struct {
	MyResults []Peer
	Results   []Peer
	Chats     []Chat
	Users     []User
}

Users found by name substring and auxiliary data.

func (*ContactsFound) CRC

func (*ContactsFound) CRC() uint32

type ContactsGetBirthdaysParams

type ContactsGetBirthdaysParams struct{}

func (*ContactsGetBirthdaysParams) CRC

type ContactsGetBlockedParams

type ContactsGetBlockedParams struct {
	MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
	Offset        int32
	Limit         int32
}

func (*ContactsGetBlockedParams) CRC

func (*ContactsGetBlockedParams) FlagIndex

func (*ContactsGetBlockedParams) FlagIndex() int

type ContactsGetContactIDsParams

type ContactsGetContactIDsParams struct {
	Hash int64
}

func (*ContactsGetContactIDsParams) CRC

type ContactsGetContactsParams

type ContactsGetContactsParams struct {
	Hash int64
}

func (*ContactsGetContactsParams) CRC

type ContactsGetLocatedParams

type ContactsGetLocatedParams struct {
	Background  bool `tl:"flag:1,encoded_in_bitflags"`
	GeoPoint    InputGeoPoint
	SelfExpires int32 `tl:"flag:0"`
}

func (*ContactsGetLocatedParams) CRC

func (*ContactsGetLocatedParams) FlagIndex

func (*ContactsGetLocatedParams) FlagIndex() int

type ContactsGetSavedParams

type ContactsGetSavedParams struct{}

func (*ContactsGetSavedParams) CRC

type ContactsGetStatusesParams

type ContactsGetStatusesParams struct{}

func (*ContactsGetStatusesParams) CRC

type ContactsGetTopPeersParams

type ContactsGetTopPeersParams struct {
	Correspondents bool `tl:"flag:0,encoded_in_bitflags"`
	BotsPm         bool `tl:"flag:1,encoded_in_bitflags"`
	BotsInline     bool `tl:"flag:2,encoded_in_bitflags"`
	PhoneCalls     bool `tl:"flag:3,encoded_in_bitflags"`
	ForwardUsers   bool `tl:"flag:4,encoded_in_bitflags"`
	ForwardChats   bool `tl:"flag:5,encoded_in_bitflags"`
	Groups         bool `tl:"flag:10,encoded_in_bitflags"`
	Channels       bool `tl:"flag:15,encoded_in_bitflags"`
	BotsApp        bool `tl:"flag:16,encoded_in_bitflags"`
	Offset         int32
	Limit          int32
	Hash           int64
}

func (*ContactsGetTopPeersParams) CRC

func (*ContactsGetTopPeersParams) FlagIndex

func (*ContactsGetTopPeersParams) FlagIndex() int

type ContactsImportContactTokenParams

type ContactsImportContactTokenParams struct {
	Token string
}

func (*ContactsImportContactTokenParams) CRC

type ContactsImportContactsParams

type ContactsImportContactsParams struct {
	Contacts []*InputPhoneContact
}

func (*ContactsImportContactsParams) CRC

type ContactsImportedContacts

type ContactsImportedContacts struct {
	Imported       []*ImportedContact
	PopularInvites []*PopularContact
	RetryContacts  []int64
	Users          []User
}

Info on successfully imported contacts.

func (*ContactsImportedContacts) CRC

type ContactsResetSavedParams

type ContactsResetSavedParams struct{}

func (*ContactsResetSavedParams) CRC

type ContactsResetTopPeerRatingParams

type ContactsResetTopPeerRatingParams struct {
	Category TopPeerCategory
	Peer     InputPeer
}

func (*ContactsResetTopPeerRatingParams) CRC

type ContactsResolvePhoneParams

type ContactsResolvePhoneParams struct {
	Phone string
}

func (*ContactsResolvePhoneParams) CRC

type ContactsResolveUsernameParams

type ContactsResolveUsernameParams struct {
	Username string
}

func (*ContactsResolveUsernameParams) CRC

type ContactsResolvedPeer

type ContactsResolvedPeer struct {
	Peer  Peer
	Chats []Chat
	Users []User
}

Resolved peer

func (*ContactsResolvedPeer) CRC

type ContactsSearchParams

type ContactsSearchParams struct {
	Q     string
	Limit int32
}

func (*ContactsSearchParams) CRC

type ContactsSetBlockedParams

type ContactsSetBlockedParams struct {
	MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
	ID            []InputPeer
	Limit         int32
}

func (*ContactsSetBlockedParams) CRC

func (*ContactsSetBlockedParams) FlagIndex

func (*ContactsSetBlockedParams) FlagIndex() int

type ContactsToggleTopPeersParams

type ContactsToggleTopPeersParams struct {
	Enabled bool
}

func (*ContactsToggleTopPeersParams) CRC

type ContactsTopPeers

type ContactsTopPeers interface {
	tl.Object
	ImplementsContactsTopPeers()
}

type ContactsTopPeersDisabled

type ContactsTopPeersDisabled struct{}

Top peers disabled

func (*ContactsTopPeersDisabled) CRC

func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers

func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers()

type ContactsTopPeersNotModified

type ContactsTopPeersNotModified struct{}

Top peer info hasn't changed

func (*ContactsTopPeersNotModified) CRC

func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers

func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers()

type ContactsTopPeersObj

type ContactsTopPeersObj struct {
	Categories []*TopPeerCategoryPeers
	Chats      []Chat
	Users      []User
}

Top peers

func (*ContactsTopPeersObj) CRC

func (*ContactsTopPeersObj) CRC() uint32

func (*ContactsTopPeersObj) ImplementsContactsTopPeers

func (*ContactsTopPeersObj) ImplementsContactsTopPeers()

type ContactsUnblockParams

type ContactsUnblockParams struct {
	MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
	ID            InputPeer
}

func (*ContactsUnblockParams) CRC

func (*ContactsUnblockParams) FlagIndex

func (*ContactsUnblockParams) FlagIndex() int

type Conversation

type Conversation struct {
	Client *Client
	Peer   InputPeer
	// contains filtered or unexported fields
}

Conversation is a struct for conversation with user.

func NewConversation

func NewConversation(client *Client, peer InputPeer, timeout ...int32) *Conversation

NewConversation creates a new conversation with user

func (*Conversation) Close

func (c *Conversation) Close()

close closes the conversation, removing all open event handlers

func (*Conversation) GetEdit

func (c *Conversation) GetEdit() (*NewMessage, error)

func (*Conversation) GetReply

func (c *Conversation) GetReply() (*NewMessage, error)

func (*Conversation) GetResponse

func (c *Conversation) GetResponse() (*NewMessage, error)

func (*Conversation) MarkRead

func (c *Conversation) MarkRead() (*MessagesAffectedMessages, error)

func (*Conversation) Reply

func (c *Conversation) Reply(text any, opts ...*SendOptions) (*NewMessage, error)

func (*Conversation) ReplyMedia

func (c *Conversation) ReplyMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)

func (*Conversation) Respond

func (c *Conversation) Respond(text any, opts ...*SendOptions) (*NewMessage, error)

func (*Conversation) RespondMedia

func (c *Conversation) RespondMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)

func (*Conversation) SetTimeOut

func (c *Conversation) SetTimeOut(timeout int32) *Conversation

SetTimeOut sets the timeout for conversation

func (*Conversation) WaitEvent

func (c *Conversation) WaitEvent(ev *Update) (Update, error)

func (*Conversation) WaitRead

func (c *Conversation) WaitRead() (*UpdateReadChannelInbox, error)

type CustomDialog

type CustomDialog struct{} // TODO

type CustomFile

type CustomFile struct {
	Ext    string `json:"ext,omitempty"`
	FileID string `json:"file_id,omitempty"`
	Name   string `json:"name,omitempty"`
	Size   int64  `json:"size,omitempty"`
}

type DataJson

type DataJson struct {
	Data string
}

Represents a json-encoded object

func (*DataJson) CRC

func (*DataJson) CRC() uint32

type DcOption

type DcOption struct {
	Ipv6         bool `tl:"flag:0,encoded_in_bitflags"`
	MediaOnly    bool `tl:"flag:1,encoded_in_bitflags"`
	TcpoOnly     bool `tl:"flag:2,encoded_in_bitflags"`
	Cdn          bool `tl:"flag:3,encoded_in_bitflags"`
	Static       bool `tl:"flag:4,encoded_in_bitflags"`
	ThisPortOnly bool `tl:"flag:5,encoded_in_bitflags"`
	ID           int32
	IpAddress    string
	Port         int32
	Secret       []byte `tl:"flag:10"`
}

Data center

func (*DcOption) CRC

func (*DcOption) CRC() uint32

func (*DcOption) FlagIndex

func (*DcOption) FlagIndex() int

type DefaultHistoryTtl

type DefaultHistoryTtl struct {
	Period int32
}

Contains info about the default value of the Time-To-Live setting, applied to all new chats.

func (*DefaultHistoryTtl) CRC

func (*DefaultHistoryTtl) CRC() uint32

type DeleteHandler

type DeleteHandler func(m *DeleteMessage) error

type DeleteMessage

type DeleteMessage struct {
	Client    *Client
	ChannelID int64
	Messages  []int32
}

type Destination

type Destination struct {
	// contains filtered or unexported fields
}

func (*Destination) Close

func (mb *Destination) Close() error

func (*Destination) WriteAt

func (mb *Destination) WriteAt(p []byte, off int64) (n int, err error)

type DeviceConfig

type DeviceConfig struct {
	DeviceModel   string
	SystemVersion string
	AppVersion    string
}

type Dialog

type Dialog interface {
	tl.Object
	ImplementsDialog()
}

type DialogFilter

type DialogFilter interface {
	tl.Object
	ImplementsDialogFilter()
}

type DialogFilterChatlist

type DialogFilterChatlist struct {
	HasMyInvites bool `tl:"flag:26,encoded_in_bitflags"`
	ID           int32
	Title        string
	Emoticon     string `tl:"flag:25"`
	Color        int32  `tl:"flag:27"`
	PinnedPeers  []InputPeer
	IncludePeers []InputPeer
}

A folder imported using a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*DialogFilterChatlist) CRC

func (*DialogFilterChatlist) FlagIndex

func (*DialogFilterChatlist) FlagIndex() int

func (*DialogFilterChatlist) ImplementsDialogFilter

func (*DialogFilterChatlist) ImplementsDialogFilter()

type DialogFilterDefault

type DialogFilterDefault struct{}

Used only when reordering folders to indicate the default (all chats) folder.

func (*DialogFilterDefault) CRC

func (*DialogFilterDefault) CRC() uint32

func (*DialogFilterDefault) ImplementsDialogFilter

func (*DialogFilterDefault) ImplementsDialogFilter()

type DialogFilterObj

type DialogFilterObj struct {
	Contacts        bool `tl:"flag:0,encoded_in_bitflags"`
	NonContacts     bool `tl:"flag:1,encoded_in_bitflags"`
	Groups          bool `tl:"flag:2,encoded_in_bitflags"`
	Broadcasts      bool `tl:"flag:3,encoded_in_bitflags"`
	Bots            bool `tl:"flag:4,encoded_in_bitflags"`
	ExcludeMuted    bool `tl:"flag:11,encoded_in_bitflags"`
	ExcludeRead     bool `tl:"flag:12,encoded_in_bitflags"`
	ExcludeArchived bool `tl:"flag:13,encoded_in_bitflags"`
	ID              int32
	Title           string
	Emoticon        string `tl:"flag:25"`
	Color           int32  `tl:"flag:27"`
	PinnedPeers     []InputPeer
	IncludePeers    []InputPeer
	ExcludePeers    []InputPeer
}

Dialog filter AKA [folder](https://core.telegram.org/api/folders)

func (*DialogFilterObj) CRC

func (*DialogFilterObj) CRC() uint32

func (*DialogFilterObj) FlagIndex

func (*DialogFilterObj) FlagIndex() int

func (*DialogFilterObj) ImplementsDialogFilter

func (*DialogFilterObj) ImplementsDialogFilter()

type DialogFilterSuggested

type DialogFilterSuggested struct {
	Filter      DialogFilter
	Description string
}

Suggested [folders](https://core.telegram.org/api/folders)

func (*DialogFilterSuggested) CRC

type DialogFolder

type DialogFolder struct {
	Pinned                     bool `tl:"flag:2,encoded_in_bitflags"`
	Folder                     *Folder
	Peer                       Peer
	TopMessage                 int32
	UnreadMutedPeersCount      int32
	UnreadUnmutedPeersCount    int32
	UnreadMutedMessagesCount   int32
	UnreadUnmutedMessagesCount int32
}

Dialog in folder

func (*DialogFolder) CRC

func (*DialogFolder) CRC() uint32

func (*DialogFolder) FlagIndex

func (*DialogFolder) FlagIndex() int

func (*DialogFolder) ImplementsDialog

func (*DialogFolder) ImplementsDialog()

type DialogObj

type DialogObj struct {
	Pinned               bool `tl:"flag:2,encoded_in_bitflags"`
	UnreadMark           bool `tl:"flag:3,encoded_in_bitflags"`
	ViewForumAsMessages  bool `tl:"flag:6,encoded_in_bitflags"`
	Peer                 Peer
	TopMessage           int32
	ReadInboxMaxID       int32
	ReadOutboxMaxID      int32
	UnreadCount          int32
	UnreadMentionsCount  int32
	UnreadReactionsCount int32
	NotifySettings       *PeerNotifySettings
	Pts                  int32        `tl:"flag:0"`
	Draft                DraftMessage `tl:"flag:1"`
	FolderID             int32        `tl:"flag:4"`
	TtlPeriod            int32        `tl:"flag:5"`
}

Chat

func (*DialogObj) CRC

func (*DialogObj) CRC() uint32

func (*DialogObj) FlagIndex

func (*DialogObj) FlagIndex() int

func (*DialogObj) ImplementsDialog

func (*DialogObj) ImplementsDialog()

type DialogOptions

type DialogOptions struct {
	OffsetID      int32     `json:"offset_id,omitempty"`
	OffsetDate    int32     `json:"offset_date,omitempty"`
	OffsetPeer    InputPeer `json:"offset_peer,omitempty"`
	Limit         int32     `json:"limit,omitempty"`
	ExcludePinned bool      `json:"exclude_pinned,omitempty"`
	FolderID      int32     `json:"folder_id,omitempty"`
	Hash          int64     `json:"hash,omitempty"`
}

type DialogPeer

type DialogPeer interface {
	tl.Object
	ImplementsDialogPeer()
}

type DialogPeerFolder

type DialogPeerFolder struct {
	FolderID int32
}

[Peer folder](https://core.telegram.org/api/folders#peer-folders)

func (*DialogPeerFolder) CRC

func (*DialogPeerFolder) CRC() uint32

func (*DialogPeerFolder) ImplementsDialogPeer

func (*DialogPeerFolder) ImplementsDialogPeer()

type DialogPeerObj

type DialogPeerObj struct {
	Peer Peer
}

Peer

func (*DialogPeerObj) CRC

func (*DialogPeerObj) CRC() uint32

func (*DialogPeerObj) ImplementsDialogPeer

func (*DialogPeerObj) ImplementsDialogPeer()

type Document

type Document interface {
	tl.Object
	ImplementsDocument()
}

type DocumentAttribute

type DocumentAttribute interface {
	tl.Object
	ImplementsDocumentAttribute()
}

type DocumentAttributeAnimated

type DocumentAttributeAnimated struct{}

Defines an animated GIF

func (*DocumentAttributeAnimated) CRC

func (*DocumentAttributeAnimated) ImplementsDocumentAttribute

func (*DocumentAttributeAnimated) ImplementsDocumentAttribute()

type DocumentAttributeAudio

type DocumentAttributeAudio struct {
	Voice     bool `tl:"flag:10,encoded_in_bitflags"`
	Duration  int32
	Title     string `tl:"flag:0"`
	Performer string `tl:"flag:1"`
	Waveform  []byte `tl:"flag:2"`
}

Represents an audio file

func (*DocumentAttributeAudio) CRC

func (*DocumentAttributeAudio) FlagIndex

func (*DocumentAttributeAudio) FlagIndex() int

func (*DocumentAttributeAudio) ImplementsDocumentAttribute

func (*DocumentAttributeAudio) ImplementsDocumentAttribute()

type DocumentAttributeCustomEmoji

type DocumentAttributeCustomEmoji struct {
	Free       bool `tl:"flag:0,encoded_in_bitflags"`
	TextColor  bool `tl:"flag:1,encoded_in_bitflags"`
	Alt        string
	Stickerset InputStickerSet
}

Info about a custom emoji

func (*DocumentAttributeCustomEmoji) CRC

func (*DocumentAttributeCustomEmoji) FlagIndex

func (*DocumentAttributeCustomEmoji) FlagIndex() int

func (*DocumentAttributeCustomEmoji) ImplementsDocumentAttribute

func (*DocumentAttributeCustomEmoji) ImplementsDocumentAttribute()

type DocumentAttributeFilename

type DocumentAttributeFilename struct {
	FileName string
}

A simple document with a file name

func (*DocumentAttributeFilename) CRC

func (*DocumentAttributeFilename) ImplementsDocumentAttribute

func (*DocumentAttributeFilename) ImplementsDocumentAttribute()

type DocumentAttributeHasStickers

type DocumentAttributeHasStickers struct{}

Whether the current document has stickers attached

func (*DocumentAttributeHasStickers) CRC

func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute

func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute()

type DocumentAttributeImageSize

type DocumentAttributeImageSize struct {
	W int32
	H int32
}

Defines the width and height of an image uploaded as document

func (*DocumentAttributeImageSize) CRC

func (*DocumentAttributeImageSize) ImplementsDocumentAttribute

func (*DocumentAttributeImageSize) ImplementsDocumentAttribute()

type DocumentAttributeSticker

type DocumentAttributeSticker struct {
	Mask       bool `tl:"flag:1,encoded_in_bitflags"`
	Alt        string
	Stickerset InputStickerSet
	MaskCoords *MaskCoords `tl:"flag:0"`
}

Defines a sticker

func (*DocumentAttributeSticker) CRC

func (*DocumentAttributeSticker) FlagIndex

func (*DocumentAttributeSticker) FlagIndex() int

func (*DocumentAttributeSticker) ImplementsDocumentAttribute

func (*DocumentAttributeSticker) ImplementsDocumentAttribute()

type DocumentAttributeVideo

type DocumentAttributeVideo struct {
	RoundMessage      bool `tl:"flag:0,encoded_in_bitflags"`
	SupportsStreaming bool `tl:"flag:1,encoded_in_bitflags"`
	Nosound           bool `tl:"flag:3,encoded_in_bitflags"`
	Duration          float64
	W                 int32
	H                 int32
	PreloadPrefixSize int32   `tl:"flag:2"`
	VideoStartTs      float64 `tl:"flag:4"`
}

Defines a video

func (*DocumentAttributeVideo) CRC

func (*DocumentAttributeVideo) FlagIndex

func (*DocumentAttributeVideo) FlagIndex() int

func (*DocumentAttributeVideo) ImplementsDocumentAttribute

func (*DocumentAttributeVideo) ImplementsDocumentAttribute()

type DocumentEmpty

type DocumentEmpty struct {
	ID int64
}

Empty constructor, document doesn't exist.

func (*DocumentEmpty) CRC

func (*DocumentEmpty) CRC() uint32

func (*DocumentEmpty) ImplementsDocument

func (*DocumentEmpty) ImplementsDocument()

type DocumentObj

type DocumentObj struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	Date          int32
	MimeType      string
	Size          int64
	Thumbs        []PhotoSize `tl:"flag:0"`
	VideoThumbs   []VideoSize `tl:"flag:1"`
	DcID          int32
	Attributes    []DocumentAttribute
}

Document

func (*DocumentObj) CRC

func (*DocumentObj) CRC() uint32

func (*DocumentObj) FlagIndex

func (*DocumentObj) FlagIndex() int

func (*DocumentObj) ImplementsDocument

func (*DocumentObj) ImplementsDocument()

type DownloadOptions

type DownloadOptions struct {
	// Download path to save file
	FileName string `json:"file_name,omitempty"`
	// Worker count to download file
	Threads int `json:"threads,omitempty"`
	// Chunk size to download file
	ChunkSize int32 `json:"chunk_size,omitempty"`
	// output Callback for download progress, total parts and downloaded parts.
	ProgressCallback func(totalParts int32, downloadedParts int32) `json:"-"`
	// Datacenter ID of file
	DCId int32 `json:"dc_id,omitempty"`
	// Destination Writer
	Buffer io.Writer `json:"-"`
}

type DraftMessage

type DraftMessage interface {
	tl.Object
	ImplementsDraftMessage()
}

type DraftMessageEmpty

type DraftMessageEmpty struct {
	Date int32 `tl:"flag:0"`
}

Empty draft

func (*DraftMessageEmpty) CRC

func (*DraftMessageEmpty) CRC() uint32

func (*DraftMessageEmpty) FlagIndex

func (*DraftMessageEmpty) FlagIndex() int

func (*DraftMessageEmpty) ImplementsDraftMessage

func (*DraftMessageEmpty) ImplementsDraftMessage()

type DraftMessageObj

type DraftMessageObj struct {
	NoWebpage   bool         `tl:"flag:1,encoded_in_bitflags"`
	InvertMedia bool         `tl:"flag:6,encoded_in_bitflags"`
	ReplyTo     InputReplyTo `tl:"flag:4"`
	Message     string
	Entities    []MessageEntity `tl:"flag:3"`
	Media       InputMedia      `tl:"flag:5"`
	Date        int32
	Effect      int64 `tl:"flag:7"`
}

Represents a message [draft](https://core.telegram.org/api/drafts).

func (*DraftMessageObj) CRC

func (*DraftMessageObj) CRC() uint32

func (*DraftMessageObj) FlagIndex

func (*DraftMessageObj) FlagIndex() int

func (*DraftMessageObj) ImplementsDraftMessage

func (*DraftMessageObj) ImplementsDraftMessage()

type EditHandler

type EditHandler func(m *NewMessage) error

type EmailVerification

type EmailVerification interface {
	tl.Object
	ImplementsEmailVerification()
}

type EmailVerificationApple

type EmailVerificationApple struct {
	Token string
}

Apple ID email verification token

func (*EmailVerificationApple) CRC

func (*EmailVerificationApple) ImplementsEmailVerification

func (*EmailVerificationApple) ImplementsEmailVerification()

type EmailVerificationCode

type EmailVerificationCode struct {
	Code string
}

Email verification code

func (*EmailVerificationCode) CRC

func (*EmailVerificationCode) ImplementsEmailVerification

func (*EmailVerificationCode) ImplementsEmailVerification()

type EmailVerificationGoogle

type EmailVerificationGoogle struct {
	Token string
}

Google ID email verification token

func (*EmailVerificationGoogle) CRC

func (*EmailVerificationGoogle) ImplementsEmailVerification

func (*EmailVerificationGoogle) ImplementsEmailVerification()

type EmailVerifyPurpose

type EmailVerifyPurpose interface {
	tl.Object
	ImplementsEmailVerifyPurpose()
}

type EmailVerifyPurposeLoginChange

type EmailVerifyPurposeLoginChange struct{}

Email verification purpose: change login email

func (*EmailVerifyPurposeLoginChange) CRC

func (*EmailVerifyPurposeLoginChange) ImplementsEmailVerifyPurpose

func (*EmailVerifyPurposeLoginChange) ImplementsEmailVerifyPurpose()

type EmailVerifyPurposeLoginSetup

type EmailVerifyPurposeLoginSetup struct {
	PhoneNumber   string
	PhoneCodeHash string
}

Email verification purpose: setup login email

func (*EmailVerifyPurposeLoginSetup) CRC

func (*EmailVerifyPurposeLoginSetup) ImplementsEmailVerifyPurpose

func (*EmailVerifyPurposeLoginSetup) ImplementsEmailVerifyPurpose()

type EmailVerifyPurposePassport

type EmailVerifyPurposePassport struct{}

Verify an email for use in [telegram passport](https://core.telegram.org/api/passport)

func (*EmailVerifyPurposePassport) CRC

func (*EmailVerifyPurposePassport) ImplementsEmailVerifyPurpose

func (*EmailVerifyPurposePassport) ImplementsEmailVerifyPurpose()

type EmojiGroup

type EmojiGroup interface {
	tl.Object
	ImplementsEmojiGroup()
}

type EmojiGroupGreeting

type EmojiGroupGreeting struct {
	Title       string
	IconEmojiID int64
	Emoticons   []string
}

func (*EmojiGroupGreeting) CRC

func (*EmojiGroupGreeting) CRC() uint32

func (*EmojiGroupGreeting) ImplementsEmojiGroup

func (*EmojiGroupGreeting) ImplementsEmojiGroup()

type EmojiGroupObj

type EmojiGroupObj struct {
	Title       string
	IconEmojiID int64
	Emoticons   []string
}

Represents an [emoji category](https://core.telegram.org/api/custom-emoji#emoji-categories).

func (*EmojiGroupObj) CRC

func (*EmojiGroupObj) CRC() uint32

func (*EmojiGroupObj) ImplementsEmojiGroup

func (*EmojiGroupObj) ImplementsEmojiGroup()

type EmojiGroupPremium

type EmojiGroupPremium struct {
	Title       string
	IconEmojiID int64
}

func (*EmojiGroupPremium) CRC

func (*EmojiGroupPremium) CRC() uint32

func (*EmojiGroupPremium) ImplementsEmojiGroup

func (*EmojiGroupPremium) ImplementsEmojiGroup()

type EmojiKeyword

type EmojiKeyword interface {
	tl.Object
	ImplementsEmojiKeyword()
}

type EmojiKeywordDeleted

type EmojiKeywordDeleted struct {
	Keyword   string
	Emoticons []string
}

Deleted emoji keyword

func (*EmojiKeywordDeleted) CRC

func (*EmojiKeywordDeleted) CRC() uint32

func (*EmojiKeywordDeleted) ImplementsEmojiKeyword

func (*EmojiKeywordDeleted) ImplementsEmojiKeyword()

type EmojiKeywordObj

type EmojiKeywordObj struct {
	Keyword   string
	Emoticons []string
}

Emoji keyword

func (*EmojiKeywordObj) CRC

func (*EmojiKeywordObj) CRC() uint32

func (*EmojiKeywordObj) ImplementsEmojiKeyword

func (*EmojiKeywordObj) ImplementsEmojiKeyword()

type EmojiKeywordsDifference

type EmojiKeywordsDifference struct {
	LangCode    string
	FromVersion int32
	Version     int32
	Keywords    []EmojiKeyword
}

Changes to emoji keywords

func (*EmojiKeywordsDifference) CRC

type EmojiLanguage

type EmojiLanguage struct {
	LangCode string
}

Emoji language

func (*EmojiLanguage) CRC

func (*EmojiLanguage) CRC() uint32

type EmojiList

type EmojiList interface {
	tl.Object
	ImplementsEmojiList()
}

type EmojiListNotModified

type EmojiListNotModified struct{}

The list of [custom emojis](https://core.telegram.org/api/custom-emoji) hasn't changed.

func (*EmojiListNotModified) CRC

func (*EmojiListNotModified) ImplementsEmojiList

func (*EmojiListNotModified) ImplementsEmojiList()

type EmojiListObj

type EmojiListObj struct {
	Hash       int64
	DocumentID []int64
}

Represents a list of [custom emojis](https://core.telegram.org/api/custom-emoji).

func (*EmojiListObj) CRC

func (*EmojiListObj) CRC() uint32

func (*EmojiListObj) ImplementsEmojiList

func (*EmojiListObj) ImplementsEmojiList()

type EmojiStatus

type EmojiStatus interface {
	tl.Object
	ImplementsEmojiStatus()
}

type EmojiStatusEmpty

type EmojiStatusEmpty struct{}

No emoji status is set

func (*EmojiStatusEmpty) CRC

func (*EmojiStatusEmpty) CRC() uint32

func (*EmojiStatusEmpty) ImplementsEmojiStatus

func (*EmojiStatusEmpty) ImplementsEmojiStatus()

type EmojiStatusObj

type EmojiStatusObj struct {
	DocumentID int64
}

An [emoji status](https://core.telegram.org/api/emoji-status)

func (*EmojiStatusObj) CRC

func (*EmojiStatusObj) CRC() uint32

func (*EmojiStatusObj) ImplementsEmojiStatus

func (*EmojiStatusObj) ImplementsEmojiStatus()

type EmojiStatusUntil

type EmojiStatusUntil struct {
	DocumentID int64
	Until      int32
}

An [emoji status](https://core.telegram.org/api/emoji-status) valid until the specified date

func (*EmojiStatusUntil) CRC

func (*EmojiStatusUntil) CRC() uint32

func (*EmojiStatusUntil) ImplementsEmojiStatus

func (*EmojiStatusUntil) ImplementsEmojiStatus()

type EmojiURL

type EmojiURL struct {
	URL string
}

An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation

func (*EmojiURL) CRC

func (*EmojiURL) CRC() uint32

type EncryptedChat

type EncryptedChat interface {
	tl.Object
	ImplementsEncryptedChat()
}

type EncryptedChatDiscarded

type EncryptedChatDiscarded struct {
	HistoryDeleted bool `tl:"flag:0,encoded_in_bitflags"`
	ID             int32
}

Discarded or deleted chat.

func (*EncryptedChatDiscarded) CRC

func (*EncryptedChatDiscarded) FlagIndex

func (*EncryptedChatDiscarded) FlagIndex() int

func (*EncryptedChatDiscarded) ImplementsEncryptedChat

func (*EncryptedChatDiscarded) ImplementsEncryptedChat()

type EncryptedChatEmpty

type EncryptedChatEmpty struct {
	ID int32
}

Empty constructor.

func (*EncryptedChatEmpty) CRC

func (*EncryptedChatEmpty) CRC() uint32

func (*EncryptedChatEmpty) ImplementsEncryptedChat

func (*EncryptedChatEmpty) ImplementsEncryptedChat()

type EncryptedChatObj

type EncryptedChatObj struct {
	ID             int32
	AccessHash     int64
	Date           int32
	AdminID        int64
	ParticipantID  int64
	GAOrB          []byte
	KeyFingerprint int64
}

Encrypted chat

func (*EncryptedChatObj) CRC

func (*EncryptedChatObj) CRC() uint32

func (*EncryptedChatObj) ImplementsEncryptedChat

func (*EncryptedChatObj) ImplementsEncryptedChat()

type EncryptedChatRequested

type EncryptedChatRequested struct {
	FolderID      int32 `tl:"flag:0"`
	ID            int32
	AccessHash    int64
	Date          int32
	AdminID       int64
	ParticipantID int64
	GA            []byte
}

Request to create an encrypted chat.

func (*EncryptedChatRequested) CRC

func (*EncryptedChatRequested) FlagIndex

func (*EncryptedChatRequested) FlagIndex() int

func (*EncryptedChatRequested) ImplementsEncryptedChat

func (*EncryptedChatRequested) ImplementsEncryptedChat()

type EncryptedChatWaiting

type EncryptedChatWaiting struct {
	ID            int32
	AccessHash    int64
	Date          int32
	AdminID       int64
	ParticipantID int64
}

Chat waiting for approval of second participant.

func (*EncryptedChatWaiting) CRC

func (*EncryptedChatWaiting) ImplementsEncryptedChat

func (*EncryptedChatWaiting) ImplementsEncryptedChat()

type EncryptedFile

type EncryptedFile interface {
	tl.Object
	ImplementsEncryptedFile()
}

type EncryptedFileEmpty

type EncryptedFileEmpty struct{}

Empty constructor, non-existing file.

func (*EncryptedFileEmpty) CRC

func (*EncryptedFileEmpty) CRC() uint32

func (*EncryptedFileEmpty) ImplementsEncryptedFile

func (*EncryptedFileEmpty) ImplementsEncryptedFile()

type EncryptedFileObj

type EncryptedFileObj struct {
	ID             int64
	AccessHash     int64
	Size           int64
	DcID           int32
	KeyFingerprint int32
}

Encrypted file.

func (*EncryptedFileObj) CRC

func (*EncryptedFileObj) CRC() uint32

func (*EncryptedFileObj) ImplementsEncryptedFile

func (*EncryptedFileObj) ImplementsEncryptedFile()

type EncryptedMessage

type EncryptedMessage interface {
	tl.Object
	ImplementsEncryptedMessage()
}

type EncryptedMessageObj

type EncryptedMessageObj struct {
	RandomID int64
	ChatID   int32
	Date     int32
	Bytes    []byte
	File     EncryptedFile
}

Encrypted message.

func (*EncryptedMessageObj) CRC

func (*EncryptedMessageObj) CRC() uint32

func (*EncryptedMessageObj) ImplementsEncryptedMessage

func (*EncryptedMessageObj) ImplementsEncryptedMessage()

type EncryptedMessageService

type EncryptedMessageService struct {
	RandomID int64
	ChatID   int32
	Date     int32
	Bytes    []byte
}

Encrypted service message

func (*EncryptedMessageService) CRC

func (*EncryptedMessageService) ImplementsEncryptedMessage

func (*EncryptedMessageService) ImplementsEncryptedMessage()

type Error

type Error struct {
	Code int32
	Text string
}

Error.

func (*Error) CRC

func (*Error) CRC() uint32

type ExportedChatInvite

type ExportedChatInvite interface {
	tl.Object
	ImplementsExportedChatInvite()
}

type ExportedChatlistInvite

type ExportedChatlistInvite struct {
	Title string
	URL   string
	Peers []Peer
}

Exported [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links).

func (*ExportedChatlistInvite) CRC

type ExportedContactToken

type ExportedContactToken struct {
	URL     string
	Expires int32
}

Describes a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links).

func (*ExportedContactToken) CRC

type ExportedMessageLink struct {
	Link string
	Html string
}

Link to a message in a supergroup/channel

func (*ExportedMessageLink) CRC

func (*ExportedMessageLink) CRC() uint32
type ExportedStoryLink struct {
	Link string
}

Represents a [story deep link](https://core.telegram.org/api/stories#story-links).

func (*ExportedStoryLink) CRC

func (*ExportedStoryLink) CRC() uint32

type FactCheck

type FactCheck struct {
	NeedCheck bool              `tl:"flag:0,encoded_in_bitflags"`
	Country   string            `tl:"flag:1"`
	Text      *TextWithEntities `tl:"flag:1"`
	Hash      int64
}

func (*FactCheck) CRC

func (*FactCheck) CRC() uint32

func (*FactCheck) FlagIndex

func (*FactCheck) FlagIndex() int

type FileHash

type FileHash struct {
	Offset int64
	Limit  int32
	Hash   []byte
}

SHA256 Hash of an uploaded file, to be checked for validity after download

func (*FileHash) CRC

func (*FileHash) CRC() uint32

type Filter

type Filter struct {
	Private, Group, Channel, Media, Command, Reply, Forward, FromBot, Blacklist, Mention bool
	Users, Chats                                                                         []int64
	Func                                                                                 func(m *NewMessage) bool
}

type Folder

type Folder struct {
	AutofillNewBroadcasts     bool `tl:"flag:0,encoded_in_bitflags"`
	AutofillPublicGroups      bool `tl:"flag:1,encoded_in_bitflags"`
	AutofillNewCorrespondents bool `tl:"flag:2,encoded_in_bitflags"`
	ID                        int32
	Title                     string
	Photo                     ChatPhoto `tl:"flag:3"`
}

Folder

func (*Folder) CRC

func (*Folder) CRC() uint32

func (*Folder) FlagIndex

func (*Folder) FlagIndex() int

type FolderPeer

type FolderPeer struct {
	Peer     Peer
	FolderID int32
}

Peer in a folder

func (*FolderPeer) CRC

func (*FolderPeer) CRC() uint32

type FoldersEditPeerFoldersParams

type FoldersEditPeerFoldersParams struct {
	FolderPeers []*InputFolderPeer
}

func (*FoldersEditPeerFoldersParams) CRC

type ForumTopic

type ForumTopic interface {
	tl.Object
	ImplementsForumTopic()
}

type ForumTopicDeleted

type ForumTopicDeleted struct {
	ID int32
}

Represents a deleted forum topic.

func (*ForumTopicDeleted) CRC

func (*ForumTopicDeleted) CRC() uint32

func (*ForumTopicDeleted) ImplementsForumTopic

func (*ForumTopicDeleted) ImplementsForumTopic()

type ForumTopicObj

type ForumTopicObj struct {
	My                   bool `tl:"flag:1,encoded_in_bitflags"`
	Closed               bool `tl:"flag:2,encoded_in_bitflags"`
	Pinned               bool `tl:"flag:3,encoded_in_bitflags"`
	Short                bool `tl:"flag:5,encoded_in_bitflags"`
	Hidden               bool `tl:"flag:6,encoded_in_bitflags"`
	ID                   int32
	Date                 int32
	Title                string
	IconColor            int32
	IconEmojiID          int64 `tl:"flag:0"`
	TopMessage           int32
	ReadInboxMaxID       int32
	ReadOutboxMaxID      int32
	UnreadCount          int32
	UnreadMentionsCount  int32
	UnreadReactionsCount int32
	FromID               Peer
	NotifySettings       *PeerNotifySettings
	Draft                DraftMessage `tl:"flag:4"`
}

Represents a [forum topic](https://core.telegram.org/api/forum#forum-topics).

func (*ForumTopicObj) CRC

func (*ForumTopicObj) CRC() uint32

func (*ForumTopicObj) FlagIndex

func (*ForumTopicObj) FlagIndex() int

func (*ForumTopicObj) ImplementsForumTopic

func (*ForumTopicObj) ImplementsForumTopic()

type ForwardOptions

type ForwardOptions struct {
	HideCaption  bool        `json:"hide_caption,omitempty"`
	HideAuthor   bool        `json:"hide_author,omitempty"`
	Silent       bool        `json:"silent,omitempty"`
	Protected    bool        `json:"protected,omitempty"`
	Background   bool        `json:"background,omitempty"`
	WithMyScore  bool        `json:"with_my_score,omitempty"`
	SendAs       interface{} `json:"send_as,omitempty"`
	ScheduleDate int32       `json:"schedule_date,omitempty"`
}

type FoundStory

type FoundStory struct {
	Peer  Peer
	Story StoryItem
}

func (*FoundStory) CRC

func (*FoundStory) CRC() uint32

type FragmentCollectibleInfo

type FragmentCollectibleInfo struct {
	PurchaseDate   int32
	Currency       string
	Amount         int64
	CryptoCurrency string
	CryptoAmount   int64
	URL            string
}

func (*FragmentCollectibleInfo) CRC

type FragmentGetCollectibleInfoParams

type FragmentGetCollectibleInfoParams struct {
	Collectible InputCollectible
}

func (*FragmentGetCollectibleInfoParams) CRC

type Game

type Game struct {
	ID          int64
	AccessHash  int64
	ShortName   string
	Title       string
	Description string
	Photo       Photo
	Document    Document `tl:"flag:0"`
}

Indicates an already sent game

func (*Game) CRC

func (*Game) CRC() uint32

func (*Game) FlagIndex

func (*Game) FlagIndex() int

type GeoPoint

type GeoPoint interface {
	tl.Object
	ImplementsGeoPoint()
}

type GeoPointAddress

type GeoPointAddress struct {
	CountryIso2 string
	State       string `tl:"flag:0"`
	City        string `tl:"flag:1"`
	Street      string `tl:"flag:2"`
}

func (*GeoPointAddress) CRC

func (*GeoPointAddress) CRC() uint32

func (*GeoPointAddress) FlagIndex

func (*GeoPointAddress) FlagIndex() int

type GeoPointEmpty

type GeoPointEmpty struct{}

Empty constructor.

func (*GeoPointEmpty) CRC

func (*GeoPointEmpty) CRC() uint32

func (*GeoPointEmpty) ImplementsGeoPoint

func (*GeoPointEmpty) ImplementsGeoPoint()

type GeoPointObj

type GeoPointObj struct {
	Long           float64
	Lat            float64
	AccessHash     int64
	AccuracyRadius int32 `tl:"flag:0"`
}

GeoPoint.

func (*GeoPointObj) CRC

func (*GeoPointObj) CRC() uint32

func (*GeoPointObj) FlagIndex

func (*GeoPointObj) FlagIndex() int

func (*GeoPointObj) ImplementsGeoPoint

func (*GeoPointObj) ImplementsGeoPoint()

type GlobalPrivacySettings

type GlobalPrivacySettings struct {
	ArchiveAndMuteNewNoncontactPeers bool `tl:"flag:0,encoded_in_bitflags"`
	KeepArchivedUnmuted              bool `tl:"flag:1,encoded_in_bitflags"`
	KeepArchivedFolders              bool `tl:"flag:2,encoded_in_bitflags"`
	HideReadMarks                    bool `tl:"flag:3,encoded_in_bitflags"`
	NewNoncontactPeersRequirePremium bool `tl:"flag:4,encoded_in_bitflags"`
}

Global privacy settings

func (*GlobalPrivacySettings) CRC

func (*GlobalPrivacySettings) FlagIndex

func (*GlobalPrivacySettings) FlagIndex() int

type GroupCall

type GroupCall interface {
	tl.Object
	ImplementsGroupCall()
}

type GroupCallDiscarded

type GroupCallDiscarded struct {
	ID         int64
	AccessHash int64
	Duration   int32
}

An ended group call

func (*GroupCallDiscarded) CRC

func (*GroupCallDiscarded) CRC() uint32

func (*GroupCallDiscarded) ImplementsGroupCall

func (*GroupCallDiscarded) ImplementsGroupCall()

type GroupCallObj

type GroupCallObj struct {
	JoinMuted               bool `tl:"flag:1,encoded_in_bitflags"`
	CanChangeJoinMuted      bool `tl:"flag:2,encoded_in_bitflags"`
	JoinDateAsc             bool `tl:"flag:6,encoded_in_bitflags"`
	ScheduleStartSubscribed bool `tl:"flag:8,encoded_in_bitflags"`
	CanStartVideo           bool `tl:"flag:9,encoded_in_bitflags"`
	RecordVideoActive       bool `tl:"flag:11,encoded_in_bitflags"`
	RtmpStream              bool `tl:"flag:12,encoded_in_bitflags"`
	ListenersHidden         bool `tl:"flag:13,encoded_in_bitflags"`
	ID                      int64
	AccessHash              int64
	ParticipantsCount       int32
	Title                   string `tl:"flag:3"`
	StreamDcID              int32  `tl:"flag:4"`
	RecordStartDate         int32  `tl:"flag:5"`
	ScheduleDate            int32  `tl:"flag:7"`
	UnmutedVideoCount       int32  `tl:"flag:10"`
	UnmutedVideoLimit       int32
	Version                 int32
}

Info about a group call or livestream

func (*GroupCallObj) CRC

func (*GroupCallObj) CRC() uint32

func (*GroupCallObj) FlagIndex

func (*GroupCallObj) FlagIndex() int

func (*GroupCallObj) ImplementsGroupCall

func (*GroupCallObj) ImplementsGroupCall()

type GroupCallParticipant

type GroupCallParticipant struct {
	Muted           bool `tl:"flag:0,encoded_in_bitflags"`
	Left            bool `tl:"flag:1,encoded_in_bitflags"`
	CanSelfUnmute   bool `tl:"flag:2,encoded_in_bitflags"`
	JustJoined      bool `tl:"flag:4,encoded_in_bitflags"`
	Versioned       bool `tl:"flag:5,encoded_in_bitflags"`
	Min             bool `tl:"flag:8,encoded_in_bitflags"`
	MutedByYou      bool `tl:"flag:9,encoded_in_bitflags"`
	VolumeByAdmin   bool `tl:"flag:10,encoded_in_bitflags"`
	Self            bool `tl:"flag:12,encoded_in_bitflags"`
	VideoJoined     bool `tl:"flag:15,encoded_in_bitflags"`
	Peer            Peer
	Date            int32
	ActiveDate      int32 `tl:"flag:3"`
	Source          int32
	Volume          int32                      `tl:"flag:7"`
	About           string                     `tl:"flag:11"`
	RaiseHandRating int64                      `tl:"flag:13"`
	Video           *GroupCallParticipantVideo `tl:"flag:6"`
	Presentation    *GroupCallParticipantVideo `tl:"flag:14"`
}

Info about a group call participant

func (*GroupCallParticipant) CRC

func (*GroupCallParticipant) FlagIndex

func (*GroupCallParticipant) FlagIndex() int

type GroupCallParticipantVideo

type GroupCallParticipantVideo struct {
	Paused       bool `tl:"flag:0,encoded_in_bitflags"`
	Endpoint     string
	SourceGroups []*GroupCallParticipantVideoSourceGroup
	AudioSource  int32 `tl:"flag:1"`
}

Info about a video stream

func (*GroupCallParticipantVideo) CRC

func (*GroupCallParticipantVideo) FlagIndex

func (*GroupCallParticipantVideo) FlagIndex() int

type GroupCallParticipantVideoSourceGroup

type GroupCallParticipantVideoSourceGroup struct {
	Semantics string
	Sources   []int32
}

Describes a group of video synchronization source identifiers

func (*GroupCallParticipantVideoSourceGroup) CRC

type GroupCallStreamChannel

type GroupCallStreamChannel struct {
	Channel         int32
	Scale           int32
	LastTimestampMs int64
}

Info about an RTMP stream in a group call or livestream

func (*GroupCallStreamChannel) CRC

type Handle

type Handle interface {
	SetGroup(group string) Handle
	GetGroup() string
}

type HelpAcceptTermsOfServiceParams

type HelpAcceptTermsOfServiceParams struct {
	ID *DataJson
}

func (*HelpAcceptTermsOfServiceParams) CRC

type HelpAppConfig

type HelpAppConfig interface {
	tl.Object
	ImplementsHelpAppConfig()
}

type HelpAppConfigNotModified

type HelpAppConfigNotModified struct{}

The client configuration parameters haven't changed

func (*HelpAppConfigNotModified) CRC

func (*HelpAppConfigNotModified) ImplementsHelpAppConfig

func (*HelpAppConfigNotModified) ImplementsHelpAppConfig()

type HelpAppConfigObj

type HelpAppConfigObj struct {
	Hash   int32
	Config JsonValue
}

Contains various [client configuration parameters](https://core.telegram.org/api/config#client-configuration)

func (*HelpAppConfigObj) CRC

func (*HelpAppConfigObj) CRC() uint32

func (*HelpAppConfigObj) ImplementsHelpAppConfig

func (*HelpAppConfigObj) ImplementsHelpAppConfig()

type HelpAppUpdate

type HelpAppUpdate interface {
	tl.Object
	ImplementsHelpAppUpdate()
}

type HelpAppUpdateObj

type HelpAppUpdateObj struct {
	CanNotSkip bool `tl:"flag:0,encoded_in_bitflags"`
	ID         int32
	Version    string
	Text       string
	Entities   []MessageEntity
	Document   Document `tl:"flag:1"`
	URL        string   `tl:"flag:2"`
	Sticker    Document `tl:"flag:3"`
}

An update is available for the application.

func (*HelpAppUpdateObj) CRC

func (*HelpAppUpdateObj) CRC() uint32

func (*HelpAppUpdateObj) FlagIndex

func (*HelpAppUpdateObj) FlagIndex() int

func (*HelpAppUpdateObj) ImplementsHelpAppUpdate

func (*HelpAppUpdateObj) ImplementsHelpAppUpdate()

type HelpCountriesList

type HelpCountriesList interface {
	tl.Object
	ImplementsHelpCountriesList()
}

type HelpCountriesListNotModified

type HelpCountriesListNotModified struct{}

The country list has not changed

func (*HelpCountriesListNotModified) CRC

func (*HelpCountriesListNotModified) ImplementsHelpCountriesList

func (*HelpCountriesListNotModified) ImplementsHelpCountriesList()

type HelpCountriesListObj

type HelpCountriesListObj struct {
	Countries []*HelpCountry
	Hash      int32
}

Name, ISO code, localized name and phone codes/patterns of all available countries

func (*HelpCountriesListObj) CRC

func (*HelpCountriesListObj) ImplementsHelpCountriesList

func (*HelpCountriesListObj) ImplementsHelpCountriesList()

type HelpCountry

type HelpCountry struct {
	Hidden       bool `tl:"flag:0,encoded_in_bitflags"`
	Iso2         string
	DefaultName  string
	Name         string `tl:"flag:1"`
	CountryCodes []*HelpCountryCode
}

Name, ISO code, localized name and phone codes/patterns of a specific country

func (*HelpCountry) CRC

func (*HelpCountry) CRC() uint32

func (*HelpCountry) FlagIndex

func (*HelpCountry) FlagIndex() int

type HelpCountryCode

type HelpCountryCode struct {
	CountryCode string
	Prefixes    []string `tl:"flag:0"`
	Patterns    []string `tl:"flag:1"`
}

Country code and phone number pattern of a specific country

func (*HelpCountryCode) CRC

func (*HelpCountryCode) CRC() uint32

func (*HelpCountryCode) FlagIndex

func (*HelpCountryCode) FlagIndex() int

type HelpDeepLinkInfo

type HelpDeepLinkInfo interface {
	tl.Object
	ImplementsHelpDeepLinkInfo()
}

type HelpDeepLinkInfoEmpty

type HelpDeepLinkInfoEmpty struct{}

Deep link info empty

func (*HelpDeepLinkInfoEmpty) CRC

func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo

func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo()

type HelpDeepLinkInfoObj

type HelpDeepLinkInfoObj struct {
	UpdateApp bool `tl:"flag:0,encoded_in_bitflags"`
	Message   string
	Entities  []MessageEntity `tl:"flag:1"`
}

Deep link info, see [the here for more details](https://core.telegram.org/api/links#unsupported-links)

func (*HelpDeepLinkInfoObj) CRC

func (*HelpDeepLinkInfoObj) CRC() uint32

func (*HelpDeepLinkInfoObj) FlagIndex

func (*HelpDeepLinkInfoObj) FlagIndex() int

func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo

func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo()

type HelpDismissSuggestionParams

type HelpDismissSuggestionParams struct {
	Peer       InputPeer
	Suggestion string
}

func (*HelpDismissSuggestionParams) CRC

type HelpEditUserInfoParams

type HelpEditUserInfoParams struct {
	UserID   InputUser
	Message  string
	Entities []MessageEntity
}

func (*HelpEditUserInfoParams) CRC

type HelpGetAppConfigParams

type HelpGetAppConfigParams struct {
	Hash int32
}

func (*HelpGetAppConfigParams) CRC

type HelpGetAppUpdateParams

type HelpGetAppUpdateParams struct {
	Source string
}

func (*HelpGetAppUpdateParams) CRC

type HelpGetCdnConfigParams

type HelpGetCdnConfigParams struct{}

func (*HelpGetCdnConfigParams) CRC

type HelpGetConfigParams

type HelpGetConfigParams struct{}

func (*HelpGetConfigParams) CRC

func (*HelpGetConfigParams) CRC() uint32

type HelpGetCountriesListParams

type HelpGetCountriesListParams struct {
	LangCode string
	Hash     int32
}

func (*HelpGetCountriesListParams) CRC

type HelpGetDeepLinkInfoParams

type HelpGetDeepLinkInfoParams struct {
	Path string
}

func (*HelpGetDeepLinkInfoParams) CRC

type HelpGetInviteTextParams

type HelpGetInviteTextParams struct{}

func (*HelpGetInviteTextParams) CRC

type HelpGetNearestDcParams

type HelpGetNearestDcParams struct{}

func (*HelpGetNearestDcParams) CRC

type HelpGetPassportConfigParams

type HelpGetPassportConfigParams struct {
	Hash int32
}

func (*HelpGetPassportConfigParams) CRC

type HelpGetPeerColorsParams

type HelpGetPeerColorsParams struct {
	Hash int32
}

func (*HelpGetPeerColorsParams) CRC

type HelpGetPeerProfileColorsParams

type HelpGetPeerProfileColorsParams struct {
	Hash int32
}

func (*HelpGetPeerProfileColorsParams) CRC

type HelpGetPremiumPromoParams

type HelpGetPremiumPromoParams struct{}

func (*HelpGetPremiumPromoParams) CRC

type HelpGetPromoDataParams

type HelpGetPromoDataParams struct{}

func (*HelpGetPromoDataParams) CRC

type HelpGetRecentMeUrlsParams

type HelpGetRecentMeUrlsParams struct {
	Referer string
}

func (*HelpGetRecentMeUrlsParams) CRC

type HelpGetSupportNameParams

type HelpGetSupportNameParams struct{}

func (*HelpGetSupportNameParams) CRC

type HelpGetSupportParams

type HelpGetSupportParams struct{}

func (*HelpGetSupportParams) CRC

type HelpGetTermsOfServiceUpdateParams

type HelpGetTermsOfServiceUpdateParams struct{}

func (*HelpGetTermsOfServiceUpdateParams) CRC

type HelpGetTimezonesListParams

type HelpGetTimezonesListParams struct {
	Hash int32
}

func (*HelpGetTimezonesListParams) CRC

type HelpGetUserInfoParams

type HelpGetUserInfoParams struct {
	UserID InputUser
}

func (*HelpGetUserInfoParams) CRC

type HelpHidePromoDataParams

type HelpHidePromoDataParams struct {
	Peer InputPeer
}

func (*HelpHidePromoDataParams) CRC

type HelpInviteText

type HelpInviteText struct {
	Message string
}

Text of a text message with an invitation to install Telegram.

func (*HelpInviteText) CRC

func (*HelpInviteText) CRC() uint32

type HelpNoAppUpdate

type HelpNoAppUpdate struct{}

No updates are available for the application.

func (*HelpNoAppUpdate) CRC

func (*HelpNoAppUpdate) CRC() uint32

func (*HelpNoAppUpdate) ImplementsHelpAppUpdate

func (*HelpNoAppUpdate) ImplementsHelpAppUpdate()

type HelpPassportConfig

type HelpPassportConfig interface {
	tl.Object
	ImplementsHelpPassportConfig()
}

type HelpPassportConfigNotModified

type HelpPassportConfigNotModified struct{}

Password configuration not modified

func (*HelpPassportConfigNotModified) CRC

func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig

func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig()

type HelpPassportConfigObj

type HelpPassportConfigObj struct {
	Hash           int32
	CountriesLangs *DataJson
}

Telegram [passport](https://core.telegram.org/passport) configuration

func (*HelpPassportConfigObj) CRC

func (*HelpPassportConfigObj) ImplementsHelpPassportConfig

func (*HelpPassportConfigObj) ImplementsHelpPassportConfig()

type HelpPeerColorOption

type HelpPeerColorOption struct {
	Hidden          bool `tl:"flag:0,encoded_in_bitflags"`
	ColorID         int32
	Colors          HelpPeerColorSet `tl:"flag:1"`
	DarkColors      HelpPeerColorSet `tl:"flag:2"`
	ChannelMinLevel int32            `tl:"flag:3"`
	GroupMinLevel   int32            `tl:"flag:4"`
}

Contains info about a [color palette »](https://core.telegram.org/api/colors).

func (*HelpPeerColorOption) CRC

func (*HelpPeerColorOption) CRC() uint32

func (*HelpPeerColorOption) FlagIndex

func (*HelpPeerColorOption) FlagIndex() int

type HelpPeerColorProfileSet

type HelpPeerColorProfileSet struct {
	PaletteColors []int32
	BgColors      []int32
	StoryColors   []int32
}

Represents a [color palette that can be used in profile pages »](https://core.telegram.org/api/colors).

func (*HelpPeerColorProfileSet) CRC

func (*HelpPeerColorProfileSet) ImplementsHelpPeerColorSet

func (*HelpPeerColorProfileSet) ImplementsHelpPeerColorSet()

type HelpPeerColorSet

type HelpPeerColorSet interface {
	tl.Object
	ImplementsHelpPeerColorSet()
}

type HelpPeerColorSetObj

type HelpPeerColorSetObj struct {
	Colors []int32
}

Represents a [color palette that can be used in message accents »](https://core.telegram.org/api/colors).

func (*HelpPeerColorSetObj) CRC

func (*HelpPeerColorSetObj) CRC() uint32

func (*HelpPeerColorSetObj) ImplementsHelpPeerColorSet

func (*HelpPeerColorSetObj) ImplementsHelpPeerColorSet()

type HelpPeerColors

type HelpPeerColors interface {
	tl.Object
	ImplementsHelpPeerColors()
}

type HelpPeerColorsNotModified

type HelpPeerColorsNotModified struct{}

The list of color palettes has not changed.

func (*HelpPeerColorsNotModified) CRC

func (*HelpPeerColorsNotModified) ImplementsHelpPeerColors

func (*HelpPeerColorsNotModified) ImplementsHelpPeerColors()

type HelpPeerColorsObj

type HelpPeerColorsObj struct {
	Hash   int32
	Colors []*HelpPeerColorOption
}

Contains info about multiple [color palettes »](https://core.telegram.org/api/colors).

func (*HelpPeerColorsObj) CRC

func (*HelpPeerColorsObj) CRC() uint32

func (*HelpPeerColorsObj) ImplementsHelpPeerColors

func (*HelpPeerColorsObj) ImplementsHelpPeerColors()

type HelpPremiumPromo

type HelpPremiumPromo struct {
	StatusText     string
	StatusEntities []MessageEntity
	VideoSections  []string
	Videos         []Document
	PeriodOptions  []*PremiumSubscriptionOption
	Users          []User
}

Telegram Premium promotion information

func (*HelpPremiumPromo) CRC

func (*HelpPremiumPromo) CRC() uint32

type HelpPromoData

type HelpPromoData interface {
	tl.Object
	ImplementsHelpPromoData()
}

type HelpPromoDataEmpty

type HelpPromoDataEmpty struct {
	Expires int32
}

No PSA/MTProxy info is available

func (*HelpPromoDataEmpty) CRC

func (*HelpPromoDataEmpty) CRC() uint32

func (*HelpPromoDataEmpty) ImplementsHelpPromoData

func (*HelpPromoDataEmpty) ImplementsHelpPromoData()

type HelpPromoDataObj

type HelpPromoDataObj struct {
	Proxy      bool `tl:"flag:0,encoded_in_bitflags"`
	Expires    int32
	Peer       Peer
	Chats      []Chat
	Users      []User
	PsaType    string `tl:"flag:1"`
	PsaMessage string `tl:"flag:2"`
}

MTProxy/Public Service Announcement information

func (*HelpPromoDataObj) CRC

func (*HelpPromoDataObj) CRC() uint32

func (*HelpPromoDataObj) FlagIndex

func (*HelpPromoDataObj) FlagIndex() int

func (*HelpPromoDataObj) ImplementsHelpPromoData

func (*HelpPromoDataObj) ImplementsHelpPromoData()

type HelpRecentMeUrls

type HelpRecentMeUrls struct {
	Urls  []RecentMeURL
	Chats []Chat
	Users []User
}

Recent t.me URLs

func (*HelpRecentMeUrls) CRC

func (*HelpRecentMeUrls) CRC() uint32

type HelpSaveAppLogParams

type HelpSaveAppLogParams struct {
	Events []*InputAppEvent
}

func (*HelpSaveAppLogParams) CRC

type HelpSetBotUpdatesStatusParams

type HelpSetBotUpdatesStatusParams struct {
	PendingUpdatesCount int32
	Message             string
}

func (*HelpSetBotUpdatesStatusParams) CRC

type HelpSupport

type HelpSupport struct {
	PhoneNumber string
	User        User
}

Info on support user.

func (*HelpSupport) CRC

func (*HelpSupport) CRC() uint32

type HelpSupportName

type HelpSupportName struct {
	Name string
}

Localized name for telegram support

func (*HelpSupportName) CRC

func (*HelpSupportName) CRC() uint32

type HelpTermsOfService

type HelpTermsOfService struct {
	Popup         bool `tl:"flag:0,encoded_in_bitflags"`
	ID            *DataJson
	Text          string
	Entities      []MessageEntity
	MinAgeConfirm int32 `tl:"flag:1"`
}

Info about the latest telegram Terms Of Service

func (*HelpTermsOfService) CRC

func (*HelpTermsOfService) CRC() uint32

func (*HelpTermsOfService) FlagIndex

func (*HelpTermsOfService) FlagIndex() int

type HelpTermsOfServiceUpdate

type HelpTermsOfServiceUpdate interface {
	tl.Object
	ImplementsHelpTermsOfServiceUpdate()
}

type HelpTermsOfServiceUpdateEmpty

type HelpTermsOfServiceUpdateEmpty struct {
	Expires int32
}

No changes were made to telegram's terms of service

func (*HelpTermsOfServiceUpdateEmpty) CRC

func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate

func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate()

type HelpTermsOfServiceUpdateObj

type HelpTermsOfServiceUpdateObj struct {
	Expires        int32
	TermsOfService *HelpTermsOfService
}

Info about an update of telegram's terms of service. If the terms of service are declined, then the [account.deleteAccount](https://core.telegram.org/method/account.deleteAccount) method should be called with the reason "Decline ToS update"

func (*HelpTermsOfServiceUpdateObj) CRC

func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate

func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate()

type HelpTimezonesList

type HelpTimezonesList interface {
	tl.Object
	ImplementsHelpTimezonesList()
}

type HelpTimezonesListNotModified

type HelpTimezonesListNotModified struct{}

func (*HelpTimezonesListNotModified) CRC

func (*HelpTimezonesListNotModified) ImplementsHelpTimezonesList

func (*HelpTimezonesListNotModified) ImplementsHelpTimezonesList()

type HelpTimezonesListObj

type HelpTimezonesListObj struct {
	Timezones []*Timezone
	Hash      int32
}

func (*HelpTimezonesListObj) CRC

func (*HelpTimezonesListObj) ImplementsHelpTimezonesList

func (*HelpTimezonesListObj) ImplementsHelpTimezonesList()

type HelpUserInfo

type HelpUserInfo interface {
	tl.Object
	ImplementsHelpUserInfo()
}

type HelpUserInfoEmpty

type HelpUserInfoEmpty struct{}

Internal use

func (*HelpUserInfoEmpty) CRC

func (*HelpUserInfoEmpty) CRC() uint32

func (*HelpUserInfoEmpty) ImplementsHelpUserInfo

func (*HelpUserInfoEmpty) ImplementsHelpUserInfo()

type HelpUserInfoObj

type HelpUserInfoObj struct {
	Message  string
	Entities []MessageEntity
	Author   string
	Date     int32
}

Internal use

func (*HelpUserInfoObj) CRC

func (*HelpUserInfoObj) CRC() uint32

func (*HelpUserInfoObj) ImplementsHelpUserInfo

func (*HelpUserInfoObj) ImplementsHelpUserInfo()

type HighScore

type HighScore struct {
	Pos    int32
	UserID int64
	Score  int32
}

Game highscore

func (*HighScore) CRC

func (*HighScore) CRC() uint32

type HistoryOption

type HistoryOption struct {
	Limit  int32
	Offset int32
}

type ImportedContact

type ImportedContact struct {
	UserID   int64
	ClientID int64
}

Successfully imported contact.

func (*ImportedContact) CRC

func (*ImportedContact) CRC() uint32

type InitConnectionParams

type InitConnectionParams struct {
	ApiID          int32             // Application identifier (see. App configuration)
	DeviceModel    string            // Device model
	SystemVersion  string            // Operation system version
	AppVersion     string            // Application version
	SystemLangCode string            // Code for the language used on the device's OS, ISO 639-1 standard
	LangPack       string            // Language pack to use
	LangCode       string            // Code for the language used on the client, ISO 639-1 standard
	Proxy          *InputClientProxy `tl:"flag:0"` // Info about an MTProto proxy
	Params         JsonValue         `tl:"flag:1"` // Additional initConnection parameters. For now, only the tz_offset field is supported, for specifying timezone offset in seconds.
	Query          tl.Object         // The query itself
}

func (*InitConnectionParams) CRC

func (*InitConnectionParams) FlagIndex

func (*InitConnectionParams) FlagIndex() int

type InlineBotSwitchPm

type InlineBotSwitchPm struct {
	Text       string
	StartParam string
}

The bot requested the user to message them in private

func (*InlineBotSwitchPm) CRC

func (*InlineBotSwitchPm) CRC() uint32

type InlineBotWebView

type InlineBotWebView struct {
	Text string
	URL  string
}

Specifies an [inline mode mini app](https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps) button, shown on top of the inline query results list.

func (*InlineBotWebView) CRC

func (*InlineBotWebView) CRC() uint32

type InlineBuilder

type InlineBuilder struct {
	Client        *Client
	QueryID       int64
	InlineResults []InputBotInlineResult
}

func (*InlineBuilder) Article

func (b *InlineBuilder) Article(title, description, text string, options ...*ArticleOptions) InputBotInlineResult

func (*InlineBuilder) Document

func (b *InlineBuilder) Document(document interface{}, options ...*ArticleOptions) InputBotInlineResult

func (*InlineBuilder) Game

func (b *InlineBuilder) Game(ID, ShortName string, options ...*ArticleOptions) InputBotInlineResult

func (*InlineBuilder) Photo

func (b *InlineBuilder) Photo(photo interface{}, options ...*ArticleOptions) InputBotInlineResult

func (*InlineBuilder) Results

func (b *InlineBuilder) Results() []InputBotInlineResult

type InlineCallbackHandler

type InlineCallbackHandler func(m *InlineCallbackQuery) error

type InlineCallbackQuery

type InlineCallbackQuery struct {
	QueryID        int64
	Data           []byte
	OriginalUpdate *UpdateInlineBotCallbackQuery
	Sender         *UserObj
	MsgID          InputBotInlineMessageID
	SenderID       int64
	ChatInstance   int64
	Client         *Client
	GameShortName  string
}

func (*InlineCallbackQuery) Answer

func (b *InlineCallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)

func (*InlineCallbackQuery) ChatType

func (b *InlineCallbackQuery) ChatType() string

func (*InlineCallbackQuery) DataString

func (b *InlineCallbackQuery) DataString() string

func (*InlineCallbackQuery) Edit

func (b *InlineCallbackQuery) Edit(Text interface{}, options ...*SendOptions) (*NewMessage, error)

func (*InlineCallbackQuery) GetSender

func (b *InlineCallbackQuery) GetSender() (*UserObj, error)

func (*InlineCallbackQuery) GetSenderID

func (b *InlineCallbackQuery) GetSenderID() int64

func (*InlineCallbackQuery) IsChannel

func (b *InlineCallbackQuery) IsChannel() bool

func (*InlineCallbackQuery) IsGroup

func (b *InlineCallbackQuery) IsGroup() bool

func (*InlineCallbackQuery) IsPrivate

func (b *InlineCallbackQuery) IsPrivate() bool

func (*InlineCallbackQuery) Marshal

func (b *InlineCallbackQuery) Marshal(nointent ...bool) string

func (*InlineCallbackQuery) ShortName

func (b *InlineCallbackQuery) ShortName() string

type InlineHandler

type InlineHandler func(m *InlineQuery) error

type InlineOptions

type InlineOptions struct {
	Dialog   interface{}
	Offset   int32
	Query    string
	GeoPoint InputGeoPoint
}

type InlineQuery

type InlineQuery struct {
	QueryID        int64
	Query          string
	OriginalUpdate *UpdateBotInlineQuery
	Sender         *UserObj
	SenderID       int64
	Offset         string
	PeerType       InlineQueryPeerType
	Client         *Client
}

func (*InlineQuery) Answer

func (b *InlineQuery) Answer(results []InputBotInlineResult, options ...InlineSendOptions) (bool, error)

func (*InlineQuery) Args

func (m *InlineQuery) Args() string

func (*InlineQuery) Builder

func (b *InlineQuery) Builder() *InlineBuilder

func (*InlineQuery) IsChannel

func (b *InlineQuery) IsChannel() bool

func (*InlineQuery) IsGroup

func (b *InlineQuery) IsGroup() bool

func (*InlineQuery) IsPrivate

func (b *InlineQuery) IsPrivate() bool

func (*InlineQuery) Marshal

func (b *InlineQuery) Marshal(nointent ...bool) string

type InlineQueryPeerType

type InlineQueryPeerType uint32
const (
	InlineQueryPeerTypeBotPm     InlineQueryPeerType = 0xe3b2d0c
	InlineQueryPeerTypeBroadcast InlineQueryPeerType = 0x6334ee9a
	InlineQueryPeerTypeChat      InlineQueryPeerType = 0xd766c50a
	InlineQueryPeerTypeMegagroup InlineQueryPeerType = 0x5ec4be43
	InlineQueryPeerTypePm        InlineQueryPeerType = 0x833c0fac
	InlineQueryPeerTypeSameBotPm InlineQueryPeerType = 0x3081ed9d
)

func (InlineQueryPeerType) CRC

func (e InlineQueryPeerType) CRC() uint32

func (InlineQueryPeerType) String

func (e InlineQueryPeerType) String() string

type InlineSendOptions

type InlineSendOptions struct {
	Gallery      bool   `json:"gallery,omitempty"`
	NextOffset   string `json:"next_offset,omitempty"`
	CacheTime    int32  `json:"cache_time,omitempty"`
	Private      bool   `json:"private,omitempty"`
	SwitchPm     string `json:"switch_pm,omitempty"`
	SwitchPmText string `json:"switch_pm_text,omitempty"`
}

type InputAppEvent

type InputAppEvent struct {
	Time float64
	Type string
	Peer int64
	Data JsonValue
}

Event that occurred in the application.

func (*InputAppEvent) CRC

func (*InputAppEvent) CRC() uint32

type InputBotApp

type InputBotApp interface {
	tl.Object
	ImplementsInputBotApp()
}

type InputBotAppID

type InputBotAppID struct {
	ID         int64
	AccessHash int64
}

Used to fetch information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps) by its ID

func (*InputBotAppID) CRC

func (*InputBotAppID) CRC() uint32

func (*InputBotAppID) ImplementsInputBotApp

func (*InputBotAppID) ImplementsInputBotApp()

type InputBotAppShortName

type InputBotAppShortName struct {
	BotID     InputUser
	ShortName string
}

Used to fetch information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps) by its short name

func (*InputBotAppShortName) CRC

func (*InputBotAppShortName) ImplementsInputBotApp

func (*InputBotAppShortName) ImplementsInputBotApp()

type InputBotInlineMessage

type InputBotInlineMessage interface {
	tl.Object
	ImplementsInputBotInlineMessage()
}

type InputBotInlineMessageGame

type InputBotInlineMessageGame struct {
	ReplyMarkup ReplyMarkup `tl:"flag:2"`
}

A game

func (*InputBotInlineMessageGame) CRC

func (*InputBotInlineMessageGame) FlagIndex

func (*InputBotInlineMessageGame) FlagIndex() int

func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage()

type InputBotInlineMessageID

type InputBotInlineMessageID interface {
	tl.Object
	ImplementsInputBotInlineMessageID()
}

type InputBotInlineMessageID64

type InputBotInlineMessageID64 struct {
	DcID       int32
	OwnerID    int64
	ID         int32
	AccessHash int64
}

Represents a sent inline message from the perspective of a bot

func (*InputBotInlineMessageID64) CRC

func (*InputBotInlineMessageID64) ImplementsInputBotInlineMessageID

func (*InputBotInlineMessageID64) ImplementsInputBotInlineMessageID()

type InputBotInlineMessageIDObj

type InputBotInlineMessageIDObj struct {
	DcID       int32
	ID         int64
	AccessHash int64
}

Represents a sent inline message from the perspective of a bot (legacy constructor)

func (*InputBotInlineMessageIDObj) CRC

func (*InputBotInlineMessageIDObj) ImplementsInputBotInlineMessageID

func (*InputBotInlineMessageIDObj) ImplementsInputBotInlineMessageID()

type InputBotInlineMessageMediaAuto

type InputBotInlineMessageMediaAuto struct {
	InvertMedia bool `tl:"flag:3,encoded_in_bitflags"`
	Message     string
	Entities    []MessageEntity `tl:"flag:1"`
	ReplyMarkup ReplyMarkup     `tl:"flag:2"`
}

A media

func (*InputBotInlineMessageMediaAuto) CRC

func (*InputBotInlineMessageMediaAuto) FlagIndex

func (*InputBotInlineMessageMediaAuto) FlagIndex() int

func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaContact

type InputBotInlineMessageMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	ReplyMarkup ReplyMarkup `tl:"flag:2"`
}

A contact

func (*InputBotInlineMessageMediaContact) CRC

func (*InputBotInlineMessageMediaContact) FlagIndex

func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaGeo

type InputBotInlineMessageMediaGeo struct {
	GeoPoint                    InputGeoPoint
	Heading                     int32       `tl:"flag:0"`
	Period                      int32       `tl:"flag:1"`
	ProximityNotificationRadius int32       `tl:"flag:3"`
	ReplyMarkup                 ReplyMarkup `tl:"flag:2"`
}

Geolocation

func (*InputBotInlineMessageMediaGeo) CRC

func (*InputBotInlineMessageMediaGeo) FlagIndex

func (*InputBotInlineMessageMediaGeo) FlagIndex() int

func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaInvoice

type InputBotInlineMessageMediaInvoice struct {
	Title        string
	Description  string
	Photo        *InputWebDocument `tl:"flag:0"`
	Invoice      *Invoice
	Payload      []byte
	Provider     string
	ProviderData *DataJson
	ReplyMarkup  ReplyMarkup `tl:"flag:2"`
}

An invoice

func (*InputBotInlineMessageMediaInvoice) CRC

func (*InputBotInlineMessageMediaInvoice) FlagIndex

func (*InputBotInlineMessageMediaInvoice) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaInvoice) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaVenue

type InputBotInlineMessageMediaVenue struct {
	GeoPoint    InputGeoPoint
	Title       string
	Address     string
	Provider    string
	VenueID     string
	VenueType   string
	ReplyMarkup ReplyMarkup `tl:"flag:2"`
}

Venue

func (*InputBotInlineMessageMediaVenue) CRC

func (*InputBotInlineMessageMediaVenue) FlagIndex

func (*InputBotInlineMessageMediaVenue) FlagIndex() int

func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaWebPage

type InputBotInlineMessageMediaWebPage struct {
	InvertMedia     bool `tl:"flag:3,encoded_in_bitflags"`
	ForceLargeMedia bool `tl:"flag:4,encoded_in_bitflags"`
	ForceSmallMedia bool `tl:"flag:5,encoded_in_bitflags"`
	Optional        bool `tl:"flag:6,encoded_in_bitflags"`
	Message         string
	Entities        []MessageEntity `tl:"flag:1"`
	URL             string
	ReplyMarkup     ReplyMarkup `tl:"flag:2"`
}

Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.

func (*InputBotInlineMessageMediaWebPage) CRC

func (*InputBotInlineMessageMediaWebPage) FlagIndex

func (*InputBotInlineMessageMediaWebPage) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaWebPage) ImplementsInputBotInlineMessage()

type InputBotInlineMessageText

type InputBotInlineMessageText struct {
	NoWebpage   bool `tl:"flag:0,encoded_in_bitflags"`
	InvertMedia bool `tl:"flag:3,encoded_in_bitflags"`
	Message     string
	Entities    []MessageEntity `tl:"flag:1"`
	ReplyMarkup ReplyMarkup     `tl:"flag:2"`
}

Simple text message

func (*InputBotInlineMessageText) CRC

func (*InputBotInlineMessageText) FlagIndex

func (*InputBotInlineMessageText) FlagIndex() int

func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage()

type InputBotInlineResult

type InputBotInlineResult interface {
	tl.Object
	ImplementsInputBotInlineResult()
}

type InputBotInlineResultDocument

type InputBotInlineResultDocument struct {
	ID          string
	Type        string
	Title       string `tl:"flag:1"`
	Description string `tl:"flag:2"`
	Document    InputDocument
	SendMessage InputBotInlineMessage
}

Document (media of any type except for photos)

func (*InputBotInlineResultDocument) CRC

func (*InputBotInlineResultDocument) FlagIndex

func (*InputBotInlineResultDocument) FlagIndex() int

func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult

func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult()

type InputBotInlineResultGame

type InputBotInlineResultGame struct {
	ID          string
	ShortName   string
	SendMessage InputBotInlineMessage
}

Game

func (*InputBotInlineResultGame) CRC

func (*InputBotInlineResultGame) ImplementsInputBotInlineResult

func (*InputBotInlineResultGame) ImplementsInputBotInlineResult()

type InputBotInlineResultObj

type InputBotInlineResultObj struct {
	ID          string
	Type        string
	Title       string            `tl:"flag:1"`
	Description string            `tl:"flag:2"`
	URL         string            `tl:"flag:3"`
	Thumb       *InputWebDocument `tl:"flag:4"`
	Content     *InputWebDocument `tl:"flag:5"`
	SendMessage InputBotInlineMessage
}

An inline bot result

func (*InputBotInlineResultObj) CRC

func (*InputBotInlineResultObj) FlagIndex

func (*InputBotInlineResultObj) FlagIndex() int

func (*InputBotInlineResultObj) ImplementsInputBotInlineResult

func (*InputBotInlineResultObj) ImplementsInputBotInlineResult()

type InputBotInlineResultPhoto

type InputBotInlineResultPhoto struct {
	ID          string
	Type        string
	Photo       InputPhoto
	SendMessage InputBotInlineMessage
}

Photo

func (*InputBotInlineResultPhoto) CRC

func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult

func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult()

type InputBusinessAwayMessage

type InputBusinessAwayMessage struct {
	OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
	ShortcutID  int32
	Schedule    BusinessAwayMessageSchedule
	Recipients  *InputBusinessRecipients
}

func (*InputBusinessAwayMessage) CRC

func (*InputBusinessAwayMessage) FlagIndex

func (*InputBusinessAwayMessage) FlagIndex() int

type InputBusinessBotRecipients

type InputBusinessBotRecipients struct {
	ExistingChats   bool        `tl:"flag:0,encoded_in_bitflags"`
	NewChats        bool        `tl:"flag:1,encoded_in_bitflags"`
	Contacts        bool        `tl:"flag:2,encoded_in_bitflags"`
	NonContacts     bool        `tl:"flag:3,encoded_in_bitflags"`
	ExcludeSelected bool        `tl:"flag:5,encoded_in_bitflags"`
	Users           []InputUser `tl:"flag:4"`
	ExcludeUsers    []InputUser `tl:"flag:6"`
}

func (*InputBusinessBotRecipients) CRC

func (*InputBusinessBotRecipients) FlagIndex

func (*InputBusinessBotRecipients) FlagIndex() int
type InputBusinessChatLink struct {
	Message  string
	Entities []MessageEntity `tl:"flag:0"`
	Title    string          `tl:"flag:1"`
}

func (*InputBusinessChatLink) CRC

func (*InputBusinessChatLink) FlagIndex

func (*InputBusinessChatLink) FlagIndex() int

type InputBusinessGreetingMessage

type InputBusinessGreetingMessage struct {
	ShortcutID     int32
	Recipients     *InputBusinessRecipients
	NoActivityDays int32
}

func (*InputBusinessGreetingMessage) CRC

type InputBusinessIntro

type InputBusinessIntro struct {
	Title       string
	Description string
	Sticker     InputDocument `tl:"flag:0"`
}

func (*InputBusinessIntro) CRC

func (*InputBusinessIntro) CRC() uint32

func (*InputBusinessIntro) FlagIndex

func (*InputBusinessIntro) FlagIndex() int

type InputBusinessRecipients

type InputBusinessRecipients struct {
	ExistingChats   bool        `tl:"flag:0,encoded_in_bitflags"`
	NewChats        bool        `tl:"flag:1,encoded_in_bitflags"`
	Contacts        bool        `tl:"flag:2,encoded_in_bitflags"`
	NonContacts     bool        `tl:"flag:3,encoded_in_bitflags"`
	ExcludeSelected bool        `tl:"flag:5,encoded_in_bitflags"`
	Users           []InputUser `tl:"flag:4"`
}

func (*InputBusinessRecipients) CRC

func (*InputBusinessRecipients) FlagIndex

func (*InputBusinessRecipients) FlagIndex() int

type InputChannel

type InputChannel interface {
	tl.Object
	ImplementsInputChannel()
}

type InputChannelEmpty

type InputChannelEmpty struct{}

Represents the absence of a channel

func (*InputChannelEmpty) CRC

func (*InputChannelEmpty) CRC() uint32

func (*InputChannelEmpty) ImplementsInputChannel

func (*InputChannelEmpty) ImplementsInputChannel()

type InputChannelFromMessage

type InputChannelFromMessage struct {
	Peer      InputPeer
	MsgID     int32
	ChannelID int64
}

Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.

func (*InputChannelFromMessage) CRC

func (*InputChannelFromMessage) ImplementsInputChannel

func (*InputChannelFromMessage) ImplementsInputChannel()

type InputChannelObj

type InputChannelObj struct {
	ChannelID  int64
	AccessHash int64
}

Represents a channel

func (*InputChannelObj) CRC

func (*InputChannelObj) CRC() uint32

func (*InputChannelObj) ImplementsInputChannel

func (*InputChannelObj) ImplementsInputChannel()

type InputChatPhoto

type InputChatPhoto interface {
	tl.Object
	ImplementsInputChatPhoto()
}

type InputChatPhotoEmpty

type InputChatPhotoEmpty struct{}

Empty constructor, remove group photo.

func (*InputChatPhotoEmpty) CRC

func (*InputChatPhotoEmpty) CRC() uint32

func (*InputChatPhotoEmpty) ImplementsInputChatPhoto

func (*InputChatPhotoEmpty) ImplementsInputChatPhoto()

type InputChatPhotoObj

type InputChatPhotoObj struct {
	ID InputPhoto
}

Existing photo to be set as a chat profile photo.

func (*InputChatPhotoObj) CRC

func (*InputChatPhotoObj) CRC() uint32

func (*InputChatPhotoObj) ImplementsInputChatPhoto

func (*InputChatPhotoObj) ImplementsInputChatPhoto()

type InputChatUploadedPhoto

type InputChatUploadedPhoto struct {
	File             InputFile `tl:"flag:0"`
	Video            InputFile `tl:"flag:1"`
	VideoStartTs     float64   `tl:"flag:2"`
	VideoEmojiMarkup VideoSize `tl:"flag:3"`
}

New photo to be set as group profile photo.

func (*InputChatUploadedPhoto) CRC

func (*InputChatUploadedPhoto) FlagIndex

func (*InputChatUploadedPhoto) FlagIndex() int

func (*InputChatUploadedPhoto) ImplementsInputChatPhoto

func (*InputChatUploadedPhoto) ImplementsInputChatPhoto()

type InputChatlistDialogFilter

type InputChatlistDialogFilter struct {
	FilterID int32
}

Folder ID

func (*InputChatlistDialogFilter) CRC

type InputCheckPasswordEmpty

type InputCheckPasswordEmpty struct{}

There is no password

func (*InputCheckPasswordEmpty) CRC

func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP

func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP()

type InputCheckPasswordSRP

type InputCheckPasswordSRP interface {
	tl.Object
	ImplementsInputCheckPasswordSRP()
}

func GetInputCheckPassword

func GetInputCheckPassword(password string, accountPassword *AccountPassword) (InputCheckPasswordSRP, error)

type InputCheckPasswordSRPObj

type InputCheckPasswordSRPObj struct {
	SRPID int64
	A     []byte
	M1    []byte
}

Constructor for checking the validity of a 2FA SRP password (see [SRP](https://core.telegram.org/api/srp))

func (*InputCheckPasswordSRPObj) CRC

func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP

func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP()

type InputClientProxy

type InputClientProxy struct {
	Address string
	Port    int32
}

Info about an [MTProxy](https://core.telegram.org/mtproto/mtproto-transports#transport-obfuscation) used to connect.

func (*InputClientProxy) CRC

func (*InputClientProxy) CRC() uint32

type InputCollectible

type InputCollectible interface {
	tl.Object
	ImplementsInputCollectible()
}

type InputCollectiblePhone

type InputCollectiblePhone struct {
	Phone string
}

func (*InputCollectiblePhone) CRC

func (*InputCollectiblePhone) ImplementsInputCollectible

func (*InputCollectiblePhone) ImplementsInputCollectible()

type InputCollectibleUsername

type InputCollectibleUsername struct {
	Username string
}

func (*InputCollectibleUsername) CRC

func (*InputCollectibleUsername) ImplementsInputCollectible

func (*InputCollectibleUsername) ImplementsInputCollectible()

type InputDialogPeer

type InputDialogPeer interface {
	tl.Object
	ImplementsInputDialogPeer()
}

type InputDialogPeerFolder

type InputDialogPeerFolder struct {
	FolderID int32
}

All peers in a [peer folder](https://core.telegram.org/api/folders#peer-folders)

func (*InputDialogPeerFolder) CRC

func (*InputDialogPeerFolder) ImplementsInputDialogPeer

func (*InputDialogPeerFolder) ImplementsInputDialogPeer()

type InputDialogPeerObj

type InputDialogPeerObj struct {
	Peer InputPeer
}

A peer

func (*InputDialogPeerObj) CRC

func (*InputDialogPeerObj) CRC() uint32

func (*InputDialogPeerObj) ImplementsInputDialogPeer

func (*InputDialogPeerObj) ImplementsInputDialogPeer()

type InputDocument

type InputDocument interface {
	tl.Object
	ImplementsInputDocument()
}

type InputDocumentEmpty

type InputDocumentEmpty struct{}

Empty constructor.

func (*InputDocumentEmpty) CRC

func (*InputDocumentEmpty) CRC() uint32

func (*InputDocumentEmpty) ImplementsInputDocument

func (*InputDocumentEmpty) ImplementsInputDocument()

type InputDocumentFileLocation

type InputDocumentFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	ThumbSize     string
}

Document location (video, voice, audio, basically every type except photo)

func (*InputDocumentFileLocation) CRC

func (*InputDocumentFileLocation) ImplementsInputFileLocation

func (*InputDocumentFileLocation) ImplementsInputFileLocation()

type InputDocumentObj

type InputDocumentObj struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
}

Defines a document for subsequent interaction.

func (*InputDocumentObj) CRC

func (*InputDocumentObj) CRC() uint32

func (*InputDocumentObj) ImplementsInputDocument

func (*InputDocumentObj) ImplementsInputDocument()

type InputEncryptedChat

type InputEncryptedChat struct {
	ChatID     int32
	AccessHash int64
}

Creates an encrypted chat.

func (*InputEncryptedChat) CRC

func (*InputEncryptedChat) CRC() uint32

type InputEncryptedFile

type InputEncryptedFile interface {
	tl.Object
	ImplementsInputEncryptedFile()
}

type InputEncryptedFileBigUploaded

type InputEncryptedFileBigUploaded struct {
	ID             int64
	Parts          int32
	KeyFingerprint int32
}

Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart).

func (*InputEncryptedFileBigUploaded) CRC

func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile

func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile()

type InputEncryptedFileEmpty

type InputEncryptedFileEmpty struct{}

Empty constructor.

func (*InputEncryptedFileEmpty) CRC

func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile

func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile()

type InputEncryptedFileLocation

type InputEncryptedFileLocation struct {
	ID         int64
	AccessHash int64
}

Location of encrypted secret chat file.

func (*InputEncryptedFileLocation) CRC

func (*InputEncryptedFileLocation) ImplementsInputFileLocation

func (*InputEncryptedFileLocation) ImplementsInputFileLocation()

type InputEncryptedFileObj

type InputEncryptedFileObj struct {
	ID         int64
	AccessHash int64
}

Sets forwarded encrypted file for attachment.

func (*InputEncryptedFileObj) CRC

func (*InputEncryptedFileObj) ImplementsInputEncryptedFile

func (*InputEncryptedFileObj) ImplementsInputEncryptedFile()

type InputEncryptedFileUploaded

type InputEncryptedFileUploaded struct {
	ID             int64
	Parts          int32
	Md5Checksum    string
	KeyFingerprint int32
}

Sets new encrypted file saved by parts using upload.saveFilePart method.

func (*InputEncryptedFileUploaded) CRC

func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile

func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile()

type InputFile

type InputFile interface {
	tl.Object
	ImplementsInputFile()
}

type InputFileBig

type InputFileBig struct {
	ID    int64
	Parts int32
	Name  string
}

Assigns a big file (over 10 MB in size), saved in part using the method [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart).

func (*InputFileBig) CRC

func (*InputFileBig) CRC() uint32

func (*InputFileBig) ImplementsInputFile

func (*InputFileBig) ImplementsInputFile()

type InputFileLocation

type InputFileLocation interface {
	tl.Object
	ImplementsInputFileLocation()
}

func GetFileLocation

func GetFileLocation(file interface{}) (InputFileLocation, int32, int64, string, error)

GetFileLocation returns file location, datacenter, file size and file name

type InputFileLocationObj

type InputFileLocationObj struct {
	VolumeID      int64
	LocalID       int32
	Secret        int64
	FileReference []byte
}

DEPRECATED location of a photo

func (*InputFileLocationObj) CRC

func (*InputFileLocationObj) ImplementsInputFileLocation

func (*InputFileLocationObj) ImplementsInputFileLocation()

type InputFileObj

type InputFileObj struct {
	ID          int64
	Parts       int32
	Name        string
	Md5Checksum string
}

Defines a file saved in parts using the method [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart).

func (*InputFileObj) CRC

func (*InputFileObj) CRC() uint32

func (*InputFileObj) ImplementsInputFile

func (*InputFileObj) ImplementsInputFile()

type InputFileStoryDocument

type InputFileStoryDocument struct {
	ID InputDocument
}

func (*InputFileStoryDocument) CRC

func (*InputFileStoryDocument) ImplementsInputFile

func (*InputFileStoryDocument) ImplementsInputFile()

type InputFolderPeer

type InputFolderPeer struct {
	Peer     InputPeer
	FolderID int32
}

Peer in a folder

func (*InputFolderPeer) CRC

func (*InputFolderPeer) CRC() uint32

type InputGame

type InputGame interface {
	tl.Object
	ImplementsInputGame()
}

type InputGameID

type InputGameID struct {
	ID         int64
	AccessHash int64
}

Indicates an already sent game

func (*InputGameID) CRC

func (*InputGameID) CRC() uint32

func (*InputGameID) ImplementsInputGame

func (*InputGameID) ImplementsInputGame()

type InputGameShortName

type InputGameShortName struct {
	BotID     InputUser
	ShortName string
}

Game by short name

func (*InputGameShortName) CRC

func (*InputGameShortName) CRC() uint32

func (*InputGameShortName) ImplementsInputGame

func (*InputGameShortName) ImplementsInputGame()

type InputGeoPoint

type InputGeoPoint interface {
	tl.Object
	ImplementsInputGeoPoint()
}

type InputGeoPointEmpty

type InputGeoPointEmpty struct{}

Empty GeoPoint constructor.

func (*InputGeoPointEmpty) CRC

func (*InputGeoPointEmpty) CRC() uint32

func (*InputGeoPointEmpty) ImplementsInputGeoPoint

func (*InputGeoPointEmpty) ImplementsInputGeoPoint()

type InputGeoPointObj

type InputGeoPointObj struct {
	Lat            float64
	Long           float64
	AccuracyRadius int32 `tl:"flag:0"`
}

Defines a GeoPoint by its coordinates.

func (*InputGeoPointObj) CRC

func (*InputGeoPointObj) CRC() uint32

func (*InputGeoPointObj) FlagIndex

func (*InputGeoPointObj) FlagIndex() int

func (*InputGeoPointObj) ImplementsInputGeoPoint

func (*InputGeoPointObj) ImplementsInputGeoPoint()

type InputGroupCall

type InputGroupCall struct {
	ID         int64
	AccessHash int64
}

Points to a specific group call

func (*InputGroupCall) CRC

func (*InputGroupCall) CRC() uint32

type InputGroupCallStream

type InputGroupCallStream struct {
	Call         *InputGroupCall
	TimeMs       int64
	Scale        int32
	VideoChannel int32 `tl:"flag:0"`
	VideoQuality int32 `tl:"flag:0"`
}

Chunk of a livestream

func (*InputGroupCallStream) CRC

func (*InputGroupCallStream) FlagIndex

func (*InputGroupCallStream) FlagIndex() int

func (*InputGroupCallStream) ImplementsInputFileLocation

func (*InputGroupCallStream) ImplementsInputFileLocation()

type InputInvoice

type InputInvoice interface {
	tl.Object
	ImplementsInputInvoice()
}

type InputInvoiceChatInviteSubscription

type InputInvoiceChatInviteSubscription struct {
	Hash string
}

func (*InputInvoiceChatInviteSubscription) CRC

func (*InputInvoiceChatInviteSubscription) ImplementsInputInvoice

func (*InputInvoiceChatInviteSubscription) ImplementsInputInvoice()

type InputInvoiceMessage

type InputInvoiceMessage struct {
	Peer  InputPeer
	MsgID int32
}

An invoice contained in a [messageMediaInvoice](https://core.telegram.org/constructor/messageMediaInvoice) message.

func (*InputInvoiceMessage) CRC

func (*InputInvoiceMessage) CRC() uint32

func (*InputInvoiceMessage) ImplementsInputInvoice

func (*InputInvoiceMessage) ImplementsInputInvoice()

type InputInvoicePremiumGiftCode

type InputInvoicePremiumGiftCode struct {
	Purpose InputStorePaymentPurpose
	Option  *PremiumGiftCodeOption
}

Used if the user wishes to start a channel [giveaway](https://core.telegram.org/api/giveaways) or send some [giftcodes](https://core.telegram.org/api/giveaways) to members of a channel, in exchange for [boosts](https://core.telegram.org/api/boost).

func (*InputInvoicePremiumGiftCode) CRC

func (*InputInvoicePremiumGiftCode) ImplementsInputInvoice

func (*InputInvoicePremiumGiftCode) ImplementsInputInvoice()

type InputInvoiceSlug

type InputInvoiceSlug struct {
	Slug string
}

An invoice slug taken from an [invoice deep link](https://core.telegram.org/api/links#invoice-links) or from the <a href="/api/config#premium-invoice-slug">`premium_invoice_slug` app config parameter »</a>

func (*InputInvoiceSlug) CRC

func (*InputInvoiceSlug) CRC() uint32

func (*InputInvoiceSlug) ImplementsInputInvoice

func (*InputInvoiceSlug) ImplementsInputInvoice()

type InputInvoiceStars

type InputInvoiceStars struct {
	Purpose InputStorePaymentPurpose
}

func (*InputInvoiceStars) CRC

func (*InputInvoiceStars) CRC() uint32

func (*InputInvoiceStars) ImplementsInputInvoice

func (*InputInvoiceStars) ImplementsInputInvoice()

type InputKeyboardButtonRequestPeer

type InputKeyboardButtonRequestPeer struct {
	NameRequested     bool `tl:"flag:0,encoded_in_bitflags"`
	UsernameRequested bool `tl:"flag:1,encoded_in_bitflags"`
	PhotoRequested    bool `tl:"flag:2,encoded_in_bitflags"`
	Text              string
	ButtonID          int32
	PeerType          RequestPeerType
	MaxQuantity       int32
}

func (*InputKeyboardButtonRequestPeer) CRC

func (*InputKeyboardButtonRequestPeer) FlagIndex

func (*InputKeyboardButtonRequestPeer) FlagIndex() int

func (*InputKeyboardButtonRequestPeer) ImplementsKeyboardButton

func (*InputKeyboardButtonRequestPeer) ImplementsKeyboardButton()

type InputKeyboardButtonURLAuth

type InputKeyboardButtonURLAuth struct {
	RequestWriteAccess bool `tl:"flag:0,encoded_in_bitflags"`
	Text               string
	FwdText            string `tl:"flag:1"`
	URL                string
	Bot                InputUser
}

Button to request a user to [authorize](https://core.telegram.org/method/messages.acceptUrlAuth) via URL using [Seamless Telegram Login](https://core.telegram.orghttps://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots).

func (*InputKeyboardButtonURLAuth) CRC

func (*InputKeyboardButtonURLAuth) FlagIndex

func (*InputKeyboardButtonURLAuth) FlagIndex() int

func (*InputKeyboardButtonURLAuth) ImplementsKeyboardButton

func (*InputKeyboardButtonURLAuth) ImplementsKeyboardButton()

type InputKeyboardButtonUserProfile

type InputKeyboardButtonUserProfile struct {
	Text   string
	UserID InputUser
}

Button that links directly to a user profile

func (*InputKeyboardButtonUserProfile) CRC

func (*InputKeyboardButtonUserProfile) ImplementsKeyboardButton

func (*InputKeyboardButtonUserProfile) ImplementsKeyboardButton()

type InputMedia

type InputMedia interface {
	tl.Object
	ImplementsInputMedia()
}

type InputMediaAreaChannelPost

type InputMediaAreaChannelPost struct {
	Coordinates *MediaAreaCoordinates
	Channel     InputChannel
	MsgID       int32
}

Represents a channel post

func (*InputMediaAreaChannelPost) CRC

func (*InputMediaAreaChannelPost) ImplementsMediaArea

func (*InputMediaAreaChannelPost) ImplementsMediaArea()

type InputMediaAreaVenue

type InputMediaAreaVenue struct {
	Coordinates *MediaAreaCoordinates
	QueryID     int64
	ResultID    string
}

Represents a [location tag](https://core.telegram.org/api/stories#media-areas) attached to a [story](https://core.telegram.org/api/stories), with additional venue information.

func (*InputMediaAreaVenue) CRC

func (*InputMediaAreaVenue) CRC() uint32

func (*InputMediaAreaVenue) ImplementsMediaArea

func (*InputMediaAreaVenue) ImplementsMediaArea()

type InputMediaContact

type InputMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
}

Phone book contact

func (*InputMediaContact) CRC

func (*InputMediaContact) CRC() uint32

func (*InputMediaContact) ImplementsInputMedia

func (*InputMediaContact) ImplementsInputMedia()

type InputMediaDice

type InputMediaDice struct {
	Emoticon string
}

Send a [dice-based animated sticker](https://core.telegram.org/api/dice)

func (*InputMediaDice) CRC

func (*InputMediaDice) CRC() uint32

func (*InputMediaDice) ImplementsInputMedia

func (*InputMediaDice) ImplementsInputMedia()

type InputMediaDocument

type InputMediaDocument struct {
	Spoiler    bool `tl:"flag:2,encoded_in_bitflags"`
	ID         InputDocument
	TtlSeconds int32  `tl:"flag:0"`
	Query      string `tl:"flag:1"`
}

Forwarded document

func (*InputMediaDocument) CRC

func (*InputMediaDocument) CRC() uint32

func (*InputMediaDocument) FlagIndex

func (*InputMediaDocument) FlagIndex() int

func (*InputMediaDocument) ImplementsInputMedia

func (*InputMediaDocument) ImplementsInputMedia()

type InputMediaDocumentExternal

type InputMediaDocumentExternal struct {
	Spoiler    bool `tl:"flag:1,encoded_in_bitflags"`
	URL        string
	TtlSeconds int32 `tl:"flag:0"`
}

Document that will be downloaded by the telegram servers

func (*InputMediaDocumentExternal) CRC

func (*InputMediaDocumentExternal) FlagIndex

func (*InputMediaDocumentExternal) FlagIndex() int

func (*InputMediaDocumentExternal) ImplementsInputMedia

func (*InputMediaDocumentExternal) ImplementsInputMedia()

type InputMediaEmpty

type InputMediaEmpty struct{}

Empty media content of a message.

func (*InputMediaEmpty) CRC

func (*InputMediaEmpty) CRC() uint32

func (*InputMediaEmpty) ImplementsInputMedia

func (*InputMediaEmpty) ImplementsInputMedia()

type InputMediaGame

type InputMediaGame struct {
	ID InputGame
}

A game

func (*InputMediaGame) CRC

func (*InputMediaGame) CRC() uint32

func (*InputMediaGame) ImplementsInputMedia

func (*InputMediaGame) ImplementsInputMedia()

type InputMediaGeoLive

type InputMediaGeoLive struct {
	Stopped                     bool `tl:"flag:0,encoded_in_bitflags"`
	GeoPoint                    InputGeoPoint
	Heading                     int32 `tl:"flag:2"`
	Period                      int32 `tl:"flag:1"`
	ProximityNotificationRadius int32 `tl:"flag:3"`
}

[Live geolocation](https://core.telegram.org/api/live-location)

func (*InputMediaGeoLive) CRC

func (*InputMediaGeoLive) CRC() uint32

func (*InputMediaGeoLive) FlagIndex

func (*InputMediaGeoLive) FlagIndex() int

func (*InputMediaGeoLive) ImplementsInputMedia

func (*InputMediaGeoLive) ImplementsInputMedia()

type InputMediaGeoPoint

type InputMediaGeoPoint struct {
	GeoPoint InputGeoPoint
}

Map.

func (*InputMediaGeoPoint) CRC

func (*InputMediaGeoPoint) CRC() uint32

func (*InputMediaGeoPoint) ImplementsInputMedia

func (*InputMediaGeoPoint) ImplementsInputMedia()

type InputMediaInvoice

type InputMediaInvoice struct {
	Title         string
	Description   string
	Photo         *InputWebDocument `tl:"flag:0"`
	Invoice       *Invoice
	Payload       []byte
	Provider      string `tl:"flag:3"`
	ProviderData  *DataJson
	StartParam    string     `tl:"flag:1"`
	ExtendedMedia InputMedia `tl:"flag:2"`
}

Generated invoice of a [bot payment](https://core.telegram.org/bots/payments)

func (*InputMediaInvoice) CRC

func (*InputMediaInvoice) CRC() uint32

func (*InputMediaInvoice) FlagIndex

func (*InputMediaInvoice) FlagIndex() int

func (*InputMediaInvoice) ImplementsInputMedia

func (*InputMediaInvoice) ImplementsInputMedia()

type InputMediaPaidMedia

type InputMediaPaidMedia struct {
	StarsAmount   int64
	ExtendedMedia []InputMedia
}

func (*InputMediaPaidMedia) CRC

func (*InputMediaPaidMedia) CRC() uint32

func (*InputMediaPaidMedia) ImplementsInputMedia

func (*InputMediaPaidMedia) ImplementsInputMedia()

type InputMediaPhoto

type InputMediaPhoto struct {
	Spoiler    bool `tl:"flag:1,encoded_in_bitflags"`
	ID         InputPhoto
	TtlSeconds int32 `tl:"flag:0"`
}

Forwarded photo

func (*InputMediaPhoto) CRC

func (*InputMediaPhoto) CRC() uint32

func (*InputMediaPhoto) FlagIndex

func (*InputMediaPhoto) FlagIndex() int

func (*InputMediaPhoto) ImplementsInputMedia

func (*InputMediaPhoto) ImplementsInputMedia()

type InputMediaPhotoExternal

type InputMediaPhotoExternal struct {
	Spoiler    bool `tl:"flag:1,encoded_in_bitflags"`
	URL        string
	TtlSeconds int32 `tl:"flag:0"`
}

New photo that will be uploaded by the server using the specified URL

func (*InputMediaPhotoExternal) CRC

func (*InputMediaPhotoExternal) FlagIndex

func (*InputMediaPhotoExternal) FlagIndex() int

func (*InputMediaPhotoExternal) ImplementsInputMedia

func (*InputMediaPhotoExternal) ImplementsInputMedia()

type InputMediaPoll

type InputMediaPoll struct {
	Poll             *Poll
	CorrectAnswers   [][]byte        `tl:"flag:0"`
	Solution         string          `tl:"flag:1"`
	SolutionEntities []MessageEntity `tl:"flag:1"`
}

A poll

func (*InputMediaPoll) CRC

func (*InputMediaPoll) CRC() uint32

func (*InputMediaPoll) FlagIndex

func (*InputMediaPoll) FlagIndex() int

func (*InputMediaPoll) ImplementsInputMedia

func (*InputMediaPoll) ImplementsInputMedia()

type InputMediaStory

type InputMediaStory struct {
	Peer InputPeer
	ID   int32
}

Forwarded story

func (*InputMediaStory) CRC

func (*InputMediaStory) CRC() uint32

func (*InputMediaStory) ImplementsInputMedia

func (*InputMediaStory) ImplementsInputMedia()

type InputMediaUploadedDocument

type InputMediaUploadedDocument struct {
	NosoundVideo bool `tl:"flag:3,encoded_in_bitflags"`
	ForceFile    bool `tl:"flag:4,encoded_in_bitflags"`
	Spoiler      bool `tl:"flag:5,encoded_in_bitflags"`
	File         InputFile
	Thumb        InputFile `tl:"flag:2"`
	MimeType     string
	Attributes   []DocumentAttribute
	Stickers     []InputDocument `tl:"flag:0"`
	TtlSeconds   int32           `tl:"flag:1"`
}

New document

func (*InputMediaUploadedDocument) CRC

func (*InputMediaUploadedDocument) FlagIndex

func (*InputMediaUploadedDocument) FlagIndex() int

func (*InputMediaUploadedDocument) ImplementsInputMedia

func (*InputMediaUploadedDocument) ImplementsInputMedia()

type InputMediaUploadedPhoto

type InputMediaUploadedPhoto struct {
	Spoiler    bool `tl:"flag:2,encoded_in_bitflags"`
	File       InputFile
	Stickers   []InputDocument `tl:"flag:0"`
	TtlSeconds int32           `tl:"flag:1"`
}

Photo

func (*InputMediaUploadedPhoto) CRC

func (*InputMediaUploadedPhoto) FlagIndex

func (*InputMediaUploadedPhoto) FlagIndex() int

func (*InputMediaUploadedPhoto) ImplementsInputMedia

func (*InputMediaUploadedPhoto) ImplementsInputMedia()

type InputMediaVenue

type InputMediaVenue struct {
	GeoPoint  InputGeoPoint
	Title     string
	Address   string
	Provider  string
	VenueID   string
	VenueType string
}

Can be used to send a venue geolocation.

func (*InputMediaVenue) CRC

func (*InputMediaVenue) CRC() uint32

func (*InputMediaVenue) ImplementsInputMedia

func (*InputMediaVenue) ImplementsInputMedia()

type InputMediaWebPage

type InputMediaWebPage struct {
	ForceLargeMedia bool `tl:"flag:0,encoded_in_bitflags"`
	ForceSmallMedia bool `tl:"flag:1,encoded_in_bitflags"`
	Optional        bool `tl:"flag:2,encoded_in_bitflags"`
	URL             string
}

Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.

func (*InputMediaWebPage) CRC

func (*InputMediaWebPage) CRC() uint32

func (*InputMediaWebPage) FlagIndex

func (*InputMediaWebPage) FlagIndex() int

func (*InputMediaWebPage) ImplementsInputMedia

func (*InputMediaWebPage) ImplementsInputMedia()

type InputMessage

type InputMessage interface {
	tl.Object
	ImplementsInputMessage()
}

type InputMessageCallbackQuery

type InputMessageCallbackQuery struct {
	ID      int32
	QueryID int64
}

Used by bots for fetching information about the message that originated a callback query

func (*InputMessageCallbackQuery) CRC

func (*InputMessageCallbackQuery) ImplementsInputMessage

func (*InputMessageCallbackQuery) ImplementsInputMessage()

type InputMessageEntityMentionName

type InputMessageEntityMentionName struct {
	Offset int32
	Length int32
	UserID InputUser
}

Message entity that can be used to create a user [user mention](https://core.telegram.org/api/mentions): received mentions use the [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName) constructor, instead.

func (*InputMessageEntityMentionName) CRC

func (*InputMessageEntityMentionName) ImplementsMessageEntity

func (*InputMessageEntityMentionName) ImplementsMessageEntity()

type InputMessageID

type InputMessageID struct {
	ID int32
}

Message by ID

func (*InputMessageID) CRC

func (*InputMessageID) CRC() uint32

func (*InputMessageID) ImplementsInputMessage

func (*InputMessageID) ImplementsInputMessage()

type InputMessagePinned

type InputMessagePinned struct{}

Pinned message

func (*InputMessagePinned) CRC

func (*InputMessagePinned) CRC() uint32

func (*InputMessagePinned) ImplementsInputMessage

func (*InputMessagePinned) ImplementsInputMessage()

type InputMessageReplyTo

type InputMessageReplyTo struct {
	ID int32
}

Message to which the specified message replies to

func (*InputMessageReplyTo) CRC

func (*InputMessageReplyTo) CRC() uint32

func (*InputMessageReplyTo) ImplementsInputMessage

func (*InputMessageReplyTo) ImplementsInputMessage()

type InputMessagesFilterChatPhotos

type InputMessagesFilterChatPhotos struct{}

Return only chat photo changes

func (*InputMessagesFilterChatPhotos) CRC

func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter

func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter()

type InputMessagesFilterContacts

type InputMessagesFilterContacts struct{}

Return only messages containing contacts

func (*InputMessagesFilterContacts) CRC

func (*InputMessagesFilterContacts) ImplementsMessagesFilter

func (*InputMessagesFilterContacts) ImplementsMessagesFilter()

type InputMessagesFilterDocument

type InputMessagesFilterDocument struct{}

Filter for messages containing documents.

func (*InputMessagesFilterDocument) CRC

func (*InputMessagesFilterDocument) ImplementsMessagesFilter

func (*InputMessagesFilterDocument) ImplementsMessagesFilter()

type InputMessagesFilterEmpty

type InputMessagesFilterEmpty struct{}

Filter is absent.

func (*InputMessagesFilterEmpty) CRC

func (*InputMessagesFilterEmpty) ImplementsMessagesFilter

func (*InputMessagesFilterEmpty) ImplementsMessagesFilter()

type InputMessagesFilterGeo

type InputMessagesFilterGeo struct{}

Return only messages containing geolocations

func (*InputMessagesFilterGeo) CRC

func (*InputMessagesFilterGeo) ImplementsMessagesFilter

func (*InputMessagesFilterGeo) ImplementsMessagesFilter()

type InputMessagesFilterGif

type InputMessagesFilterGif struct{}

Return only messages containing gifs

func (*InputMessagesFilterGif) CRC

func (*InputMessagesFilterGif) ImplementsMessagesFilter

func (*InputMessagesFilterGif) ImplementsMessagesFilter()

type InputMessagesFilterMusic

type InputMessagesFilterMusic struct{}

Return only messages containing audio files

func (*InputMessagesFilterMusic) CRC

func (*InputMessagesFilterMusic) ImplementsMessagesFilter

func (*InputMessagesFilterMusic) ImplementsMessagesFilter()

type InputMessagesFilterMyMentions

type InputMessagesFilterMyMentions struct{}

Return only messages where the current user was [mentioned](https://core.telegram.org/api/mentions).

func (*InputMessagesFilterMyMentions) CRC

func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter

func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter()

type InputMessagesFilterPhoneCalls

type InputMessagesFilterPhoneCalls struct {
	Missed bool `tl:"flag:0,encoded_in_bitflags"`
}

Return only phone calls

func (*InputMessagesFilterPhoneCalls) CRC

func (*InputMessagesFilterPhoneCalls) FlagIndex

func (*InputMessagesFilterPhoneCalls) FlagIndex() int

func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter

func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter()

type InputMessagesFilterPhotoVideo

type InputMessagesFilterPhotoVideo struct{}

Filter for messages containing photos or videos.

func (*InputMessagesFilterPhotoVideo) CRC

func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter

func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter()

type InputMessagesFilterPhotos

type InputMessagesFilterPhotos struct{}

Filter for messages containing photos.

func (*InputMessagesFilterPhotos) CRC

func (*InputMessagesFilterPhotos) ImplementsMessagesFilter

func (*InputMessagesFilterPhotos) ImplementsMessagesFilter()

type InputMessagesFilterPinned

type InputMessagesFilterPinned struct{}

Fetch only pinned messages

func (*InputMessagesFilterPinned) CRC

func (*InputMessagesFilterPinned) ImplementsMessagesFilter

func (*InputMessagesFilterPinned) ImplementsMessagesFilter()

type InputMessagesFilterRoundVideo

type InputMessagesFilterRoundVideo struct{}

Return only round videos

func (*InputMessagesFilterRoundVideo) CRC

func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter

func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter()

type InputMessagesFilterRoundVoice

type InputMessagesFilterRoundVoice struct{}

Return only round videos and voice notes

func (*InputMessagesFilterRoundVoice) CRC

func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter

func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter()

type InputMessagesFilterURL

type InputMessagesFilterURL struct{}

Return only messages containing URLs

func (*InputMessagesFilterURL) CRC

func (*InputMessagesFilterURL) ImplementsMessagesFilter

func (*InputMessagesFilterURL) ImplementsMessagesFilter()

type InputMessagesFilterVideo

type InputMessagesFilterVideo struct{}

Filter for messages containing videos.

func (*InputMessagesFilterVideo) CRC

func (*InputMessagesFilterVideo) ImplementsMessagesFilter

func (*InputMessagesFilterVideo) ImplementsMessagesFilter()

type InputMessagesFilterVoice

type InputMessagesFilterVoice struct{}

Return only messages containing voice notes

func (*InputMessagesFilterVoice) CRC

func (*InputMessagesFilterVoice) ImplementsMessagesFilter

func (*InputMessagesFilterVoice) ImplementsMessagesFilter()

type InputNotifyBroadcasts

type InputNotifyBroadcasts struct{}

All [channels](https://core.telegram.org/api/channel)

func (*InputNotifyBroadcasts) CRC

func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer

func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer()

type InputNotifyChats

type InputNotifyChats struct{}

Notifications generated by all groups.

func (*InputNotifyChats) CRC

func (*InputNotifyChats) CRC() uint32

func (*InputNotifyChats) ImplementsInputNotifyPeer

func (*InputNotifyChats) ImplementsInputNotifyPeer()

type InputNotifyForumTopic

type InputNotifyForumTopic struct {
	Peer     InputPeer
	TopMsgID int32
}

Notifications generated by a [topic](https://core.telegram.org/api/forum#forum-topics) in a [forum](https://core.telegram.org/api/forum).

func (*InputNotifyForumTopic) CRC

func (*InputNotifyForumTopic) ImplementsInputNotifyPeer

func (*InputNotifyForumTopic) ImplementsInputNotifyPeer()

type InputNotifyPeer

type InputNotifyPeer interface {
	tl.Object
	ImplementsInputNotifyPeer()
}

type InputNotifyPeerObj

type InputNotifyPeerObj struct {
	Peer InputPeer
}

Notifications generated by a certain user or group.

func (*InputNotifyPeerObj) CRC

func (*InputNotifyPeerObj) CRC() uint32

func (*InputNotifyPeerObj) ImplementsInputNotifyPeer

func (*InputNotifyPeerObj) ImplementsInputNotifyPeer()

type InputNotifyUsers

type InputNotifyUsers struct{}

Notifications generated by all users.

func (*InputNotifyUsers) CRC

func (*InputNotifyUsers) CRC() uint32

func (*InputNotifyUsers) ImplementsInputNotifyPeer

func (*InputNotifyUsers) ImplementsInputNotifyPeer()

type InputPaymentCredentials

type InputPaymentCredentials interface {
	tl.Object
	ImplementsInputPaymentCredentials()
}

type InputPaymentCredentialsApplePay

type InputPaymentCredentialsApplePay struct {
	PaymentData *DataJson
}

Apple pay payment credentials

func (*InputPaymentCredentialsApplePay) CRC

func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsGooglePay

type InputPaymentCredentialsGooglePay struct {
	PaymentToken *DataJson
}

Google Pay payment credentials

func (*InputPaymentCredentialsGooglePay) CRC

func (*InputPaymentCredentialsGooglePay) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsGooglePay) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsObj

type InputPaymentCredentialsObj struct {
	Save bool `tl:"flag:0,encoded_in_bitflags"`
	Data *DataJson
}

Payment credentials

func (*InputPaymentCredentialsObj) CRC

func (*InputPaymentCredentialsObj) FlagIndex

func (*InputPaymentCredentialsObj) FlagIndex() int

func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsSaved

type InputPaymentCredentialsSaved struct {
	ID          string
	TmpPassword []byte
}

Saved payment credentials

func (*InputPaymentCredentialsSaved) CRC

func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials()

type InputPeer

type InputPeer interface {
	tl.Object
	ImplementsInputPeer()
}

type InputPeerCache

type InputPeerCache struct {
	InputChannels map[int64]int64 `json:"channels,omitempty"`
	InputUsers    map[int64]int64 `json:"users,omitempty"`
	InputChats    map[int64]int64 `json:"chats,omitempty"`
}

type InputPeerChannel

type InputPeerChannel struct {
	ChannelID  int64
	AccessHash int64
}

Defines a channel for further interaction.

func (*InputPeerChannel) CRC

func (*InputPeerChannel) CRC() uint32

func (*InputPeerChannel) ImplementsInputPeer

func (*InputPeerChannel) ImplementsInputPeer()

type InputPeerChannelFromMessage

type InputPeerChannelFromMessage struct {
	Peer      InputPeer
	MsgID     int32
	ChannelID int64
}

Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.

func (*InputPeerChannelFromMessage) CRC

func (*InputPeerChannelFromMessage) ImplementsInputPeer

func (*InputPeerChannelFromMessage) ImplementsInputPeer()

type InputPeerChat

type InputPeerChat struct {
	ChatID int64
}

Defines a chat for further interaction.

func (*InputPeerChat) CRC

func (*InputPeerChat) CRC() uint32

func (*InputPeerChat) ImplementsInputPeer

func (*InputPeerChat) ImplementsInputPeer()

type InputPeerEmpty

type InputPeerEmpty struct{}

An empty constructor, no user or chat is defined.

func (*InputPeerEmpty) CRC

func (*InputPeerEmpty) CRC() uint32

func (*InputPeerEmpty) ImplementsInputPeer

func (*InputPeerEmpty) ImplementsInputPeer()

type InputPeerNotifySettings

type InputPeerNotifySettings struct {
	ShowPreviews      bool              `tl:"flag:0"`
	Silent            bool              `tl:"flag:1"`
	MuteUntil         int32             `tl:"flag:2"`
	Sound             NotificationSound `tl:"flag:3"`
	StoriesMuted      bool              `tl:"flag:6"`
	StoriesHideSender bool              `tl:"flag:7"`
	StoriesSound      NotificationSound `tl:"flag:8"`
}

Notification settings.

func (*InputPeerNotifySettings) CRC

func (*InputPeerNotifySettings) FlagIndex

func (*InputPeerNotifySettings) FlagIndex() int

type InputPeerPhotoFileLocation

type InputPeerPhotoFileLocation struct {
	Big     bool `tl:"flag:0,encoded_in_bitflags"`
	Peer    InputPeer
	PhotoID int64
}

Location of profile photo of channel/group/supergroup/user

func (*InputPeerPhotoFileLocation) CRC

func (*InputPeerPhotoFileLocation) FlagIndex

func (*InputPeerPhotoFileLocation) FlagIndex() int

func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation

func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation()

type InputPeerSelf

type InputPeerSelf struct{}

Defines the current user.

func (*InputPeerSelf) CRC

func (*InputPeerSelf) CRC() uint32

func (*InputPeerSelf) ImplementsInputPeer

func (*InputPeerSelf) ImplementsInputPeer()

type InputPeerUser

type InputPeerUser struct {
	UserID     int64
	AccessHash int64
}

Defines a user for further interaction.

func (*InputPeerUser) CRC

func (*InputPeerUser) CRC() uint32

func (*InputPeerUser) ImplementsInputPeer

func (*InputPeerUser) ImplementsInputPeer()

type InputPeerUserFromMessage

type InputPeerUserFromMessage struct {
	Peer   InputPeer
	MsgID  int32
	UserID int64
}

Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.

func (*InputPeerUserFromMessage) CRC

func (*InputPeerUserFromMessage) ImplementsInputPeer

func (*InputPeerUserFromMessage) ImplementsInputPeer()

type InputPhoneCall

type InputPhoneCall struct {
	ID         int64
	AccessHash int64
}

Phone call

func (*InputPhoneCall) CRC

func (*InputPhoneCall) CRC() uint32

type InputPhoneContact

type InputPhoneContact struct {
	ClientID  int64
	Phone     string
	FirstName string
	LastName  string
}

Phone contact.

func (*InputPhoneContact) CRC

func (*InputPhoneContact) CRC() uint32

type InputPhoto

type InputPhoto interface {
	tl.Object
	ImplementsInputPhoto()
}

type InputPhotoEmpty

type InputPhotoEmpty struct{}

Empty constructor.

func (*InputPhotoEmpty) CRC

func (*InputPhotoEmpty) CRC() uint32

func (*InputPhotoEmpty) ImplementsInputPhoto

func (*InputPhotoEmpty) ImplementsInputPhoto()

type InputPhotoFileLocation

type InputPhotoFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	ThumbSize     string
}

Use this object to download a photo with [upload.getFile](https://core.telegram.org/method/upload.getFile) method

func (*InputPhotoFileLocation) CRC

func (*InputPhotoFileLocation) ImplementsInputFileLocation

func (*InputPhotoFileLocation) ImplementsInputFileLocation()

type InputPhotoLegacyFileLocation

type InputPhotoLegacyFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	VolumeID      int64
	LocalID       int32
	Secret        int64
}

DEPRECATED legacy photo file location

func (*InputPhotoLegacyFileLocation) CRC

func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation

func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation()

type InputPhotoObj

type InputPhotoObj struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
}

Defines a photo for further interaction.

func (*InputPhotoObj) CRC

func (*InputPhotoObj) CRC() uint32

func (*InputPhotoObj) ImplementsInputPhoto

func (*InputPhotoObj) ImplementsInputPhoto()

type InputPrivacyKey

type InputPrivacyKey uint32
const (
	InputPrivacyKeyAbout           InputPrivacyKey = 0x3823cc40
	InputPrivacyKeyAddedByPhone    InputPrivacyKey = 0xd1219bdd
	InputPrivacyKeyBirthday        InputPrivacyKey = 0xd65a11cc
	InputPrivacyKeyChatInvite      InputPrivacyKey = 0xbdfb0426
	InputPrivacyKeyForwards        InputPrivacyKey = 0xa4dd4c08
	InputPrivacyKeyPhoneCall       InputPrivacyKey = 0xfabadc5f
	InputPrivacyKeyPhoneNumber     InputPrivacyKey = 0x352dafa
	InputPrivacyKeyPhoneP2P        InputPrivacyKey = 0xdb9e70d2
	InputPrivacyKeyProfilePhoto    InputPrivacyKey = 0x5719bacc
	InputPrivacyKeyStatusTimestamp InputPrivacyKey = 0x4f96cb18
	InputPrivacyKeyVoiceMessages   InputPrivacyKey = 0xaee69d68
)

func (InputPrivacyKey) CRC

func (e InputPrivacyKey) CRC() uint32

func (InputPrivacyKey) String

func (e InputPrivacyKey) String() string

type InputPrivacyRule

type InputPrivacyRule interface {
	tl.Object
	ImplementsInputPrivacyRule()
}

type InputPrivacyValueAllowAll

type InputPrivacyValueAllowAll struct{}

Allow all users

func (*InputPrivacyValueAllowAll) CRC

func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowChatParticipants

type InputPrivacyValueAllowChatParticipants struct {
	Chats []int64
}

Allow only participants of certain chats

func (*InputPrivacyValueAllowChatParticipants) CRC

func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowCloseFriends

type InputPrivacyValueAllowCloseFriends struct{}

Allow only [close friends »](https://core.telegram.org/api/privacy)

func (*InputPrivacyValueAllowCloseFriends) CRC

func (*InputPrivacyValueAllowCloseFriends) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowCloseFriends) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowContacts

type InputPrivacyValueAllowContacts struct{}

Allow only contacts

func (*InputPrivacyValueAllowContacts) CRC

func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowPremium

type InputPrivacyValueAllowPremium struct{}

func (*InputPrivacyValueAllowPremium) CRC

func (*InputPrivacyValueAllowPremium) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowPremium) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowUsers

type InputPrivacyValueAllowUsers struct {
	Users []InputUser
}

Allow only certain users

func (*InputPrivacyValueAllowUsers) CRC

func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowAll

type InputPrivacyValueDisallowAll struct{}

Disallow all

func (*InputPrivacyValueDisallowAll) CRC

func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowChatParticipants

type InputPrivacyValueDisallowChatParticipants struct {
	Chats []int64
}

Disallow only participants of certain chats

func (*InputPrivacyValueDisallowChatParticipants) CRC

func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowContacts

type InputPrivacyValueDisallowContacts struct{}

Disallow only contacts

func (*InputPrivacyValueDisallowContacts) CRC

func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowUsers

type InputPrivacyValueDisallowUsers struct {
	Users []InputUser
}

Disallow only certain users

func (*InputPrivacyValueDisallowUsers) CRC

func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule()

type InputQuickReplyShortcut

type InputQuickReplyShortcut interface {
	tl.Object
	ImplementsInputQuickReplyShortcut()
}

type InputQuickReplyShortcutID

type InputQuickReplyShortcutID struct {
	ShortcutID int32
}

func (*InputQuickReplyShortcutID) CRC

func (*InputQuickReplyShortcutID) ImplementsInputQuickReplyShortcut

func (*InputQuickReplyShortcutID) ImplementsInputQuickReplyShortcut()

type InputQuickReplyShortcutObj

type InputQuickReplyShortcutObj struct {
	Shortcut string
}

func (*InputQuickReplyShortcutObj) CRC

func (*InputQuickReplyShortcutObj) ImplementsInputQuickReplyShortcut

func (*InputQuickReplyShortcutObj) ImplementsInputQuickReplyShortcut()

type InputReplyTo

type InputReplyTo interface {
	tl.Object
	ImplementsInputReplyTo()
}

type InputReplyToMessage

type InputReplyToMessage struct {
	ReplyToMsgID  int32
	TopMsgID      int32           `tl:"flag:0"`
	ReplyToPeerID InputPeer       `tl:"flag:1"`
	QuoteText     string          `tl:"flag:2"`
	QuoteEntities []MessageEntity `tl:"flag:3"`
	QuoteOffset   int32           `tl:"flag:4"`
}

Reply to a message.

func (*InputReplyToMessage) CRC

func (*InputReplyToMessage) CRC() uint32

func (*InputReplyToMessage) FlagIndex

func (*InputReplyToMessage) FlagIndex() int

func (*InputReplyToMessage) ImplementsInputReplyTo

func (*InputReplyToMessage) ImplementsInputReplyTo()

type InputReplyToStory

type InputReplyToStory struct {
	Peer    InputPeer
	StoryID int32
}

Reply to a story.

func (*InputReplyToStory) CRC

func (*InputReplyToStory) CRC() uint32

func (*InputReplyToStory) ImplementsInputReplyTo

func (*InputReplyToStory) ImplementsInputReplyTo()

type InputSecureFile

type InputSecureFile interface {
	tl.Object
	ImplementsInputSecureFile()
}

type InputSecureFileLocation

type InputSecureFileLocation struct {
	ID         int64
	AccessHash int64
}

Location of encrypted telegram [passport](https://core.telegram.org/passport) file.

func (*InputSecureFileLocation) CRC

func (*InputSecureFileLocation) ImplementsInputFileLocation

func (*InputSecureFileLocation) ImplementsInputFileLocation()

type InputSecureFileObj

type InputSecureFileObj struct {
	ID         int64
	AccessHash int64
}

Pre-uploaded [passport](https://core.telegram.org/passport) file, for more info [see the passport docs »](https://core.telegram.org/passport/encryption#inputsecurefile)

func (*InputSecureFileObj) CRC

func (*InputSecureFileObj) CRC() uint32

func (*InputSecureFileObj) ImplementsInputSecureFile

func (*InputSecureFileObj) ImplementsInputSecureFile()

type InputSecureFileUploaded

type InputSecureFileUploaded struct {
	ID          int64
	Parts       int32
	Md5Checksum string
	FileHash    []byte
	Secret      []byte
}

Uploaded secure file, for more info [see the passport docs »](https://core.telegram.org/passport/encryption#inputsecurefile)

func (*InputSecureFileUploaded) CRC

func (*InputSecureFileUploaded) ImplementsInputSecureFile

func (*InputSecureFileUploaded) ImplementsInputSecureFile()

type InputSecureValue

type InputSecureValue struct {
	Type        SecureValueType
	Data        *SecureData       `tl:"flag:0"`
	FrontSide   InputSecureFile   `tl:"flag:1"`
	ReverseSide InputSecureFile   `tl:"flag:2"`
	Selfie      InputSecureFile   `tl:"flag:3"`
	Translation []InputSecureFile `tl:"flag:6"`
	Files       []InputSecureFile `tl:"flag:4"`
	PlainData   SecurePlainData   `tl:"flag:5"`
}

Secure value, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

func (*InputSecureValue) CRC

func (*InputSecureValue) CRC() uint32

func (*InputSecureValue) FlagIndex

func (*InputSecureValue) FlagIndex() int

type InputSingleMedia

type InputSingleMedia struct {
	Media    InputMedia
	RandomID int64
	Message  string
	Entities []MessageEntity `tl:"flag:0"`
}

A single media in an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media) sent with [messages.sendMultiMedia](https://core.telegram.org/method/messages.sendMultiMedia).

func (*InputSingleMedia) CRC

func (*InputSingleMedia) CRC() uint32

func (*InputSingleMedia) FlagIndex

func (*InputSingleMedia) FlagIndex() int

type InputStarsTransaction

type InputStarsTransaction struct {
	Refund bool `tl:"flag:0,encoded_in_bitflags"`
	ID     string
}

func (*InputStarsTransaction) CRC

func (*InputStarsTransaction) FlagIndex

func (*InputStarsTransaction) FlagIndex() int

type InputStickerSet

type InputStickerSet interface {
	tl.Object
	ImplementsInputStickerSet()
}

type InputStickerSetAnimatedEmoji

type InputStickerSetAnimatedEmoji struct{}

Animated emojis stickerset

func (*InputStickerSetAnimatedEmoji) CRC

func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet

func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet()

type InputStickerSetAnimatedEmojiAnimations

type InputStickerSetAnimatedEmojiAnimations struct{}

Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji)

func (*InputStickerSetAnimatedEmojiAnimations) CRC

func (*InputStickerSetAnimatedEmojiAnimations) ImplementsInputStickerSet

func (*InputStickerSetAnimatedEmojiAnimations) ImplementsInputStickerSet()

type InputStickerSetDice

type InputStickerSetDice struct {
	Emoticon string
}

Used for fetching [animated dice stickers](https://core.telegram.org/api/dice)

func (*InputStickerSetDice) CRC

func (*InputStickerSetDice) CRC() uint32

func (*InputStickerSetDice) ImplementsInputStickerSet

func (*InputStickerSetDice) ImplementsInputStickerSet()

type InputStickerSetEmojiChannelDefaultStatuses

type InputStickerSetEmojiChannelDefaultStatuses struct{}

Default [custom emoji status](https://core.telegram.org/api/emoji-status) stickerset for channel statuses

func (*InputStickerSetEmojiChannelDefaultStatuses) CRC

func (*InputStickerSetEmojiChannelDefaultStatuses) ImplementsInputStickerSet

func (*InputStickerSetEmojiChannelDefaultStatuses) ImplementsInputStickerSet()

type InputStickerSetEmojiDefaultStatuses

type InputStickerSetEmojiDefaultStatuses struct{}

Default [custom emoji status](https://core.telegram.org/api/emoji-status) stickerset

func (*InputStickerSetEmojiDefaultStatuses) CRC

func (*InputStickerSetEmojiDefaultStatuses) ImplementsInputStickerSet

func (*InputStickerSetEmojiDefaultStatuses) ImplementsInputStickerSet()

type InputStickerSetEmojiDefaultTopicIcons

type InputStickerSetEmojiDefaultTopicIcons struct{}

Default [custom emoji](https://core.telegram.org/api/custom-emoji) stickerset for [forum topic icons](https://core.telegram.org/api/forum#forum-topics)

func (*InputStickerSetEmojiDefaultTopicIcons) CRC

func (*InputStickerSetEmojiDefaultTopicIcons) ImplementsInputStickerSet

func (*InputStickerSetEmojiDefaultTopicIcons) ImplementsInputStickerSet()

type InputStickerSetEmojiGenericAnimations

type InputStickerSetEmojiGenericAnimations struct{}

Generic animation stickerset containing animations to play when [reacting to messages using a normal emoji without a custom animation](https://core.telegram.org/api/reactions)

func (*InputStickerSetEmojiGenericAnimations) CRC

func (*InputStickerSetEmojiGenericAnimations) ImplementsInputStickerSet

func (*InputStickerSetEmojiGenericAnimations) ImplementsInputStickerSet()

type InputStickerSetEmpty

type InputStickerSetEmpty struct{}

Empty constructor

func (*InputStickerSetEmpty) CRC

func (*InputStickerSetEmpty) ImplementsInputStickerSet

func (*InputStickerSetEmpty) ImplementsInputStickerSet()

type InputStickerSetID

type InputStickerSetID struct {
	ID         int64
	AccessHash int64
}

Stickerset by ID

func (*InputStickerSetID) CRC

func (*InputStickerSetID) CRC() uint32

func (*InputStickerSetID) ImplementsInputStickerSet

func (*InputStickerSetID) ImplementsInputStickerSet()

type InputStickerSetItem

type InputStickerSetItem struct {
	Document   InputDocument
	Emoji      string
	MaskCoords *MaskCoords `tl:"flag:0"`
	Keywords   string      `tl:"flag:1"`
}

Sticker in a stickerset

func (*InputStickerSetItem) CRC

func (*InputStickerSetItem) CRC() uint32

func (*InputStickerSetItem) FlagIndex

func (*InputStickerSetItem) FlagIndex() int

type InputStickerSetPremiumGifts

type InputStickerSetPremiumGifts struct{}

Stickers to show when receiving a gifted Telegram Premium subscription

func (*InputStickerSetPremiumGifts) CRC

func (*InputStickerSetPremiumGifts) ImplementsInputStickerSet

func (*InputStickerSetPremiumGifts) ImplementsInputStickerSet()

type InputStickerSetShortName

type InputStickerSetShortName struct {
	ShortName string
}

Stickerset by short name, from a [stickerset deep link »](https://core.telegram.org/api/links#stickerset-links)

func (*InputStickerSetShortName) CRC

func (*InputStickerSetShortName) ImplementsInputStickerSet

func (*InputStickerSetShortName) ImplementsInputStickerSet()

type InputStickerSetThumb

type InputStickerSetThumb struct {
	Stickerset   InputStickerSet
	ThumbVersion int32
}

Location of stickerset thumbnail (see [files](https://core.telegram.org/api/files))

func (*InputStickerSetThumb) CRC

func (*InputStickerSetThumb) ImplementsInputFileLocation

func (*InputStickerSetThumb) ImplementsInputFileLocation()

type InputStickeredMedia

type InputStickeredMedia interface {
	tl.Object
	ImplementsInputStickeredMedia()
}

type InputStickeredMediaDocument

type InputStickeredMediaDocument struct {
	ID InputDocument
}

A document with stickers attached

func (*InputStickeredMediaDocument) CRC

func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia

func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia()

type InputStickeredMediaPhoto

type InputStickeredMediaPhoto struct {
	ID InputPhoto
}

A photo with stickers attached

func (*InputStickeredMediaPhoto) CRC

func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia

func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia()

type InputStorePaymentGiftPremium

type InputStorePaymentGiftPremium struct {
	UserID   InputUser
	Currency string
	Amount   int64
}

Info about a gifted Telegram Premium purchase

func (*InputStorePaymentGiftPremium) CRC

func (*InputStorePaymentGiftPremium) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentGiftPremium) ImplementsInputStorePaymentPurpose()

type InputStorePaymentPremiumGiftCode

type InputStorePaymentPremiumGiftCode struct {
	Users     []InputUser
	BoostPeer InputPeer `tl:"flag:0"`
	Currency  string
	Amount    int64
}

Used to gift [Telegram Premium](https://core.telegram.org/api/premium) subscriptions only to some specific subscribers of a channel or to some of our contacts, see [here »](https://core.telegram.org/api/giveaways) for more info on giveaways and gifts.

func (*InputStorePaymentPremiumGiftCode) CRC

func (*InputStorePaymentPremiumGiftCode) FlagIndex

func (*InputStorePaymentPremiumGiftCode) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentPremiumGiftCode) ImplementsInputStorePaymentPurpose()

type InputStorePaymentPremiumGiveaway

type InputStorePaymentPremiumGiveaway struct {
	OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"`
	WinnersAreVisible  bool `tl:"flag:3,encoded_in_bitflags"`
	BoostPeer          InputPeer
	AdditionalPeers    []InputPeer `tl:"flag:1"`
	CountriesIso2      []string    `tl:"flag:2"`
	PrizeDescription   string      `tl:"flag:4"`
	RandomID           int64
	UntilDate          int32
	Currency           string
	Amount             int64
}

Used to pay for a [giveaway, see here »](https://core.telegram.org/api/giveaways) for more info.

func (*InputStorePaymentPremiumGiveaway) CRC

func (*InputStorePaymentPremiumGiveaway) FlagIndex

func (*InputStorePaymentPremiumGiveaway) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentPremiumGiveaway) ImplementsInputStorePaymentPurpose()

type InputStorePaymentPremiumSubscription

type InputStorePaymentPremiumSubscription struct {
	Restore bool `tl:"flag:0,encoded_in_bitflags"`
	Upgrade bool `tl:"flag:1,encoded_in_bitflags"`
}

Info about a Telegram Premium purchase

func (*InputStorePaymentPremiumSubscription) CRC

func (*InputStorePaymentPremiumSubscription) FlagIndex

func (*InputStorePaymentPremiumSubscription) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentPremiumSubscription) ImplementsInputStorePaymentPurpose()

type InputStorePaymentPurpose

type InputStorePaymentPurpose interface {
	tl.Object
	ImplementsInputStorePaymentPurpose()
}

type InputStorePaymentStarsGift

type InputStorePaymentStarsGift struct {
	UserID   InputUser
	Stars    int64
	Currency string
	Amount   int64
}

func (*InputStorePaymentStarsGift) CRC

func (*InputStorePaymentStarsGift) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentStarsGift) ImplementsInputStorePaymentPurpose()

type InputStorePaymentStarsTopup

type InputStorePaymentStarsTopup struct {
	Stars    int64
	Currency string
	Amount   int64
}

func (*InputStorePaymentStarsTopup) CRC

func (*InputStorePaymentStarsTopup) ImplementsInputStorePaymentPurpose

func (*InputStorePaymentStarsTopup) ImplementsInputStorePaymentPurpose()

type InputTakeoutFileLocation

type InputTakeoutFileLocation struct{}

Used to download a JSON file that will contain all personal data related to features that do not have a specialized [takeout method](https://core.telegram.org/api/takeout) yet, see [here »](https://core.telegram.org/api/takeout) for more info on the takeout API.

func (*InputTakeoutFileLocation) CRC

func (*InputTakeoutFileLocation) ImplementsInputFileLocation

func (*InputTakeoutFileLocation) ImplementsInputFileLocation()

type InputTheme

type InputTheme interface {
	tl.Object
	ImplementsInputTheme()
}

type InputThemeObj

type InputThemeObj struct {
	ID         int64
	AccessHash int64
}

Theme

func (*InputThemeObj) CRC

func (*InputThemeObj) CRC() uint32

func (*InputThemeObj) ImplementsInputTheme

func (*InputThemeObj) ImplementsInputTheme()

type InputThemeSettings

type InputThemeSettings struct {
	MessageColorsAnimated bool `tl:"flag:2,encoded_in_bitflags"`
	BaseTheme             BaseTheme
	AccentColor           int32
	OutboxAccentColor     int32              `tl:"flag:3"`
	MessageColors         []int32            `tl:"flag:0"`
	Wallpaper             InputWallPaper     `tl:"flag:1"`
	WallpaperSettings     *WallPaperSettings `tl:"flag:1"`
}

Theme settings

func (*InputThemeSettings) CRC

func (*InputThemeSettings) CRC() uint32

func (*InputThemeSettings) FlagIndex

func (*InputThemeSettings) FlagIndex() int

type InputThemeSlug

type InputThemeSlug struct {
	Slug string
}

Theme by theme ID

func (*InputThemeSlug) CRC

func (*InputThemeSlug) CRC() uint32

func (*InputThemeSlug) ImplementsInputTheme

func (*InputThemeSlug) ImplementsInputTheme()

type InputUser

type InputUser interface {
	tl.Object
	ImplementsInputUser()
}

type InputUserEmpty

type InputUserEmpty struct{}

Empty constructor, does not define a user.

func (*InputUserEmpty) CRC

func (*InputUserEmpty) CRC() uint32

func (*InputUserEmpty) ImplementsInputUser

func (*InputUserEmpty) ImplementsInputUser()

type InputUserFromMessage

type InputUserFromMessage struct {
	Peer   InputPeer
	MsgID  int32
	UserID int64
}

Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.

func (*InputUserFromMessage) CRC

func (*InputUserFromMessage) ImplementsInputUser

func (*InputUserFromMessage) ImplementsInputUser()

type InputUserObj

type InputUserObj struct {
	UserID     int64
	AccessHash int64
}

Defines a user for further interaction.

func (*InputUserObj) CRC

func (*InputUserObj) CRC() uint32

func (*InputUserObj) ImplementsInputUser

func (*InputUserObj) ImplementsInputUser()

type InputUserSelf

type InputUserSelf struct{}

Defines the current user.

func (*InputUserSelf) CRC

func (*InputUserSelf) CRC() uint32

func (*InputUserSelf) ImplementsInputUser

func (*InputUserSelf) ImplementsInputUser()

type InputWallPaper

type InputWallPaper interface {
	tl.Object
	ImplementsInputWallPaper()
}

type InputWallPaperNoFile

type InputWallPaperNoFile struct {
	ID int64
}

[Wallpaper](https://core.telegram.org/api/wallpapers) with no file access hash, used for example when deleting (`unsave=true`) wallpapers using [account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper), specifying just the wallpaper ID.

func (*InputWallPaperNoFile) CRC

func (*InputWallPaperNoFile) ImplementsInputWallPaper

func (*InputWallPaperNoFile) ImplementsInputWallPaper()

type InputWallPaperObj

type InputWallPaperObj struct {
	ID         int64
	AccessHash int64
}

[Wallpaper](https://core.telegram.org/api/wallpapers)

func (*InputWallPaperObj) CRC

func (*InputWallPaperObj) CRC() uint32

func (*InputWallPaperObj) ImplementsInputWallPaper

func (*InputWallPaperObj) ImplementsInputWallPaper()

type InputWallPaperSlug

type InputWallPaperSlug struct {
	Slug string
}

[Wallpaper](https://core.telegram.org/api/wallpapers) by slug (a unique ID, obtained from a [wallpaper link »](https://core.telegram.org/api/links#wallpaper-links))

func (*InputWallPaperSlug) CRC

func (*InputWallPaperSlug) CRC() uint32

func (*InputWallPaperSlug) ImplementsInputWallPaper

func (*InputWallPaperSlug) ImplementsInputWallPaper()

type InputWebDocument

type InputWebDocument struct {
	URL        string
	Size       int32
	MimeType   string
	Attributes []DocumentAttribute
}

The document

func (*InputWebDocument) CRC

func (*InputWebDocument) CRC() uint32

type InputWebFileAudioAlbumThumbLocation

type InputWebFileAudioAlbumThumbLocation struct {
	Small     bool          `tl:"flag:2,encoded_in_bitflags"`
	Document  InputDocument `tl:"flag:0"`
	Title     string        `tl:"flag:1"`
	Performer string        `tl:"flag:1"`
}

Used to download an album cover for any music file using [upload.getWebFile](https://core.telegram.org/method/upload.getWebFile), see the [webfile docs for more info »](https://core.telegram.org/api/files#downloading-webfiles).

func (*InputWebFileAudioAlbumThumbLocation) CRC

func (*InputWebFileAudioAlbumThumbLocation) FlagIndex

func (*InputWebFileAudioAlbumThumbLocation) ImplementsInputWebFileLocation

func (*InputWebFileAudioAlbumThumbLocation) ImplementsInputWebFileLocation()

type InputWebFileGeoPointLocation

type InputWebFileGeoPointLocation struct {
	GeoPoint   InputGeoPoint
	AccessHash int64
	W          int32
	H          int32
	Zoom       int32
	Scale      int32
}

Used to download a server-generated image with the map preview from a [geoPoint](https://core.telegram.org/constructor/geoPoint), see the [webfile docs for more info »](https://core.telegram.org/api/files#downloading-webfiles).

func (*InputWebFileGeoPointLocation) CRC

func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation

func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation()

type InputWebFileLocation

type InputWebFileLocation interface {
	tl.Object
	ImplementsInputWebFileLocation()
}

type InputWebFileLocationObj

type InputWebFileLocationObj struct {
	URL        string
	AccessHash int64
}

Location of a remote HTTP(s) file

func (*InputWebFileLocationObj) CRC

func (*InputWebFileLocationObj) ImplementsInputWebFileLocation

func (*InputWebFileLocationObj) ImplementsInputWebFileLocation()

type InviteLinkOptions

type InviteLinkOptions struct {
	LegacyRevokePermanent bool   `json:"legacy_revoke_permanent,omitempty"`
	Expire                int32  `json:"expire,omitempty"`
	Limit                 int32  `json:"limit,omitempty"`
	Title                 string `json:"title,omitempty"`
	RequestNeeded         bool   `json:"request_needed,omitempty"`
}

type Invoice

type Invoice struct {
	Test                     bool `tl:"flag:0,encoded_in_bitflags"`
	NameRequested            bool `tl:"flag:1,encoded_in_bitflags"`
	PhoneRequested           bool `tl:"flag:2,encoded_in_bitflags"`
	EmailRequested           bool `tl:"flag:3,encoded_in_bitflags"`
	ShippingAddressRequested bool `tl:"flag:4,encoded_in_bitflags"`
	Flexible                 bool `tl:"flag:5,encoded_in_bitflags"`
	PhoneToProvider          bool `tl:"flag:6,encoded_in_bitflags"`
	EmailToProvider          bool `tl:"flag:7,encoded_in_bitflags"`
	Recurring                bool `tl:"flag:9,encoded_in_bitflags"`
	Currency                 string
	Prices                   []*LabeledPrice
	MaxTipAmount             int64   `tl:"flag:8"`
	SuggestedTipAmounts      []int64 `tl:"flag:8"`
	TermsURL                 string  `tl:"flag:10"`
}

Invoice

func (*Invoice) CRC

func (*Invoice) CRC() uint32

func (*Invoice) FlagIndex

func (*Invoice) FlagIndex() int

type InvokeWithLayerParams

type InvokeWithLayerParams struct {
	Layer int32
	Query tl.Object
}

func (*InvokeWithLayerParams) CRC

type InvokeWithTakeoutParams

type InvokeWithTakeoutParams struct {
	TakeoutID int64
	Query     tl.Object
}

func (*InvokeWithTakeoutParams) CRC

type JsonArray

type JsonArray struct {
	Value []JsonValue
}

JSON array

func (*JsonArray) CRC

func (*JsonArray) CRC() uint32

func (*JsonArray) ImplementsJsonValue

func (*JsonArray) ImplementsJsonValue()

type JsonBool

type JsonBool struct {
	Value bool
}

JSON boolean value

func (*JsonBool) CRC

func (*JsonBool) CRC() uint32

func (*JsonBool) ImplementsJsonValue

func (*JsonBool) ImplementsJsonValue()

type JsonNull

type JsonNull struct{}

null JSON value

func (*JsonNull) CRC

func (*JsonNull) CRC() uint32

func (*JsonNull) ImplementsJsonValue

func (*JsonNull) ImplementsJsonValue()

type JsonNumber

type JsonNumber struct {
	Value float64
}

JSON numeric value

func (*JsonNumber) CRC

func (*JsonNumber) CRC() uint32

func (*JsonNumber) ImplementsJsonValue

func (*JsonNumber) ImplementsJsonValue()

type JsonObject

type JsonObject struct {
	Value []*JsonObjectValue
}

JSON object value

func (*JsonObject) CRC

func (*JsonObject) CRC() uint32

func (*JsonObject) ImplementsJsonValue

func (*JsonObject) ImplementsJsonValue()

type JsonObjectValue

type JsonObjectValue struct {
	Key   string
	Value JsonValue
}

JSON key: value pair

func (*JsonObjectValue) CRC

func (*JsonObjectValue) CRC() uint32

type JsonString

type JsonString struct {
	Value string
}

JSON string

func (*JsonString) CRC

func (*JsonString) CRC() uint32

func (*JsonString) ImplementsJsonValue

func (*JsonString) ImplementsJsonValue()

type JsonValue

type JsonValue interface {
	tl.Object
	ImplementsJsonValue()
}

type KeyboardButton

type KeyboardButton interface {
	tl.Object
	ImplementsKeyboardButton()
}

type KeyboardButtonBuy

type KeyboardButtonBuy struct {
	Text string
}

Button to buy a product

func (*KeyboardButtonBuy) CRC

func (*KeyboardButtonBuy) CRC() uint32

func (*KeyboardButtonBuy) ImplementsKeyboardButton

func (*KeyboardButtonBuy) ImplementsKeyboardButton()

type KeyboardButtonCallback

type KeyboardButtonCallback struct {
	RequiresPassword bool `tl:"flag:0,encoded_in_bitflags"`
	Text             string
	Data             []byte
}

Callback button

func (*KeyboardButtonCallback) CRC

func (*KeyboardButtonCallback) FlagIndex

func (*KeyboardButtonCallback) FlagIndex() int

func (*KeyboardButtonCallback) ImplementsKeyboardButton

func (*KeyboardButtonCallback) ImplementsKeyboardButton()

type KeyboardButtonGame

type KeyboardButtonGame struct {
	Text string
}

Button to start a game

func (*KeyboardButtonGame) CRC

func (*KeyboardButtonGame) CRC() uint32

func (*KeyboardButtonGame) ImplementsKeyboardButton

func (*KeyboardButtonGame) ImplementsKeyboardButton()

type KeyboardButtonObj

type KeyboardButtonObj struct {
	Text string
}

Bot keyboard button

func (*KeyboardButtonObj) CRC

func (*KeyboardButtonObj) CRC() uint32

func (*KeyboardButtonObj) ImplementsKeyboardButton

func (*KeyboardButtonObj) ImplementsKeyboardButton()

type KeyboardButtonRequestGeoLocation

type KeyboardButtonRequestGeoLocation struct {
	Text string
}

Button to request a user's geolocation

func (*KeyboardButtonRequestGeoLocation) CRC

func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton

func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton()

type KeyboardButtonRequestPeer

type KeyboardButtonRequestPeer struct {
	Text        string
	ButtonID    int32
	PeerType    RequestPeerType
	MaxQuantity int32
}

Prompts the user to select and share one or more peers with the bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer)

func (*KeyboardButtonRequestPeer) CRC

func (*KeyboardButtonRequestPeer) ImplementsKeyboardButton

func (*KeyboardButtonRequestPeer) ImplementsKeyboardButton()

type KeyboardButtonRequestPhone

type KeyboardButtonRequestPhone struct {
	Text string
}

Button to request a user's phone number

func (*KeyboardButtonRequestPhone) CRC

func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton

func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton()

type KeyboardButtonRequestPoll

type KeyboardButtonRequestPoll struct {
	Quiz bool `tl:"flag:0"`
	Text string
}

A button that allows the user to create and send a poll when pressed; available only in private

func (*KeyboardButtonRequestPoll) CRC

func (*KeyboardButtonRequestPoll) FlagIndex

func (*KeyboardButtonRequestPoll) FlagIndex() int

func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton

func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton()

type KeyboardButtonRow

type KeyboardButtonRow struct {
	Buttons []KeyboardButton
}

Inline keyboard row

func (*KeyboardButtonRow) CRC

func (*KeyboardButtonRow) CRC() uint32

type KeyboardButtonSimpleWebView

type KeyboardButtonSimpleWebView struct {
	Text string
	URL  string
}

Button to open a [bot mini app](https://core.telegram.org/api/bots/webapps) using [messages.requestSimpleWebView](https://core.telegram.org/method/messages.requestSimpleWebView), without sending user information to the web app.

func (*KeyboardButtonSimpleWebView) CRC

func (*KeyboardButtonSimpleWebView) ImplementsKeyboardButton

func (*KeyboardButtonSimpleWebView) ImplementsKeyboardButton()

type KeyboardButtonSwitchInline

type KeyboardButtonSwitchInline struct {
	SamePeer  bool `tl:"flag:0,encoded_in_bitflags"`
	Text      string
	Query     string
	PeerTypes []InlineQueryPeerType `tl:"flag:1"`
}

Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.

func (*KeyboardButtonSwitchInline) CRC

func (*KeyboardButtonSwitchInline) FlagIndex

func (*KeyboardButtonSwitchInline) FlagIndex() int

func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton

func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton()

type KeyboardButtonURL

type KeyboardButtonURL struct {
	Text string
	URL  string
}

URL button

func (*KeyboardButtonURL) CRC

func (*KeyboardButtonURL) CRC() uint32

func (*KeyboardButtonURL) ImplementsKeyboardButton

func (*KeyboardButtonURL) ImplementsKeyboardButton()

type KeyboardButtonURLAuth

type KeyboardButtonURLAuth struct {
	Text     string
	FwdText  string `tl:"flag:0"`
	URL      string
	ButtonID int32
}

Button to request a user to authorize via URL using [Seamless Telegram Login](https://core.telegram.orghttps://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots). When the user clicks on such a button, [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth) should be called, providing the `button_id` and the ID of the container message. The returned [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest) object will contain more details about the authorization request (`request_write_access` if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth) to get a [urlAuthResultAccepted](https://core.telegram.org/constructor/urlAuthResultAccepted) with the URL to open instead of the `url` of this constructor, or a [urlAuthResultDefault](https://core.telegram.org/constructor/urlAuthResultDefault), in which case the `url` of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the `url` of this constructor must be used.

func (*KeyboardButtonURLAuth) CRC

func (*KeyboardButtonURLAuth) FlagIndex

func (*KeyboardButtonURLAuth) FlagIndex() int

func (*KeyboardButtonURLAuth) ImplementsKeyboardButton

func (*KeyboardButtonURLAuth) ImplementsKeyboardButton()

type KeyboardButtonUserProfile

type KeyboardButtonUserProfile struct {
	Text   string
	UserID int64
}

Button that links directly to a user profile

func (*KeyboardButtonUserProfile) CRC

func (*KeyboardButtonUserProfile) ImplementsKeyboardButton

func (*KeyboardButtonUserProfile) ImplementsKeyboardButton()

type KeyboardButtonWebView

type KeyboardButtonWebView struct {
	Text string
	URL  string
}

Button to open a [bot mini app](https://core.telegram.org/api/bots/webapps) using [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView), sending over user information after user confirmation.

func (*KeyboardButtonWebView) CRC

func (*KeyboardButtonWebView) ImplementsKeyboardButton

func (*KeyboardButtonWebView) ImplementsKeyboardButton()

type LabeledPrice

type LabeledPrice struct {
	Label  string
	Amount int64
}

This object represents a portion of the price for goods or services.

func (*LabeledPrice) CRC

func (*LabeledPrice) CRC() uint32

type LangPackDifference

type LangPackDifference struct {
	LangCode    string
	FromVersion int32
	Version     int32
	Strings     []LangPackString
}

Changes to the app's localization pack

func (*LangPackDifference) CRC

func (*LangPackDifference) CRC() uint32

type LangPackLanguage

type LangPackLanguage struct {
	Official        bool `tl:"flag:0,encoded_in_bitflags"`
	Rtl             bool `tl:"flag:2,encoded_in_bitflags"`
	Beta            bool `tl:"flag:3,encoded_in_bitflags"`
	Name            string
	NativeName      string
	LangCode        string
	BaseLangCode    string `tl:"flag:1"`
	PluralCode      string
	StringsCount    int32
	TranslatedCount int32
	TranslationsURL string
}

Identifies a localization pack

func (*LangPackLanguage) CRC

func (*LangPackLanguage) CRC() uint32

func (*LangPackLanguage) FlagIndex

func (*LangPackLanguage) FlagIndex() int

type LangPackString

type LangPackString interface {
	tl.Object
	ImplementsLangPackString()
}

type LangPackStringDeleted

type LangPackStringDeleted struct {
	Key string
}

Deleted localization string

func (*LangPackStringDeleted) CRC

func (*LangPackStringDeleted) ImplementsLangPackString

func (*LangPackStringDeleted) ImplementsLangPackString()

type LangPackStringObj

type LangPackStringObj struct {
	Key   string
	Value string
}

Translated localization string

func (*LangPackStringObj) CRC

func (*LangPackStringObj) CRC() uint32

func (*LangPackStringObj) ImplementsLangPackString

func (*LangPackStringObj) ImplementsLangPackString()

type LangPackStringPluralized

type LangPackStringPluralized struct {
	Key        string
	ZeroValue  string `tl:"flag:0"`
	OneValue   string `tl:"flag:1"`
	TwoValue   string `tl:"flag:2"`
	FewValue   string `tl:"flag:3"`
	ManyValue  string `tl:"flag:4"`
	OtherValue string
}

A language pack string which has different forms based on the number of some object it mentions. See [https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html](https://core.telegram.orghttps://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) for more info

func (*LangPackStringPluralized) CRC

func (*LangPackStringPluralized) FlagIndex

func (*LangPackStringPluralized) FlagIndex() int

func (*LangPackStringPluralized) ImplementsLangPackString

func (*LangPackStringPluralized) ImplementsLangPackString()

type LangpackGetDifferenceParams

type LangpackGetDifferenceParams struct {
	LangPack    string
	LangCode    string
	FromVersion int32
}

func (*LangpackGetDifferenceParams) CRC

type LangpackGetLangPackParams

type LangpackGetLangPackParams struct {
	LangPack string
	LangCode string
}

func (*LangpackGetLangPackParams) CRC

type LangpackGetLanguageParams

type LangpackGetLanguageParams struct {
	LangPack string
	LangCode string
}

func (*LangpackGetLanguageParams) CRC

type LangpackGetLanguagesParams

type LangpackGetLanguagesParams struct {
	LangPack string
}

func (*LangpackGetLanguagesParams) CRC

type LangpackGetStringsParams

type LangpackGetStringsParams struct {
	LangPack string
	LangCode string
	Keys     []string
}

func (*LangpackGetStringsParams) CRC

type LoginOptions

type LoginOptions struct {
	Password         string `json:"password,omitempty"`
	Code             string `json:"code,omitempty"`
	CodeHash         string `json:"code_hash,omitempty"`
	CodeCallback     func() (string, error)
	PasswordCallback func() (string, error)
	FirstName        string `json:"first_name,omitempty"`
	LastName         string `json:"last_name,omitempty"`
}

type MaskCoords

type MaskCoords struct {
	N    int32
	X    float64
	Y    float64
	Zoom float64
}

Position on a photo where a mask should be placed when [attaching stickers to media »](https://core.telegram.org/api/stickers#attached-stickers)

func (*MaskCoords) CRC

func (*MaskCoords) CRC() uint32

type MediaArea

type MediaArea interface {
	tl.Object
	ImplementsMediaArea()
}

type MediaAreaChannelPost

type MediaAreaChannelPost struct {
	Coordinates *MediaAreaCoordinates
	ChannelID   int64
	MsgID       int32
}

Represents a channel post.

func (*MediaAreaChannelPost) CRC

func (*MediaAreaChannelPost) ImplementsMediaArea

func (*MediaAreaChannelPost) ImplementsMediaArea()

type MediaAreaCoordinates

type MediaAreaCoordinates struct {
	X        float64
	Y        float64
	W        float64
	H        float64
	Rotation float64
	Radius   float64 `tl:"flag:0"`
}

Coordinates and size of a clicable rectangular area on top of a story.

func (*MediaAreaCoordinates) CRC

func (*MediaAreaCoordinates) FlagIndex

func (*MediaAreaCoordinates) FlagIndex() int

type MediaAreaGeoPoint

type MediaAreaGeoPoint struct {
	Coordinates *MediaAreaCoordinates
	Geo         GeoPoint
	Address     *GeoPointAddress `tl:"flag:0"`
}

Represents a geolocation tag attached to a [story](https://core.telegram.org/api/stories).

func (*MediaAreaGeoPoint) CRC

func (*MediaAreaGeoPoint) CRC() uint32

func (*MediaAreaGeoPoint) FlagIndex

func (*MediaAreaGeoPoint) FlagIndex() int

func (*MediaAreaGeoPoint) ImplementsMediaArea

func (*MediaAreaGeoPoint) ImplementsMediaArea()

type MediaAreaSuggestedReaction

type MediaAreaSuggestedReaction struct {
	Dark        bool `tl:"flag:0,encoded_in_bitflags"`
	Flipped     bool `tl:"flag:1,encoded_in_bitflags"`
	Coordinates *MediaAreaCoordinates
	Reaction    Reaction
}

Represents a reaction bubble.

func (*MediaAreaSuggestedReaction) CRC

func (*MediaAreaSuggestedReaction) FlagIndex

func (*MediaAreaSuggestedReaction) FlagIndex() int

func (*MediaAreaSuggestedReaction) ImplementsMediaArea

func (*MediaAreaSuggestedReaction) ImplementsMediaArea()

type MediaAreaURL

type MediaAreaURL struct {
	Coordinates *MediaAreaCoordinates
	URL         string
}

func (*MediaAreaURL) CRC

func (*MediaAreaURL) CRC() uint32

func (*MediaAreaURL) ImplementsMediaArea

func (*MediaAreaURL) ImplementsMediaArea()

type MediaAreaVenue

type MediaAreaVenue struct {
	Coordinates *MediaAreaCoordinates
	Geo         GeoPoint
	Title       string
	Address     string
	Provider    string
	VenueID     string
	VenueType   string
}

Represents a location tag attached to a [story](https://core.telegram.org/api/stories), with additional venue information.

func (*MediaAreaVenue) CRC

func (*MediaAreaVenue) CRC() uint32

func (*MediaAreaVenue) ImplementsMediaArea

func (*MediaAreaVenue) ImplementsMediaArea()

type MediaAreaWeather

type MediaAreaWeather struct {
	Coordinates  *MediaAreaCoordinates
	Emoji        string
	TemperatureC float64
	Color        int32
}

func (*MediaAreaWeather) CRC

func (*MediaAreaWeather) CRC() uint32

func (*MediaAreaWeather) ImplementsMediaArea

func (*MediaAreaWeather) ImplementsMediaArea()

type MediaMetadata

type MediaMetadata struct {
	FileName              string              `json:"file_name,omitempty"`
	BuissnessConnectionId string              `json:"buissness_connection_id,omitempty"`
	Thumb                 interface{}         `json:"thumb,omitempty"`
	Attributes            []DocumentAttribute `json:"attributes,omitempty"`
	ForceDocument         bool                `json:"force_document,omitempty"`
	TTL                   int32               `json:"ttl,omitempty"`
	Spoiler               bool                `json:"spoiler,omitempty"`
	DisableThumb          bool                `json:"gen_thumb,omitempty"`
	MimeType              string              `json:"mime_type,omitempty"`
	ProgressCallback      func(int32, int32)  `json:"-"`
	UploadThreads         int                 `json:"-"`
	FileAbsPath           string              `json:"-"`
}

type MediaOptions

type MediaOptions struct {
	Attributes       []DocumentAttribute `json:"attributes,omitempty"`
	MimeType         string              `json:"mime_type,omitempty"`
	Caption          interface{}         `json:"caption,omitempty"`
	ClearDraft       bool                `json:"clear_draft,omitempty"`
	Entites          []MessageEntity     `json:"entities,omitempty"`
	FileName         string              `json:"file_name,omitempty"`
	ForceDocument    bool                `json:"force_document,omitempty"`
	InvertMedia      bool                `json:"invert_media,omitempty"`
	LinkPreview      bool                `json:"link_preview,omitempty"`
	NoForwards       bool                `json:"no_forwards,omitempty"`
	NoSoundVideo     bool                `json:"no_sound_video,omitempty"`
	ParseMode        string              `json:"parse_mode,omitempty"`
	ReplyID          int32               `json:"reply_id,omitempty"`
	ReplyMarkup      ReplyMarkup         `json:"reply_markup,omitempty"`
	ScheduleDate     int32               `json:"schedule_date,omitempty"`
	SendAs           interface{}         `json:"send_as,omitempty"`
	Silent           bool                `json:"silent,omitempty"`
	Thumb            interface{}         `json:"thumb,omitempty"`
	TTL              int32               `json:"ttl,omitempty"`
	Spoiler          bool                `json:"spoiler,omitempty"`
	ProgressCallback func(int32, int32)  `json:"-"`
	UploadThreads    int                 `json:"-"`
}

type Message

type Message interface {
	tl.Object
	ImplementsMessage()
}

type MessageAction

type MessageAction interface {
	tl.Object
	ImplementsMessageAction()
}

type MessageActionBoostApply

type MessageActionBoostApply struct {
	Boosts int32
}

func (*MessageActionBoostApply) CRC

func (*MessageActionBoostApply) ImplementsMessageAction

func (*MessageActionBoostApply) ImplementsMessageAction()

type MessageActionBotAllowed

type MessageActionBotAllowed struct {
	AttachMenu  bool   `tl:"flag:1,encoded_in_bitflags"`
	FromRequest bool   `tl:"flag:3,encoded_in_bitflags"`
	Domain      string `tl:"flag:0"`
	App         BotApp `tl:"flag:2"`
}

We have given the bot permission to send us direct messages.

func (*MessageActionBotAllowed) CRC

func (*MessageActionBotAllowed) FlagIndex

func (*MessageActionBotAllowed) FlagIndex() int

func (*MessageActionBotAllowed) ImplementsMessageAction

func (*MessageActionBotAllowed) ImplementsMessageAction()

type MessageActionChannelCreate

type MessageActionChannelCreate struct {
	Title string
}

The channel was created

func (*MessageActionChannelCreate) CRC

func (*MessageActionChannelCreate) ImplementsMessageAction

func (*MessageActionChannelCreate) ImplementsMessageAction()

type MessageActionChannelMigrateFrom

type MessageActionChannelMigrateFrom struct {
	Title  string
	ChatID int64
}

Indicates the channel was [migrated](https://core.telegram.org/api/channel) from the specified chat

func (*MessageActionChannelMigrateFrom) CRC

func (*MessageActionChannelMigrateFrom) ImplementsMessageAction

func (*MessageActionChannelMigrateFrom) ImplementsMessageAction()

type MessageActionChatAddUser

type MessageActionChatAddUser struct {
	Users []int64
}

New member in the group

func (*MessageActionChatAddUser) CRC

func (*MessageActionChatAddUser) ImplementsMessageAction

func (*MessageActionChatAddUser) ImplementsMessageAction()

type MessageActionChatCreate

type MessageActionChatCreate struct {
	Title string
	Users []int64
}

Group created

func (*MessageActionChatCreate) CRC

func (*MessageActionChatCreate) ImplementsMessageAction

func (*MessageActionChatCreate) ImplementsMessageAction()

type MessageActionChatDeletePhoto

type MessageActionChatDeletePhoto struct{}

Group profile photo removed.

func (*MessageActionChatDeletePhoto) CRC

func (*MessageActionChatDeletePhoto) ImplementsMessageAction

func (*MessageActionChatDeletePhoto) ImplementsMessageAction()

type MessageActionChatDeleteUser

type MessageActionChatDeleteUser struct {
	UserID int64
}

User left the group.

func (*MessageActionChatDeleteUser) CRC

func (*MessageActionChatDeleteUser) ImplementsMessageAction

func (*MessageActionChatDeleteUser) ImplementsMessageAction()

type MessageActionChatEditPhoto

type MessageActionChatEditPhoto struct {
	Photo Photo
}

Group profile changed

func (*MessageActionChatEditPhoto) CRC

func (*MessageActionChatEditPhoto) ImplementsMessageAction

func (*MessageActionChatEditPhoto) ImplementsMessageAction()

type MessageActionChatEditTitle

type MessageActionChatEditTitle struct {
	Title string
}

Group name changed.

func (*MessageActionChatEditTitle) CRC

func (*MessageActionChatEditTitle) ImplementsMessageAction

func (*MessageActionChatEditTitle) ImplementsMessageAction()
type MessageActionChatJoinedByLink struct {
	InviterID int64
}

A user joined the chat via an invite link

func (*MessageActionChatJoinedByLink) CRC

func (*MessageActionChatJoinedByLink) ImplementsMessageAction

func (*MessageActionChatJoinedByLink) ImplementsMessageAction()

type MessageActionChatJoinedByRequest

type MessageActionChatJoinedByRequest struct{}

A user was accepted into the group by an admin

func (*MessageActionChatJoinedByRequest) CRC

func (*MessageActionChatJoinedByRequest) ImplementsMessageAction

func (*MessageActionChatJoinedByRequest) ImplementsMessageAction()

type MessageActionChatMigrateTo

type MessageActionChatMigrateTo struct {
	ChannelID int64
}

Indicates the chat was [migrated](https://core.telegram.org/api/channel) to the specified supergroup

func (*MessageActionChatMigrateTo) CRC

func (*MessageActionChatMigrateTo) ImplementsMessageAction

func (*MessageActionChatMigrateTo) ImplementsMessageAction()

type MessageActionContactSignUp

type MessageActionContactSignUp struct{}

A contact just signed up to telegram

func (*MessageActionContactSignUp) CRC

func (*MessageActionContactSignUp) ImplementsMessageAction

func (*MessageActionContactSignUp) ImplementsMessageAction()

type MessageActionCustomAction

type MessageActionCustomAction struct {
	Message string
}

Custom action (most likely not supported by the current layer, an upgrade might be needed)

func (*MessageActionCustomAction) CRC

func (*MessageActionCustomAction) ImplementsMessageAction

func (*MessageActionCustomAction) ImplementsMessageAction()

type MessageActionEmpty

type MessageActionEmpty struct{}

Empty constructor.

func (*MessageActionEmpty) CRC

func (*MessageActionEmpty) CRC() uint32

func (*MessageActionEmpty) ImplementsMessageAction

func (*MessageActionEmpty) ImplementsMessageAction()

type MessageActionGameScore

type MessageActionGameScore struct {
	GameID int64
	Score  int32
}

Someone scored in a game

func (*MessageActionGameScore) CRC

func (*MessageActionGameScore) ImplementsMessageAction

func (*MessageActionGameScore) ImplementsMessageAction()

type MessageActionGeoProximityReached

type MessageActionGeoProximityReached struct {
	FromID   Peer
	ToID     Peer
	Distance int32
}

A user of the chat is now in proximity of another user

func (*MessageActionGeoProximityReached) CRC

func (*MessageActionGeoProximityReached) ImplementsMessageAction

func (*MessageActionGeoProximityReached) ImplementsMessageAction()

type MessageActionGiftCode

type MessageActionGiftCode struct {
	ViaGiveaway    bool `tl:"flag:0,encoded_in_bitflags"`
	Unclaimed      bool `tl:"flag:2,encoded_in_bitflags"`
	BoostPeer      Peer `tl:"flag:1"`
	Months         int32
	Slug           string
	Currency       string `tl:"flag:2"`
	Amount         int64  `tl:"flag:2"`
	CryptoCurrency string `tl:"flag:3"`
	CryptoAmount   int64  `tl:"flag:3"`
}

Contains a [Telegram Premium giftcode link](https://core.telegram.org/api/links#premium-giftcode-links).

func (*MessageActionGiftCode) CRC

func (*MessageActionGiftCode) FlagIndex

func (*MessageActionGiftCode) FlagIndex() int

func (*MessageActionGiftCode) ImplementsMessageAction

func (*MessageActionGiftCode) ImplementsMessageAction()

type MessageActionGiftPremium

type MessageActionGiftPremium struct {
	Currency       string
	Amount         int64
	Months         int32
	CryptoCurrency string `tl:"flag:0"`
	CryptoAmount   int64  `tl:"flag:0"`
}

Info about a gifted Telegram Premium subscription

func (*MessageActionGiftPremium) CRC

func (*MessageActionGiftPremium) FlagIndex

func (*MessageActionGiftPremium) FlagIndex() int

func (*MessageActionGiftPremium) ImplementsMessageAction

func (*MessageActionGiftPremium) ImplementsMessageAction()

type MessageActionGiftStars

type MessageActionGiftStars struct {
	Currency       string
	Amount         int64
	Stars          int64
	CryptoCurrency string `tl:"flag:0"`
	CryptoAmount   int64  `tl:"flag:0"`
	TransactionID  string `tl:"flag:1"`
}

func (*MessageActionGiftStars) CRC

func (*MessageActionGiftStars) FlagIndex

func (*MessageActionGiftStars) FlagIndex() int

func (*MessageActionGiftStars) ImplementsMessageAction

func (*MessageActionGiftStars) ImplementsMessageAction()

type MessageActionGiveawayLaunch

type MessageActionGiveawayLaunch struct{}

A [giveaway](https://core.telegram.org/api/giveaways) was started.

func (*MessageActionGiveawayLaunch) CRC

func (*MessageActionGiveawayLaunch) ImplementsMessageAction

func (*MessageActionGiveawayLaunch) ImplementsMessageAction()

type MessageActionGiveawayResults

type MessageActionGiveawayResults struct {
	WinnersCount   int32
	UnclaimedCount int32
}

A [giveaway](https://core.telegram.org/api/giveaways) has ended.

func (*MessageActionGiveawayResults) CRC

func (*MessageActionGiveawayResults) ImplementsMessageAction

func (*MessageActionGiveawayResults) ImplementsMessageAction()

type MessageActionGroupCall

type MessageActionGroupCall struct {
	Call     *InputGroupCall
	Duration int32 `tl:"flag:0"`
}

The group call has ended

func (*MessageActionGroupCall) CRC

func (*MessageActionGroupCall) FlagIndex

func (*MessageActionGroupCall) FlagIndex() int

func (*MessageActionGroupCall) ImplementsMessageAction

func (*MessageActionGroupCall) ImplementsMessageAction()

type MessageActionGroupCallScheduled

type MessageActionGroupCallScheduled struct {
	Call         *InputGroupCall
	ScheduleDate int32
}

A group call was scheduled

func (*MessageActionGroupCallScheduled) CRC

func (*MessageActionGroupCallScheduled) ImplementsMessageAction

func (*MessageActionGroupCallScheduled) ImplementsMessageAction()

type MessageActionHistoryClear

type MessageActionHistoryClear struct{}

Chat history was cleared

func (*MessageActionHistoryClear) CRC

func (*MessageActionHistoryClear) ImplementsMessageAction

func (*MessageActionHistoryClear) ImplementsMessageAction()

type MessageActionInviteToGroupCall

type MessageActionInviteToGroupCall struct {
	Call  *InputGroupCall
	Users []int64
}

A set of users was invited to the group call

func (*MessageActionInviteToGroupCall) CRC

func (*MessageActionInviteToGroupCall) ImplementsMessageAction

func (*MessageActionInviteToGroupCall) ImplementsMessageAction()

type MessageActionPaymentRefunded

type MessageActionPaymentRefunded struct {
	Peer        Peer
	Currency    string
	TotalAmount int64
	Payload     []byte `tl:"flag:0"`
	Charge      *PaymentCharge
}

func (*MessageActionPaymentRefunded) CRC

func (*MessageActionPaymentRefunded) FlagIndex

func (*MessageActionPaymentRefunded) FlagIndex() int

func (*MessageActionPaymentRefunded) ImplementsMessageAction

func (*MessageActionPaymentRefunded) ImplementsMessageAction()

type MessageActionPaymentSent

type MessageActionPaymentSent struct {
	RecurringInit bool `tl:"flag:2,encoded_in_bitflags"`
	RecurringUsed bool `tl:"flag:3,encoded_in_bitflags"`
	Currency      string
	TotalAmount   int64
	InvoiceSlug   string `tl:"flag:0"`
}

A payment was sent

func (*MessageActionPaymentSent) CRC

func (*MessageActionPaymentSent) FlagIndex

func (*MessageActionPaymentSent) FlagIndex() int

func (*MessageActionPaymentSent) ImplementsMessageAction

func (*MessageActionPaymentSent) ImplementsMessageAction()

type MessageActionPaymentSentMe

type MessageActionPaymentSentMe struct {
	RecurringInit    bool `tl:"flag:2,encoded_in_bitflags"`
	RecurringUsed    bool `tl:"flag:3,encoded_in_bitflags"`
	Currency         string
	TotalAmount      int64
	Payload          []byte
	Info             *PaymentRequestedInfo `tl:"flag:0"`
	ShippingOptionID string                `tl:"flag:1"`
	Charge           *PaymentCharge
}

A user just sent a payment to me (a bot)

func (*MessageActionPaymentSentMe) CRC

func (*MessageActionPaymentSentMe) FlagIndex

func (*MessageActionPaymentSentMe) FlagIndex() int

func (*MessageActionPaymentSentMe) ImplementsMessageAction

func (*MessageActionPaymentSentMe) ImplementsMessageAction()

type MessageActionPhoneCall

type MessageActionPhoneCall struct {
	Video    bool `tl:"flag:2,encoded_in_bitflags"`
	CallID   int64
	Reason   PhoneCallDiscardReason `tl:"flag:0"`
	Duration int32                  `tl:"flag:1"`
}

A phone call

func (*MessageActionPhoneCall) CRC

func (*MessageActionPhoneCall) FlagIndex

func (*MessageActionPhoneCall) FlagIndex() int

func (*MessageActionPhoneCall) ImplementsMessageAction

func (*MessageActionPhoneCall) ImplementsMessageAction()

type MessageActionPinMessage

type MessageActionPinMessage struct{}

A message was pinned

func (*MessageActionPinMessage) CRC

func (*MessageActionPinMessage) ImplementsMessageAction

func (*MessageActionPinMessage) ImplementsMessageAction()

type MessageActionRequestedPeer

type MessageActionRequestedPeer struct {
	ButtonID int32
	Peers    []Peer
}

Contains info about one or more peers that the user shared with the bot after clicking on a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer) button.

func (*MessageActionRequestedPeer) CRC

func (*MessageActionRequestedPeer) ImplementsMessageAction

func (*MessageActionRequestedPeer) ImplementsMessageAction()

type MessageActionRequestedPeerSentMe

type MessageActionRequestedPeerSentMe struct {
	ButtonID int32
	Peers    []RequestedPeer
}

func (*MessageActionRequestedPeerSentMe) CRC

func (*MessageActionRequestedPeerSentMe) ImplementsMessageAction

func (*MessageActionRequestedPeerSentMe) ImplementsMessageAction()

type MessageActionScreenshotTaken

type MessageActionScreenshotTaken struct{}

A screenshot of the chat was taken

func (*MessageActionScreenshotTaken) CRC

func (*MessageActionScreenshotTaken) ImplementsMessageAction

func (*MessageActionScreenshotTaken) ImplementsMessageAction()

type MessageActionSecureValuesSent

type MessageActionSecureValuesSent struct {
	Types []SecureValueType
}

Request for secure [telegram passport](https://core.telegram.org/passport) values was sent

func (*MessageActionSecureValuesSent) CRC

func (*MessageActionSecureValuesSent) ImplementsMessageAction

func (*MessageActionSecureValuesSent) ImplementsMessageAction()

type MessageActionSecureValuesSentMe

type MessageActionSecureValuesSentMe struct {
	Values      []*SecureValue
	Credentials *SecureCredentialsEncrypted
}

Secure [telegram passport](https://core.telegram.org/passport) values were received

func (*MessageActionSecureValuesSentMe) CRC

func (*MessageActionSecureValuesSentMe) ImplementsMessageAction

func (*MessageActionSecureValuesSentMe) ImplementsMessageAction()

type MessageActionSetChatTheme

type MessageActionSetChatTheme struct {
	Emoticon string
}

The chat theme was changed

func (*MessageActionSetChatTheme) CRC

func (*MessageActionSetChatTheme) ImplementsMessageAction

func (*MessageActionSetChatTheme) ImplementsMessageAction()

type MessageActionSetChatWallPaper

type MessageActionSetChatWallPaper struct {
	Same      bool `tl:"flag:0,encoded_in_bitflags"`
	ForBoth   bool `tl:"flag:1,encoded_in_bitflags"`
	Wallpaper WallPaper
}

The [wallpaper »](https://core.telegram.org/api/wallpapers) of the current chat was changed.

func (*MessageActionSetChatWallPaper) CRC

func (*MessageActionSetChatWallPaper) FlagIndex

func (*MessageActionSetChatWallPaper) FlagIndex() int

func (*MessageActionSetChatWallPaper) ImplementsMessageAction

func (*MessageActionSetChatWallPaper) ImplementsMessageAction()

type MessageActionSetMessagesTtl

type MessageActionSetMessagesTtl struct {
	Period          int32
	AutoSettingFrom int64 `tl:"flag:0"`
}

The Time-To-Live of messages in this chat was changed.

func (*MessageActionSetMessagesTtl) CRC

func (*MessageActionSetMessagesTtl) FlagIndex

func (*MessageActionSetMessagesTtl) FlagIndex() int

func (*MessageActionSetMessagesTtl) ImplementsMessageAction

func (*MessageActionSetMessagesTtl) ImplementsMessageAction()

type MessageActionSuggestProfilePhoto

type MessageActionSuggestProfilePhoto struct {
	Photo Photo
}

A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://core.telegram.org/method/photos.uploadContactProfilePhoto).

func (*MessageActionSuggestProfilePhoto) CRC

func (*MessageActionSuggestProfilePhoto) ImplementsMessageAction

func (*MessageActionSuggestProfilePhoto) ImplementsMessageAction()

type MessageActionTopicCreate

type MessageActionTopicCreate struct {
	Title       string
	IconColor   int32
	IconEmojiID int64 `tl:"flag:0"`
}

A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created.

func (*MessageActionTopicCreate) CRC

func (*MessageActionTopicCreate) FlagIndex

func (*MessageActionTopicCreate) FlagIndex() int

func (*MessageActionTopicCreate) ImplementsMessageAction

func (*MessageActionTopicCreate) ImplementsMessageAction()

type MessageActionTopicEdit

type MessageActionTopicEdit struct {
	Title       string `tl:"flag:0"`
	IconEmojiID int64  `tl:"flag:1"`
	Closed      bool   `tl:"flag:2"`
	Hidden      bool   `tl:"flag:3"`
}

[Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited.

func (*MessageActionTopicEdit) CRC

func (*MessageActionTopicEdit) FlagIndex

func (*MessageActionTopicEdit) FlagIndex() int

func (*MessageActionTopicEdit) ImplementsMessageAction

func (*MessageActionTopicEdit) ImplementsMessageAction()

type MessageActionWebViewDataSent

type MessageActionWebViewDataSent struct {
	Text string
}

Data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user side service message).

func (*MessageActionWebViewDataSent) CRC

func (*MessageActionWebViewDataSent) ImplementsMessageAction

func (*MessageActionWebViewDataSent) ImplementsMessageAction()

type MessageActionWebViewDataSentMe

type MessageActionWebViewDataSentMe struct {
	Text string
	Data string
}

Data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (bot side service message).

func (*MessageActionWebViewDataSentMe) CRC

func (*MessageActionWebViewDataSentMe) ImplementsMessageAction

func (*MessageActionWebViewDataSentMe) ImplementsMessageAction()

type MessageEmpty

type MessageEmpty struct {
	ID     int32
	PeerID Peer `tl:"flag:0"`
}

Empty constructor, non-existent message.

func (*MessageEmpty) CRC

func (*MessageEmpty) CRC() uint32

func (*MessageEmpty) FlagIndex

func (*MessageEmpty) FlagIndex() int

func (*MessageEmpty) ImplementsMessage

func (*MessageEmpty) ImplementsMessage()

type MessageEntity

type MessageEntity interface {
	tl.Object
	ImplementsMessageEntity()
}

type MessageEntityBankCard

type MessageEntityBankCard struct {
	Offset int32
	Length int32
}

Indicates a credit card number

func (*MessageEntityBankCard) CRC

func (*MessageEntityBankCard) ImplementsMessageEntity

func (*MessageEntityBankCard) ImplementsMessageEntity()

type MessageEntityBlockquote

type MessageEntityBlockquote struct {
	Collapsed bool `tl:"flag:0,encoded_in_bitflags"`
	Offset    int32
	Length    int32
}

Message entity representing a block quote.

func (*MessageEntityBlockquote) CRC

func (*MessageEntityBlockquote) FlagIndex

func (*MessageEntityBlockquote) FlagIndex() int

func (*MessageEntityBlockquote) ImplementsMessageEntity

func (*MessageEntityBlockquote) ImplementsMessageEntity()

type MessageEntityBold

type MessageEntityBold struct {
	Offset int32
	Length int32
}

Message entity representing <strong>bold text</strong>.

func (*MessageEntityBold) CRC

func (*MessageEntityBold) CRC() uint32

func (*MessageEntityBold) ImplementsMessageEntity

func (*MessageEntityBold) ImplementsMessageEntity()

type MessageEntityBotCommand

type MessageEntityBotCommand struct {
	Offset int32
	Length int32
}

Message entity representing a bot /command

func (*MessageEntityBotCommand) CRC

func (*MessageEntityBotCommand) ImplementsMessageEntity

func (*MessageEntityBotCommand) ImplementsMessageEntity()

type MessageEntityCashtag

type MessageEntityCashtag struct {
	Offset int32
	Length int32
}

Message entity representing a <strong>$cashtag</strong>.

func (*MessageEntityCashtag) CRC

func (*MessageEntityCashtag) ImplementsMessageEntity

func (*MessageEntityCashtag) ImplementsMessageEntity()

type MessageEntityCode

type MessageEntityCode struct {
	Offset int32
	Length int32
}

Message entity representing a `codeblock`.

func (*MessageEntityCode) CRC

func (*MessageEntityCode) CRC() uint32

func (*MessageEntityCode) ImplementsMessageEntity

func (*MessageEntityCode) ImplementsMessageEntity()

type MessageEntityCustomEmoji

type MessageEntityCustomEmoji struct {
	Offset     int32
	Length     int32
	DocumentID int64
}

Represents a custom emoji.<br> Note that this entity must wrap exactly one regular emoji (the one contained in [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji).`alt`) in the related text, otherwise the server will ignore it.

func (*MessageEntityCustomEmoji) CRC

func (*MessageEntityCustomEmoji) ImplementsMessageEntity

func (*MessageEntityCustomEmoji) ImplementsMessageEntity()

type MessageEntityEmail

type MessageEntityEmail struct {
	Offset int32
	Length int32
}

Message entity representing an [email@example.com](https://core.telegram.orgmailto:email@example.com).

func (*MessageEntityEmail) CRC

func (*MessageEntityEmail) CRC() uint32

func (*MessageEntityEmail) ImplementsMessageEntity

func (*MessageEntityEmail) ImplementsMessageEntity()

type MessageEntityHashtag

type MessageEntityHashtag struct {
	Offset int32
	Length int32
}

<strong>#hashtag</strong> message entity

func (*MessageEntityHashtag) CRC

func (*MessageEntityHashtag) ImplementsMessageEntity

func (*MessageEntityHashtag) ImplementsMessageEntity()

type MessageEntityItalic

type MessageEntityItalic struct {
	Offset int32
	Length int32
}

Message entity representing <em>italic text</em>.

func (*MessageEntityItalic) CRC

func (*MessageEntityItalic) CRC() uint32

func (*MessageEntityItalic) ImplementsMessageEntity

func (*MessageEntityItalic) ImplementsMessageEntity()

type MessageEntityMention

type MessageEntityMention struct {
	Offset int32
	Length int32
}

Message entity [mentioning](https://core.telegram.org/api/mentions) a user by `@username`; [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName) can also be used to mention users by their ID.

func (*MessageEntityMention) CRC

func (*MessageEntityMention) ImplementsMessageEntity

func (*MessageEntityMention) ImplementsMessageEntity()

type MessageEntityMentionName

type MessageEntityMentionName struct {
	Offset int32
	Length int32
	UserID int64
}

Message entity representing a [user mention](https://core.telegram.org/api/mentions): for <em>creating</em> a mention use [inputMessageEntityMentionName](https://core.telegram.org/constructor/inputMessageEntityMentionName).

func (*MessageEntityMentionName) CRC

func (*MessageEntityMentionName) ImplementsMessageEntity

func (*MessageEntityMentionName) ImplementsMessageEntity()

type MessageEntityPhone

type MessageEntityPhone struct {
	Offset int32
	Length int32
}

Message entity representing a phone number.

func (*MessageEntityPhone) CRC

func (*MessageEntityPhone) CRC() uint32

func (*MessageEntityPhone) ImplementsMessageEntity

func (*MessageEntityPhone) ImplementsMessageEntity()

type MessageEntityPre

type MessageEntityPre struct {
	Offset   int32
	Length   int32
	Language string
}

Message entity representing a preformatted `codeblock`, allowing the user to specify a programming language for the codeblock.

func (*MessageEntityPre) CRC

func (*MessageEntityPre) CRC() uint32

func (*MessageEntityPre) ImplementsMessageEntity

func (*MessageEntityPre) ImplementsMessageEntity()

type MessageEntitySpoiler

type MessageEntitySpoiler struct {
	Offset int32
	Length int32
}

Message entity representing a spoiler

func (*MessageEntitySpoiler) CRC

func (*MessageEntitySpoiler) ImplementsMessageEntity

func (*MessageEntitySpoiler) ImplementsMessageEntity()

type MessageEntityStrike

type MessageEntityStrike struct {
	Offset int32
	Length int32
}

Message entity representing <del>strikethrough</del> text.

func (*MessageEntityStrike) CRC

func (*MessageEntityStrike) CRC() uint32

func (*MessageEntityStrike) ImplementsMessageEntity

func (*MessageEntityStrike) ImplementsMessageEntity()

type MessageEntityTextURL

type MessageEntityTextURL struct {
	Offset int32
	Length int32
	URL    string
}

Message entity representing a [text url](https://core.telegram.orghttps://google.com): for in-text urls like [https://google.com](https://core.telegram.orghttps://google.com) use [messageEntityUrl](https://core.telegram.org/constructor/messageEntityUrl).

func (*MessageEntityTextURL) CRC

func (*MessageEntityTextURL) ImplementsMessageEntity

func (*MessageEntityTextURL) ImplementsMessageEntity()

type MessageEntityURL

type MessageEntityURL struct {
	Offset int32
	Length int32
}

Message entity representing an in-text url: [https://google.com](https://core.telegram.orghttps://google.com); for [text urls](https://core.telegram.orghttps://google.com), use [messageEntityTextUrl](https://core.telegram.org/constructor/messageEntityTextUrl).

func (*MessageEntityURL) CRC

func (*MessageEntityURL) CRC() uint32

func (*MessageEntityURL) ImplementsMessageEntity

func (*MessageEntityURL) ImplementsMessageEntity()

type MessageEntityUnderline

type MessageEntityUnderline struct {
	Offset int32
	Length int32
}

Message entity representing underlined text.

func (*MessageEntityUnderline) CRC

func (*MessageEntityUnderline) ImplementsMessageEntity

func (*MessageEntityUnderline) ImplementsMessageEntity()

type MessageEntityUnknown

type MessageEntityUnknown struct {
	Offset int32
	Length int32
}

Unknown message entity

func (*MessageEntityUnknown) CRC

func (*MessageEntityUnknown) ImplementsMessageEntity

func (*MessageEntityUnknown) ImplementsMessageEntity()

type MessageExtendedMedia

type MessageExtendedMedia interface {
	tl.Object
	ImplementsMessageExtendedMedia()
}

type MessageExtendedMediaObj

type MessageExtendedMediaObj struct {
	Media MessageMedia
}

Extended media

func (*MessageExtendedMediaObj) CRC

func (*MessageExtendedMediaObj) ImplementsMessageExtendedMedia

func (*MessageExtendedMediaObj) ImplementsMessageExtendedMedia()

type MessageExtendedMediaPreview

type MessageExtendedMediaPreview struct {
	W             int32     `tl:"flag:0"`
	H             int32     `tl:"flag:0"`
	Thumb         PhotoSize `tl:"flag:1"`
	VideoDuration int32     `tl:"flag:2"`
}

Extended media preview

func (*MessageExtendedMediaPreview) CRC

func (*MessageExtendedMediaPreview) FlagIndex

func (*MessageExtendedMediaPreview) FlagIndex() int

func (*MessageExtendedMediaPreview) ImplementsMessageExtendedMedia

func (*MessageExtendedMediaPreview) ImplementsMessageExtendedMedia()

type MessageFwdHeader

type MessageFwdHeader struct {
	Imported       bool   `tl:"flag:7,encoded_in_bitflags"`
	SavedOut       bool   `tl:"flag:11,encoded_in_bitflags"`
	FromID         Peer   `tl:"flag:0"`
	FromName       string `tl:"flag:5"`
	Date           int32
	ChannelPost    int32  `tl:"flag:2"`
	PostAuthor     string `tl:"flag:3"`
	SavedFromPeer  Peer   `tl:"flag:4"`
	SavedFromMsgID int32  `tl:"flag:4"`
	SavedFromID    Peer   `tl:"flag:8"`
	SavedFromName  string `tl:"flag:9"`
	SavedDate      int32  `tl:"flag:10"`
	PsaType        string `tl:"flag:6"`
}

Info about a forwarded message

func (*MessageFwdHeader) CRC

func (*MessageFwdHeader) CRC() uint32

func (*MessageFwdHeader) FlagIndex

func (*MessageFwdHeader) FlagIndex() int

type MessageHandler

type MessageHandler func(m *NewMessage) error

type MessageMedia

type MessageMedia interface {
	tl.Object
	ImplementsMessageMedia()
}

func ResolveBotFileID

func ResolveBotFileID(fileId string) (MessageMedia, error)

ResolveBotFileID resolves a file id to a MessageMedia object

type MessageMediaContact

type MessageMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	UserID      int64
}

Attached contact.

func (*MessageMediaContact) CRC

func (*MessageMediaContact) CRC() uint32

func (*MessageMediaContact) ImplementsMessageMedia

func (*MessageMediaContact) ImplementsMessageMedia()

type MessageMediaDice

type MessageMediaDice struct {
	Value    int32
	Emoticon string
}

[Dice-based animated sticker](https://core.telegram.org/api/dice)

func (*MessageMediaDice) CRC

func (*MessageMediaDice) CRC() uint32

func (*MessageMediaDice) ImplementsMessageMedia

func (*MessageMediaDice) ImplementsMessageMedia()

type MessageMediaDocument

type MessageMediaDocument struct {
	Nopremium   bool     `tl:"flag:3,encoded_in_bitflags"`
	Spoiler     bool     `tl:"flag:4,encoded_in_bitflags"`
	Video       bool     `tl:"flag:6,encoded_in_bitflags"`
	Round       bool     `tl:"flag:7,encoded_in_bitflags"`
	Voice       bool     `tl:"flag:8,encoded_in_bitflags"`
	Document    Document `tl:"flag:0"`
	AltDocument Document `tl:"flag:5"`
	TtlSeconds  int32    `tl:"flag:2"`
}

Document (video, audio, voice, sticker, any media type except photo)

func (*MessageMediaDocument) CRC

func (*MessageMediaDocument) FlagIndex

func (*MessageMediaDocument) FlagIndex() int

func (*MessageMediaDocument) ImplementsMessageMedia

func (*MessageMediaDocument) ImplementsMessageMedia()

type MessageMediaEmpty

type MessageMediaEmpty struct{}

Empty constructor.

func (*MessageMediaEmpty) CRC

func (*MessageMediaEmpty) CRC() uint32

func (*MessageMediaEmpty) ImplementsMessageMedia

func (*MessageMediaEmpty) ImplementsMessageMedia()

type MessageMediaGame

type MessageMediaGame struct {
	Game *Game
}

Telegram game

func (*MessageMediaGame) CRC

func (*MessageMediaGame) CRC() uint32

func (*MessageMediaGame) ImplementsMessageMedia

func (*MessageMediaGame) ImplementsMessageMedia()

type MessageMediaGeo

type MessageMediaGeo struct {
	Geo GeoPoint
}

Attached map.

func (*MessageMediaGeo) CRC

func (*MessageMediaGeo) CRC() uint32

func (*MessageMediaGeo) ImplementsMessageMedia

func (*MessageMediaGeo) ImplementsMessageMedia()

type MessageMediaGeoLive

type MessageMediaGeoLive struct {
	Geo                         GeoPoint
	Heading                     int32 `tl:"flag:0"`
	Period                      int32
	ProximityNotificationRadius int32 `tl:"flag:1"`
}

Indicates a [live geolocation](https://core.telegram.org/api/live-location)

func (*MessageMediaGeoLive) CRC

func (*MessageMediaGeoLive) CRC() uint32

func (*MessageMediaGeoLive) FlagIndex

func (*MessageMediaGeoLive) FlagIndex() int

func (*MessageMediaGeoLive) ImplementsMessageMedia

func (*MessageMediaGeoLive) ImplementsMessageMedia()

type MessageMediaGiveaway

type MessageMediaGiveaway struct {
	OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"`
	WinnersAreVisible  bool `tl:"flag:2,encoded_in_bitflags"`
	Channels           []int64
	CountriesIso2      []string `tl:"flag:1"`
	PrizeDescription   string   `tl:"flag:3"`
	Quantity           int32
	Months             int32
	UntilDate          int32
}

Contains info about a [giveaway, see here »](https://core.telegram.org/api/giveaways) for more info.

func (*MessageMediaGiveaway) CRC

func (*MessageMediaGiveaway) FlagIndex

func (*MessageMediaGiveaway) FlagIndex() int

func (*MessageMediaGiveaway) ImplementsMessageMedia

func (*MessageMediaGiveaway) ImplementsMessageMedia()

type MessageMediaGiveawayResults

type MessageMediaGiveawayResults struct {
	OnlyNewSubscribers   bool `tl:"flag:0,encoded_in_bitflags"`
	Refunded             bool `tl:"flag:2,encoded_in_bitflags"`
	ChannelID            int64
	AdditionalPeersCount int32 `tl:"flag:3"`
	LaunchMsgID          int32
	WinnersCount         int32
	UnclaimedCount       int32
	Winners              []int64
	Months               int32
	PrizeDescription     string `tl:"flag:1"`
	UntilDate            int32
}

A [giveaway](https://core.telegram.org/api/giveaways) with public winners has finished, this constructor contains info about the winners.

func (*MessageMediaGiveawayResults) CRC

func (*MessageMediaGiveawayResults) FlagIndex

func (*MessageMediaGiveawayResults) FlagIndex() int

func (*MessageMediaGiveawayResults) ImplementsMessageMedia

func (*MessageMediaGiveawayResults) ImplementsMessageMedia()

type MessageMediaInvoice

type MessageMediaInvoice struct {
	ShippingAddressRequested bool `tl:"flag:1,encoded_in_bitflags"`
	Test                     bool `tl:"flag:3,encoded_in_bitflags"`
	Title                    string
	Description              string
	Photo                    WebDocument `tl:"flag:0"`
	ReceiptMsgID             int32       `tl:"flag:2"`
	Currency                 string
	TotalAmount              int64
	StartParam               string
	ExtendedMedia            MessageExtendedMedia `tl:"flag:4"`
}

Invoice

func (*MessageMediaInvoice) CRC

func (*MessageMediaInvoice) CRC() uint32

func (*MessageMediaInvoice) FlagIndex

func (*MessageMediaInvoice) FlagIndex() int

func (*MessageMediaInvoice) ImplementsMessageMedia

func (*MessageMediaInvoice) ImplementsMessageMedia()

type MessageMediaPaidMedia

type MessageMediaPaidMedia struct {
	StarsAmount   int64
	ExtendedMedia []MessageExtendedMedia
}

func (*MessageMediaPaidMedia) CRC

func (*MessageMediaPaidMedia) ImplementsMessageMedia

func (*MessageMediaPaidMedia) ImplementsMessageMedia()

type MessageMediaPhoto

type MessageMediaPhoto struct {
	Spoiler    bool  `tl:"flag:3,encoded_in_bitflags"`
	Photo      Photo `tl:"flag:0"`
	TtlSeconds int32 `tl:"flag:2"`
}

Attached photo.

func (*MessageMediaPhoto) CRC

func (*MessageMediaPhoto) CRC() uint32

func (*MessageMediaPhoto) FlagIndex

func (*MessageMediaPhoto) FlagIndex() int

func (*MessageMediaPhoto) ImplementsMessageMedia

func (*MessageMediaPhoto) ImplementsMessageMedia()

type MessageMediaPoll

type MessageMediaPoll struct {
	Poll    *Poll
	Results *PollResults
}

Poll

func (*MessageMediaPoll) CRC

func (*MessageMediaPoll) CRC() uint32

func (*MessageMediaPoll) ImplementsMessageMedia

func (*MessageMediaPoll) ImplementsMessageMedia()

type MessageMediaStory

type MessageMediaStory struct {
	ViaMention bool `tl:"flag:1,encoded_in_bitflags"`
	Peer       Peer
	ID         int32
	Story      StoryItem `tl:"flag:0"`
}

Represents a forwarded [story](https://core.telegram.org/api/stories) or a story mention.

func (*MessageMediaStory) CRC

func (*MessageMediaStory) CRC() uint32

func (*MessageMediaStory) FlagIndex

func (*MessageMediaStory) FlagIndex() int

func (*MessageMediaStory) ImplementsMessageMedia

func (*MessageMediaStory) ImplementsMessageMedia()

type MessageMediaUnsupported

type MessageMediaUnsupported struct{}

Current version of the client does not support this media type.

func (*MessageMediaUnsupported) CRC

func (*MessageMediaUnsupported) ImplementsMessageMedia

func (*MessageMediaUnsupported) ImplementsMessageMedia()

type MessageMediaVenue

type MessageMediaVenue struct {
	Geo       GeoPoint
	Title     string
	Address   string
	Provider  string
	VenueID   string
	VenueType string
}

Venue

func (*MessageMediaVenue) CRC

func (*MessageMediaVenue) CRC() uint32

func (*MessageMediaVenue) ImplementsMessageMedia

func (*MessageMediaVenue) ImplementsMessageMedia()

type MessageMediaWebPage

type MessageMediaWebPage struct {
	ForceLargeMedia bool `tl:"flag:0,encoded_in_bitflags"`
	ForceSmallMedia bool `tl:"flag:1,encoded_in_bitflags"`
	Manual          bool `tl:"flag:3,encoded_in_bitflags"`
	Safe            bool `tl:"flag:4,encoded_in_bitflags"`
	Webpage         WebPage
}

Preview of webpage

func (*MessageMediaWebPage) CRC

func (*MessageMediaWebPage) CRC() uint32

func (*MessageMediaWebPage) FlagIndex

func (*MessageMediaWebPage) FlagIndex() int

func (*MessageMediaWebPage) ImplementsMessageMedia

func (*MessageMediaWebPage) ImplementsMessageMedia()

type MessageObj

type MessageObj struct {
	Out                  bool `tl:"flag:1,encoded_in_bitflags"`
	Mentioned            bool `tl:"flag:4,encoded_in_bitflags"`
	MediaUnread          bool `tl:"flag:5,encoded_in_bitflags"`
	Silent               bool `tl:"flag:13,encoded_in_bitflags"`
	Post                 bool `tl:"flag:14,encoded_in_bitflags"`
	FromScheduled        bool `tl:"flag:18,encoded_in_bitflags"`
	Legacy               bool `tl:"flag:19,encoded_in_bitflags"`
	EditHide             bool `tl:"flag:21,encoded_in_bitflags"`
	Pinned               bool `tl:"flag:24,encoded_in_bitflags"`
	Noforwards           bool `tl:"flag:26,encoded_in_bitflags"`
	InvertMedia          bool `tl:"flag:27,encoded_in_bitflags"`
	Offline              bool `tl:"flag2:1,encoded_in_bitflags"`
	ID                   int32
	FromID               Peer  `tl:"flag:8"`
	FromBoostsApplied    int32 `tl:"flag:29"`
	PeerID               Peer
	SavedPeerID          Peer               `tl:"flag:28"`
	FwdFrom              *MessageFwdHeader  `tl:"flag:2"`
	ViaBotID             int64              `tl:"flag:11"`
	ViaBusinessBotID     int64              `tl:"flag2:0"`
	ReplyTo              MessageReplyHeader `tl:"flag:3"`
	Date                 int32
	Message              string
	Media                MessageMedia         `tl:"flag:9"`
	ReplyMarkup          ReplyMarkup          `tl:"flag:6"`
	Entities             []MessageEntity      `tl:"flag:7"`
	Views                int32                `tl:"flag:10"`
	Forwards             int32                `tl:"flag:10"`
	Replies              *MessageReplies      `tl:"flag:23"`
	EditDate             int32                `tl:"flag:15"`
	PostAuthor           string               `tl:"flag:16"`
	GroupedID            int64                `tl:"flag:17"`
	Reactions            *MessageReactions    `tl:"flag:20"`
	RestrictionReason    []*RestrictionReason `tl:"flag:22"`
	TtlPeriod            int32                `tl:"flag:25"`
	QuickReplyShortcutID int32                `tl:"flag:30"`
	Effect               int64                `tl:"flag2:2"`
	Factcheck            *FactCheck           `tl:"flag2:3"`
}

A message

func (*MessageObj) CRC

func (*MessageObj) CRC() uint32

func (*MessageObj) FlagIndex

func (*MessageObj) FlagIndex() int

func (*MessageObj) ImplementsMessage

func (*MessageObj) ImplementsMessage()

type MessagePeerReaction

type MessagePeerReaction struct {
	Big      bool `tl:"flag:0,encoded_in_bitflags"`
	Unread   bool `tl:"flag:1,encoded_in_bitflags"`
	My       bool `tl:"flag:2,encoded_in_bitflags"`
	PeerID   Peer
	Date     int32
	Reaction Reaction
}

How a certain peer reacted to the message

func (*MessagePeerReaction) CRC

func (*MessagePeerReaction) CRC() uint32

func (*MessagePeerReaction) FlagIndex

func (*MessagePeerReaction) FlagIndex() int

type MessagePeerVote

type MessagePeerVote interface {
	tl.Object
	ImplementsMessagePeerVote()
}

type MessagePeerVoteInputOption

type MessagePeerVoteInputOption struct {
	Peer Peer
	Date int32
}

How a peer voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes))

func (*MessagePeerVoteInputOption) CRC

func (*MessagePeerVoteInputOption) ImplementsMessagePeerVote

func (*MessagePeerVoteInputOption) ImplementsMessagePeerVote()

type MessagePeerVoteMultiple

type MessagePeerVoteMultiple struct {
	Peer    Peer
	Options [][]byte
	Date    int32
}

How a peer voted in a multiple-choice poll

func (*MessagePeerVoteMultiple) CRC

func (*MessagePeerVoteMultiple) ImplementsMessagePeerVote

func (*MessagePeerVoteMultiple) ImplementsMessagePeerVote()

type MessagePeerVoteObj

type MessagePeerVoteObj struct {
	Peer   Peer
	Option []byte
	Date   int32
}

How a peer voted in a poll

func (*MessagePeerVoteObj) CRC

func (*MessagePeerVoteObj) CRC() uint32

func (*MessagePeerVoteObj) ImplementsMessagePeerVote

func (*MessagePeerVoteObj) ImplementsMessagePeerVote()

type MessageRange

type MessageRange struct {
	MinID int32
	MaxID int32
}

Indicates a range of chat messages

func (*MessageRange) CRC

func (*MessageRange) CRC() uint32

type MessageReactions

type MessageReactions struct {
	Min             bool `tl:"flag:0,encoded_in_bitflags"`
	CanSeeList      bool `tl:"flag:2,encoded_in_bitflags"`
	ReactionsAsTags bool `tl:"flag:3,encoded_in_bitflags"`
	Results         []*ReactionCount
	RecentReactions []*MessagePeerReaction `tl:"flag:1"`
	TopReactors     []*MessageReactor      `tl:"flag:4"`
}

[Message reactions »](https://core.telegram.org/api/reactions)

func (*MessageReactions) CRC

func (*MessageReactions) CRC() uint32

func (*MessageReactions) FlagIndex

func (*MessageReactions) FlagIndex() int

type MessageReactor

type MessageReactor struct {
	Top       bool `tl:"flag:0,encoded_in_bitflags"`
	My        bool `tl:"flag:1,encoded_in_bitflags"`
	Anonymous bool `tl:"flag:2,encoded_in_bitflags"`
	PeerID    Peer `tl:"flag:3"`
	Count     int32
}

func (*MessageReactor) CRC

func (*MessageReactor) CRC() uint32

func (*MessageReactor) FlagIndex

func (*MessageReactor) FlagIndex() int

type MessageReplies

type MessageReplies struct {
	Comments       bool `tl:"flag:0,encoded_in_bitflags"`
	Replies        int32
	RepliesPts     int32
	RecentRepliers []Peer `tl:"flag:1"`
	ChannelID      int64  `tl:"flag:0"`
	MaxID          int32  `tl:"flag:2"`
	ReadMaxID      int32  `tl:"flag:3"`
}

Info about [the comment section of a channel post, or a simple message thread](https://core.telegram.org/api/threads)

func (*MessageReplies) CRC

func (*MessageReplies) CRC() uint32

func (*MessageReplies) FlagIndex

func (*MessageReplies) FlagIndex() int

type MessageReplyHeader

type MessageReplyHeader interface {
	tl.Object
	ImplementsMessageReplyHeader()
}

type MessageReplyHeaderObj

type MessageReplyHeaderObj struct {
	ReplyToScheduled bool              `tl:"flag:2,encoded_in_bitflags"`
	ForumTopic       bool              `tl:"flag:3,encoded_in_bitflags"`
	Quote            bool              `tl:"flag:9,encoded_in_bitflags"`
	ReplyToMsgID     int32             `tl:"flag:4"`
	ReplyToPeerID    Peer              `tl:"flag:0"`
	ReplyFrom        *MessageFwdHeader `tl:"flag:5"`
	ReplyMedia       MessageMedia      `tl:"flag:8"`
	ReplyToTopID     int32             `tl:"flag:1"`
	QuoteText        string            `tl:"flag:6"`
	QuoteEntities    []MessageEntity   `tl:"flag:7"`
	QuoteOffset      int32             `tl:"flag:10"`
}

Message replies and [thread](https://core.telegram.org/api/threads) information

func (*MessageReplyHeaderObj) CRC

func (*MessageReplyHeaderObj) FlagIndex

func (*MessageReplyHeaderObj) FlagIndex() int

func (*MessageReplyHeaderObj) ImplementsMessageReplyHeader

func (*MessageReplyHeaderObj) ImplementsMessageReplyHeader()

type MessageReplyStoryHeader

type MessageReplyStoryHeader struct {
	Peer    Peer
	StoryID int32
}

Represents a reply to a [story](https://core.telegram.org/api/stories)

func (*MessageReplyStoryHeader) CRC

func (*MessageReplyStoryHeader) ImplementsMessageReplyHeader

func (*MessageReplyStoryHeader) ImplementsMessageReplyHeader()

type MessageService

type MessageService struct {
	Out         bool `tl:"flag:1,encoded_in_bitflags"`
	Mentioned   bool `tl:"flag:4,encoded_in_bitflags"`
	MediaUnread bool `tl:"flag:5,encoded_in_bitflags"`
	Silent      bool `tl:"flag:13,encoded_in_bitflags"`
	Post        bool `tl:"flag:14,encoded_in_bitflags"`
	Legacy      bool `tl:"flag:19,encoded_in_bitflags"`
	ID          int32
	FromID      Peer `tl:"flag:8"`
	PeerID      Peer
	ReplyTo     MessageReplyHeader `tl:"flag:3"`
	Date        int32
	Action      MessageAction
	TtlPeriod   int32 `tl:"flag:25"`
}

Indicates a service message

func (*MessageService) CRC

func (*MessageService) CRC() uint32

func (*MessageService) FlagIndex

func (*MessageService) FlagIndex() int

func (*MessageService) ImplementsMessage

func (*MessageService) ImplementsMessage()

type MessageViews

type MessageViews struct {
	Views    int32           `tl:"flag:0"`
	Forwards int32           `tl:"flag:1"`
	Replies  *MessageReplies `tl:"flag:2"`
}

View, forward counter + info about replies of a specific message

func (*MessageViews) CRC

func (*MessageViews) CRC() uint32

func (*MessageViews) FlagIndex

func (*MessageViews) FlagIndex() int

type MessagesAcceptEncryptionParams

type MessagesAcceptEncryptionParams struct {
	Peer           *InputEncryptedChat
	GB             []byte
	KeyFingerprint int64
}

func (*MessagesAcceptEncryptionParams) CRC

type MessagesAcceptURLAuthParams

type MessagesAcceptURLAuthParams struct {
	WriteAllowed bool      `tl:"flag:0,encoded_in_bitflags"`
	Peer         InputPeer `tl:"flag:1"`
	MsgID        int32     `tl:"flag:1"`
	ButtonID     int32     `tl:"flag:1"`
	URL          string    `tl:"flag:2"`
}

func (*MessagesAcceptURLAuthParams) CRC

func (*MessagesAcceptURLAuthParams) FlagIndex

func (*MessagesAcceptURLAuthParams) FlagIndex() int

type MessagesAddChatUserParams

type MessagesAddChatUserParams struct {
	ChatID   int64
	UserID   InputUser
	FwdLimit int32
}

func (*MessagesAddChatUserParams) CRC

type MessagesAffectedFoundMessages

type MessagesAffectedFoundMessages struct {
	Pts      int32
	PtsCount int32
	Offset   int32
	Messages []int32
}

Messages found and affected by changes

func (*MessagesAffectedFoundMessages) CRC

type MessagesAffectedHistory

type MessagesAffectedHistory struct {
	Pts      int32
	PtsCount int32
	Offset   int32
}

Affected part of communication history with the user or in a chat.

func (*MessagesAffectedHistory) CRC

type MessagesAffectedMessages

type MessagesAffectedMessages struct {
	Pts      int32
	PtsCount int32
}

Events affected by operation

func (*MessagesAffectedMessages) CRC

type MessagesAllStickers

type MessagesAllStickers interface {
	tl.Object
	ImplementsMessagesAllStickers()
}

type MessagesAllStickersNotModified

type MessagesAllStickersNotModified struct{}

Info about all installed stickers hasn't changed

func (*MessagesAllStickersNotModified) CRC

func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers

func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers()

type MessagesAllStickersObj

type MessagesAllStickersObj struct {
	Hash int64
	Sets []*StickerSet
}

Info about all installed stickers

func (*MessagesAllStickersObj) CRC

func (*MessagesAllStickersObj) ImplementsMessagesAllStickers

func (*MessagesAllStickersObj) ImplementsMessagesAllStickers()

type MessagesArchivedStickers

type MessagesArchivedStickers struct {
	Count int32
	Sets  []StickerSetCovered
}

Archived stickersets

func (*MessagesArchivedStickers) CRC

type MessagesAvailableEffects

type MessagesAvailableEffects interface {
	tl.Object
	ImplementsMessagesAvailableEffects()
}

type MessagesAvailableEffectsNotModified

type MessagesAvailableEffectsNotModified struct{}

func (*MessagesAvailableEffectsNotModified) CRC

func (*MessagesAvailableEffectsNotModified) ImplementsMessagesAvailableEffects

func (*MessagesAvailableEffectsNotModified) ImplementsMessagesAvailableEffects()

type MessagesAvailableEffectsObj

type MessagesAvailableEffectsObj struct {
	Hash      int32
	Effects   []*AvailableEffect
	Documents []Document
}

func (*MessagesAvailableEffectsObj) CRC

func (*MessagesAvailableEffectsObj) ImplementsMessagesAvailableEffects

func (*MessagesAvailableEffectsObj) ImplementsMessagesAvailableEffects()

type MessagesAvailableReactions

type MessagesAvailableReactions interface {
	tl.Object
	ImplementsMessagesAvailableReactions()
}

type MessagesAvailableReactionsNotModified

type MessagesAvailableReactionsNotModified struct{}

No new reactions are available

func (*MessagesAvailableReactionsNotModified) CRC

func (*MessagesAvailableReactionsNotModified) ImplementsMessagesAvailableReactions

func (*MessagesAvailableReactionsNotModified) ImplementsMessagesAvailableReactions()

type MessagesAvailableReactionsObj

type MessagesAvailableReactionsObj struct {
	Hash      int32
	Reactions []*AvailableReaction
}

Animations and metadata associated with [message reactions »](https://core.telegram.org/api/reactions)

func (*MessagesAvailableReactionsObj) CRC

func (*MessagesAvailableReactionsObj) ImplementsMessagesAvailableReactions

func (*MessagesAvailableReactionsObj) ImplementsMessagesAvailableReactions()

type MessagesBotApp

type MessagesBotApp struct {
	Inactive           bool `tl:"flag:0,encoded_in_bitflags"`
	RequestWriteAccess bool `tl:"flag:1,encoded_in_bitflags"`
	HasSettings        bool `tl:"flag:2,encoded_in_bitflags"`
	App                BotApp
}

Contains information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps)

func (*MessagesBotApp) CRC

func (*MessagesBotApp) CRC() uint32

func (*MessagesBotApp) FlagIndex

func (*MessagesBotApp) FlagIndex() int

type MessagesBotCallbackAnswer

type MessagesBotCallbackAnswer struct {
	Alert     bool   `tl:"flag:1,encoded_in_bitflags"`
	HasURL    bool   `tl:"flag:3,encoded_in_bitflags"`
	NativeUi  bool   `tl:"flag:4,encoded_in_bitflags"`
	Message   string `tl:"flag:0"`
	URL       string `tl:"flag:2"`
	CacheTime int32
}

Callback answer sent by the bot in response to a button press

func (*MessagesBotCallbackAnswer) CRC

func (*MessagesBotCallbackAnswer) FlagIndex

func (*MessagesBotCallbackAnswer) FlagIndex() int

type MessagesBotResults

type MessagesBotResults struct {
	Gallery       bool `tl:"flag:0,encoded_in_bitflags"`
	QueryID       int64
	NextOffset    string             `tl:"flag:1"`
	SwitchPm      *InlineBotSwitchPm `tl:"flag:2"`
	SwitchWebview *InlineBotWebView  `tl:"flag:3"`
	Results       []BotInlineResult
	CacheTime     int32
	Users         []User
}

Result of a query to an inline bot

func (*MessagesBotResults) CRC

func (*MessagesBotResults) CRC() uint32

func (*MessagesBotResults) FlagIndex

func (*MessagesBotResults) FlagIndex() int

type MessagesChangeStarsSubscriptionParams

type MessagesChangeStarsSubscriptionParams struct {
	Canceled       bool `tl:"flag:0,encoded_in_bitflags"`
	Peer           InputPeer
	SubscriptionID string
}

func (*MessagesChangeStarsSubscriptionParams) CRC

func (*MessagesChangeStarsSubscriptionParams) FlagIndex

type MessagesChannelMessages

type MessagesChannelMessages struct {
	Inexact        bool `tl:"flag:1,encoded_in_bitflags"`
	Pts            int32
	Count          int32
	OffsetIDOffset int32 `tl:"flag:2"`
	Messages       []Message
	Topics         []ForumTopic
	Chats          []Chat
	Users          []User
}

Channel messages

func (*MessagesChannelMessages) CRC

func (*MessagesChannelMessages) FlagIndex

func (*MessagesChannelMessages) FlagIndex() int

func (*MessagesChannelMessages) ImplementsMessagesMessages

func (*MessagesChannelMessages) ImplementsMessagesMessages()

type MessagesChatAdminsWithInvites

type MessagesChatAdminsWithInvites struct {
	Admins []*ChatAdminWithInvites
	Users  []User
}

Info about chat invites generated by admins.

func (*MessagesChatAdminsWithInvites) CRC

type MessagesChatFull

type MessagesChatFull struct {
	FullChat ChatFull
	Chats    []Chat
	Users    []User
}

Full info about a [channel](https://core.telegram.org/api/channel#channels), [supergroup](https://core.telegram.org/api/channel#supergroups), [gigagroup](https://core.telegram.org/api/channel#gigagroups) or [basic group](https://core.telegram.org/api/channel#basic-groups).

func (*MessagesChatFull) CRC

func (*MessagesChatFull) CRC() uint32

type MessagesChatInviteImporters

type MessagesChatInviteImporters struct {
	Count     int32
	Importers []*ChatInviteImporter
	Users     []User
}

Info about the users that joined the chat using a specific chat invite

func (*MessagesChatInviteImporters) CRC

type MessagesChats

type MessagesChats interface {
	tl.Object
	ImplementsMessagesChats()
}

type MessagesChatsObj

type MessagesChatsObj struct {
	Chats []Chat
}

List of chats with auxiliary data.

func (*MessagesChatsObj) CRC

func (*MessagesChatsObj) CRC() uint32

func (*MessagesChatsObj) ImplementsMessagesChats

func (*MessagesChatsObj) ImplementsMessagesChats()

type MessagesChatsSlice

type MessagesChatsSlice struct {
	Count int32
	Chats []Chat
}

Partial list of chats, more would have to be fetched with [pagination](https://core.telegram.org/api/offsets)

func (*MessagesChatsSlice) CRC

func (*MessagesChatsSlice) CRC() uint32

func (*MessagesChatsSlice) ImplementsMessagesChats

func (*MessagesChatsSlice) ImplementsMessagesChats()

type MessagesCheckChatInviteParams

type MessagesCheckChatInviteParams struct {
	Hash string
}

func (*MessagesCheckChatInviteParams) CRC

type MessagesCheckHistoryImportParams

type MessagesCheckHistoryImportParams struct {
	ImportHead string
}

func (*MessagesCheckHistoryImportParams) CRC

type MessagesCheckHistoryImportPeerParams

type MessagesCheckHistoryImportPeerParams struct {
	Peer InputPeer
}

func (*MessagesCheckHistoryImportPeerParams) CRC

type MessagesCheckQuickReplyShortcutParams

type MessagesCheckQuickReplyShortcutParams struct {
	Shortcut string
}

func (*MessagesCheckQuickReplyShortcutParams) CRC

type MessagesCheckedHistoryImportPeer

type MessagesCheckedHistoryImportPeer struct {
	ConfirmText string
}

Contains a confirmation text to be shown to the user, upon [importing chat history, click here for more info »](https://core.telegram.org/api/import).

func (*MessagesCheckedHistoryImportPeer) CRC

type MessagesClearAllDraftsParams

type MessagesClearAllDraftsParams struct{}

func (*MessagesClearAllDraftsParams) CRC

type MessagesClearRecentReactionsParams

type MessagesClearRecentReactionsParams struct{}

func (*MessagesClearRecentReactionsParams) CRC

type MessagesClearRecentStickersParams

type MessagesClearRecentStickersParams struct {
	Attached bool `tl:"flag:0,encoded_in_bitflags"`
}

func (*MessagesClearRecentStickersParams) CRC

func (*MessagesClearRecentStickersParams) FlagIndex

type MessagesCreateChatParams

type MessagesCreateChatParams struct {
	Users     []InputUser
	Title     string
	TtlPeriod int32 `tl:"flag:0"`
}

func (*MessagesCreateChatParams) CRC

func (*MessagesCreateChatParams) FlagIndex

func (*MessagesCreateChatParams) FlagIndex() int

type MessagesDeleteChatParams

type MessagesDeleteChatParams struct {
	ChatID int64
}

func (*MessagesDeleteChatParams) CRC

type MessagesDeleteChatUserParams

type MessagesDeleteChatUserParams struct {
	RevokeHistory bool `tl:"flag:0,encoded_in_bitflags"`
	ChatID        int64
	UserID        InputUser
}

func (*MessagesDeleteChatUserParams) CRC

func (*MessagesDeleteChatUserParams) FlagIndex

func (*MessagesDeleteChatUserParams) FlagIndex() int

type MessagesDeleteExportedChatInviteParams

type MessagesDeleteExportedChatInviteParams struct {
	Peer InputPeer
	Link string
}

func (*MessagesDeleteExportedChatInviteParams) CRC

type MessagesDeleteFactCheckParams

type MessagesDeleteFactCheckParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesDeleteFactCheckParams) CRC

type MessagesDeleteHistoryParams

type MessagesDeleteHistoryParams struct {
	JustClear bool `tl:"flag:0,encoded_in_bitflags"`
	Revoke    bool `tl:"flag:1,encoded_in_bitflags"`
	Peer      InputPeer
	MaxID     int32
	MinDate   int32 `tl:"flag:2"`
	MaxDate   int32 `tl:"flag:3"`
}

func (*MessagesDeleteHistoryParams) CRC

func (*MessagesDeleteHistoryParams) FlagIndex

func (*MessagesDeleteHistoryParams) FlagIndex() int

type MessagesDeleteMessagesParams

type MessagesDeleteMessagesParams struct {
	Revoke bool `tl:"flag:0,encoded_in_bitflags"`
	ID     []int32
}

func (*MessagesDeleteMessagesParams) CRC

func (*MessagesDeleteMessagesParams) FlagIndex

func (*MessagesDeleteMessagesParams) FlagIndex() int

type MessagesDeletePhoneCallHistoryParams

type MessagesDeletePhoneCallHistoryParams struct {
	Revoke bool `tl:"flag:0,encoded_in_bitflags"`
}

func (*MessagesDeletePhoneCallHistoryParams) CRC

func (*MessagesDeletePhoneCallHistoryParams) FlagIndex

type MessagesDeleteQuickReplyMessagesParams

type MessagesDeleteQuickReplyMessagesParams struct {
	ShortcutID int32
	ID         []int32
}

func (*MessagesDeleteQuickReplyMessagesParams) CRC

type MessagesDeleteQuickReplyShortcutParams

type MessagesDeleteQuickReplyShortcutParams struct {
	ShortcutID int32
}

func (*MessagesDeleteQuickReplyShortcutParams) CRC

type MessagesDeleteRevokedExportedChatInvitesParams

type MessagesDeleteRevokedExportedChatInvitesParams struct {
	Peer    InputPeer
	AdminID InputUser
}

func (*MessagesDeleteRevokedExportedChatInvitesParams) CRC

type MessagesDeleteSavedHistoryParams

type MessagesDeleteSavedHistoryParams struct {
	Peer    InputPeer
	MaxID   int32
	MinDate int32 `tl:"flag:2"`
	MaxDate int32 `tl:"flag:3"`
}

func (*MessagesDeleteSavedHistoryParams) CRC

func (*MessagesDeleteSavedHistoryParams) FlagIndex

type MessagesDeleteScheduledMessagesParams

type MessagesDeleteScheduledMessagesParams struct {
	Peer InputPeer
	ID   []int32
}

func (*MessagesDeleteScheduledMessagesParams) CRC

type MessagesDhConfig

type MessagesDhConfig interface {
	tl.Object
	ImplementsMessagesDhConfig()
}

type MessagesDhConfigNotModified

type MessagesDhConfigNotModified struct {
	Random []byte
}

Configuring parameters did not change.

func (*MessagesDhConfigNotModified) CRC

func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig

func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig()

type MessagesDhConfigObj

type MessagesDhConfigObj struct {
	G       int32
	P       []byte
	Version int32
	Random  []byte
}

New set of configuring parameters.

func (*MessagesDhConfigObj) CRC

func (*MessagesDhConfigObj) CRC() uint32

func (*MessagesDhConfigObj) ImplementsMessagesDhConfig

func (*MessagesDhConfigObj) ImplementsMessagesDhConfig()

type MessagesDialogFilters

type MessagesDialogFilters struct {
	TagsEnabled bool `tl:"flag:0,encoded_in_bitflags"`
	Filters     []DialogFilter
}

func (*MessagesDialogFilters) CRC

func (*MessagesDialogFilters) FlagIndex

func (*MessagesDialogFilters) FlagIndex() int

type MessagesDialogs

type MessagesDialogs interface {
	tl.Object
	ImplementsMessagesDialogs()
}

type MessagesDialogsNotModified

type MessagesDialogsNotModified struct {
	Count int32
}

Dialogs haven't changed

func (*MessagesDialogsNotModified) CRC

func (*MessagesDialogsNotModified) ImplementsMessagesDialogs

func (*MessagesDialogsNotModified) ImplementsMessagesDialogs()

type MessagesDialogsObj

type MessagesDialogsObj struct {
	Dialogs  []Dialog
	Messages []Message
	Chats    []Chat
	Users    []User
}

Full list of chats with messages and auxiliary data.

func (*MessagesDialogsObj) CRC

func (*MessagesDialogsObj) CRC() uint32

func (*MessagesDialogsObj) ImplementsMessagesDialogs

func (*MessagesDialogsObj) ImplementsMessagesDialogs()

type MessagesDialogsSlice

type MessagesDialogsSlice struct {
	Count    int32
	Dialogs  []Dialog
	Messages []Message
	Chats    []Chat
	Users    []User
}

Incomplete list of dialogs with messages and auxiliary data.

func (*MessagesDialogsSlice) CRC

func (*MessagesDialogsSlice) ImplementsMessagesDialogs

func (*MessagesDialogsSlice) ImplementsMessagesDialogs()

type MessagesDiscardEncryptionParams

type MessagesDiscardEncryptionParams struct {
	DeleteHistory bool `tl:"flag:0,encoded_in_bitflags"`
	ChatID        int32
}

func (*MessagesDiscardEncryptionParams) CRC

func (*MessagesDiscardEncryptionParams) FlagIndex

func (*MessagesDiscardEncryptionParams) FlagIndex() int

type MessagesDiscussionMessage

type MessagesDiscussionMessage struct {
	Messages        []Message
	MaxID           int32 `tl:"flag:0"`
	ReadInboxMaxID  int32 `tl:"flag:1"`
	ReadOutboxMaxID int32 `tl:"flag:2"`
	UnreadCount     int32
	Chats           []Chat
	Users           []User
}

Information about a [message thread](https://core.telegram.org/api/threads)

func (*MessagesDiscussionMessage) CRC

func (*MessagesDiscussionMessage) FlagIndex

func (*MessagesDiscussionMessage) FlagIndex() int

type MessagesEditChatAboutParams

type MessagesEditChatAboutParams struct {
	Peer  InputPeer
	About string
}

func (*MessagesEditChatAboutParams) CRC

type MessagesEditChatAdminParams

type MessagesEditChatAdminParams struct {
	ChatID  int64
	UserID  InputUser
	IsAdmin bool
}

func (*MessagesEditChatAdminParams) CRC

type MessagesEditChatDefaultBannedRightsParams

type MessagesEditChatDefaultBannedRightsParams struct {
	Peer         InputPeer
	BannedRights *ChatBannedRights
}

func (*MessagesEditChatDefaultBannedRightsParams) CRC

type MessagesEditChatPhotoParams

type MessagesEditChatPhotoParams struct {
	ChatID int64
	Photo  InputChatPhoto
}

func (*MessagesEditChatPhotoParams) CRC

type MessagesEditChatTitleParams

type MessagesEditChatTitleParams struct {
	ChatID int64
	Title  string
}

func (*MessagesEditChatTitleParams) CRC

type MessagesEditExportedChatInviteParams

type MessagesEditExportedChatInviteParams struct {
	Revoked       bool `tl:"flag:2,encoded_in_bitflags"`
	Peer          InputPeer
	Link          string
	ExpireDate    int32  `tl:"flag:0"`
	UsageLimit    int32  `tl:"flag:1"`
	RequestNeeded bool   `tl:"flag:3"`
	Title         string `tl:"flag:4"`
}

func (*MessagesEditExportedChatInviteParams) CRC

func (*MessagesEditExportedChatInviteParams) FlagIndex

type MessagesEditFactCheckParams

type MessagesEditFactCheckParams struct {
	Peer  InputPeer
	MsgID int32
	Text  *TextWithEntities
}

func (*MessagesEditFactCheckParams) CRC

type MessagesEditInlineBotMessageParams

type MessagesEditInlineBotMessageParams struct {
	NoWebpage   bool `tl:"flag:1,encoded_in_bitflags"`
	InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
	ID          InputBotInlineMessageID
	Message     string          `tl:"flag:11"`
	Media       InputMedia      `tl:"flag:14"`
	ReplyMarkup ReplyMarkup     `tl:"flag:2"`
	Entities    []MessageEntity `tl:"flag:3"`
}

func (*MessagesEditInlineBotMessageParams) CRC

func (*MessagesEditInlineBotMessageParams) FlagIndex

type MessagesEditMessageParams

type MessagesEditMessageParams struct {
	NoWebpage            bool `tl:"flag:1,encoded_in_bitflags"`
	InvertMedia          bool `tl:"flag:16,encoded_in_bitflags"`
	Peer                 InputPeer
	ID                   int32
	Message              string          `tl:"flag:11"`
	Media                InputMedia      `tl:"flag:14"`
	ReplyMarkup          ReplyMarkup     `tl:"flag:2"`
	Entities             []MessageEntity `tl:"flag:3"`
	ScheduleDate         int32           `tl:"flag:15"`
	QuickReplyShortcutID int32           `tl:"flag:17"`
}

func (*MessagesEditMessageParams) CRC

func (*MessagesEditMessageParams) FlagIndex

func (*MessagesEditMessageParams) FlagIndex() int

type MessagesEditQuickReplyShortcutParams

type MessagesEditQuickReplyShortcutParams struct {
	ShortcutID int32
	Shortcut   string
}

func (*MessagesEditQuickReplyShortcutParams) CRC

type MessagesEmojiGroups

type MessagesEmojiGroups interface {
	tl.Object
	ImplementsMessagesEmojiGroups()
}

type MessagesEmojiGroupsNotModified

type MessagesEmojiGroupsNotModified struct{}

The list of [emoji categories](https://core.telegram.org/api/custom-emoji#emoji-categories) hasn't changed.

func (*MessagesEmojiGroupsNotModified) CRC

func (*MessagesEmojiGroupsNotModified) ImplementsMessagesEmojiGroups

func (*MessagesEmojiGroupsNotModified) ImplementsMessagesEmojiGroups()

type MessagesEmojiGroupsObj

type MessagesEmojiGroupsObj struct {
	Hash   int32
	Groups []EmojiGroup
}

Represents a list of [emoji categories](https://core.telegram.org/api/custom-emoji#emoji-categories).

func (*MessagesEmojiGroupsObj) CRC

func (*MessagesEmojiGroupsObj) ImplementsMessagesEmojiGroups

func (*MessagesEmojiGroupsObj) ImplementsMessagesEmojiGroups()

type MessagesExportChatInviteParams

type MessagesExportChatInviteParams struct {
	LegacyRevokePermanent bool `tl:"flag:2,encoded_in_bitflags"`
	RequestNeeded         bool `tl:"flag:3,encoded_in_bitflags"`
	Peer                  InputPeer
	ExpireDate            int32                     `tl:"flag:0"`
	UsageLimit            int32                     `tl:"flag:1"`
	Title                 string                    `tl:"flag:4"`
	SubscriptionPricing   *StarsSubscriptionPricing `tl:"flag:5"`
}

func (*MessagesExportChatInviteParams) CRC

func (*MessagesExportChatInviteParams) FlagIndex

func (*MessagesExportChatInviteParams) FlagIndex() int

type MessagesExportedChatInvite

type MessagesExportedChatInvite interface {
	tl.Object
	ImplementsMessagesExportedChatInvite()
}

type MessagesExportedChatInviteObj

type MessagesExportedChatInviteObj struct {
	Invite ExportedChatInvite
	Users  []User
}

Info about a chat invite

func (*MessagesExportedChatInviteObj) CRC

func (*MessagesExportedChatInviteObj) ImplementsMessagesExportedChatInvite

func (*MessagesExportedChatInviteObj) ImplementsMessagesExportedChatInvite()

type MessagesExportedChatInviteReplaced

type MessagesExportedChatInviteReplaced struct {
	Invite    ExportedChatInvite
	NewInvite ExportedChatInvite
	Users     []User
}

The specified chat invite was replaced with another one

func (*MessagesExportedChatInviteReplaced) CRC

func (*MessagesExportedChatInviteReplaced) ImplementsMessagesExportedChatInvite

func (*MessagesExportedChatInviteReplaced) ImplementsMessagesExportedChatInvite()

type MessagesExportedChatInvites

type MessagesExportedChatInvites struct {
	Count   int32
	Invites []ExportedChatInvite
	Users   []User
}

Info about chat invites exported by a certain admin.

func (*MessagesExportedChatInvites) CRC

type MessagesFaveStickerParams

type MessagesFaveStickerParams struct {
	ID     InputDocument
	Unfave bool
}

func (*MessagesFaveStickerParams) CRC

type MessagesFavedStickers

type MessagesFavedStickers interface {
	tl.Object
	ImplementsMessagesFavedStickers()
}

type MessagesFavedStickersNotModified

type MessagesFavedStickersNotModified struct{}

No new favorited stickers were found

func (*MessagesFavedStickersNotModified) CRC

func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers

func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers()

type MessagesFavedStickersObj

type MessagesFavedStickersObj struct {
	Hash     int64
	Packs    []*StickerPack
	Stickers []Document
}

Favorited stickers

func (*MessagesFavedStickersObj) CRC

func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers

func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers()

type MessagesFeaturedStickers

type MessagesFeaturedStickers interface {
	tl.Object
	ImplementsMessagesFeaturedStickers()
}

type MessagesFeaturedStickersNotModified

type MessagesFeaturedStickersNotModified struct {
	Count int32
}

Featured stickers haven't changed

func (*MessagesFeaturedStickersNotModified) CRC

func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers

func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers()

type MessagesFeaturedStickersObj

type MessagesFeaturedStickersObj struct {
	Premium bool `tl:"flag:0,encoded_in_bitflags"`
	Hash    int64
	Count   int32
	Sets    []StickerSetCovered
	Unread  []int64
}

Featured stickersets

func (*MessagesFeaturedStickersObj) CRC

func (*MessagesFeaturedStickersObj) FlagIndex

func (*MessagesFeaturedStickersObj) FlagIndex() int

func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers

func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers()

type MessagesFilter

type MessagesFilter interface {
	tl.Object
	ImplementsMessagesFilter()
}

type MessagesForumTopics

type MessagesForumTopics struct {
	OrderByCreateDate bool `tl:"flag:0,encoded_in_bitflags"`
	Count             int32
	Topics            []ForumTopic
	Messages          []Message
	Chats             []Chat
	Users             []User
	Pts               int32
}

Contains information about multiple [forum topics](https://core.telegram.org/api/forum#forum-topics)

func (*MessagesForumTopics) CRC

func (*MessagesForumTopics) CRC() uint32

func (*MessagesForumTopics) FlagIndex

func (*MessagesForumTopics) FlagIndex() int

type MessagesForwardMessagesParams

type MessagesForwardMessagesParams struct {
	Silent             bool `tl:"flag:5,encoded_in_bitflags"`
	Background         bool `tl:"flag:6,encoded_in_bitflags"`
	WithMyScore        bool `tl:"flag:8,encoded_in_bitflags"`
	DropAuthor         bool `tl:"flag:11,encoded_in_bitflags"`
	DropMediaCaptions  bool `tl:"flag:12,encoded_in_bitflags"`
	Noforwards         bool `tl:"flag:14,encoded_in_bitflags"`
	FromPeer           InputPeer
	ID                 []int32
	RandomID           []int64
	ToPeer             InputPeer
	TopMsgID           int32                   `tl:"flag:9"`
	ScheduleDate       int32                   `tl:"flag:10"`
	SendAs             InputPeer               `tl:"flag:13"`
	QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
}

func (*MessagesForwardMessagesParams) CRC

func (*MessagesForwardMessagesParams) FlagIndex

func (*MessagesForwardMessagesParams) FlagIndex() int

type MessagesFoundStickerSets

type MessagesFoundStickerSets interface {
	tl.Object
	ImplementsMessagesFoundStickerSets()
}

type MessagesFoundStickerSetsNotModified

type MessagesFoundStickerSetsNotModified struct{}

No further results were found

func (*MessagesFoundStickerSetsNotModified) CRC

func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets

func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets()

type MessagesFoundStickerSetsObj

type MessagesFoundStickerSetsObj struct {
	Hash int64
	Sets []StickerSetCovered
}

Found stickersets

func (*MessagesFoundStickerSetsObj) CRC

func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets

func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets()

type MessagesFulfillStarsSubscriptionParams

type MessagesFulfillStarsSubscriptionParams struct {
	Peer           InputPeer
	SubscriptionID string
}

func (*MessagesFulfillStarsSubscriptionParams) CRC

type MessagesGetAdminsWithInvitesParams

type MessagesGetAdminsWithInvitesParams struct {
	Peer InputPeer
}

func (*MessagesGetAdminsWithInvitesParams) CRC

type MessagesGetAllDraftsParams

type MessagesGetAllDraftsParams struct{}

func (*MessagesGetAllDraftsParams) CRC

type MessagesGetAllStickersParams

type MessagesGetAllStickersParams struct {
	Hash int64
}

func (*MessagesGetAllStickersParams) CRC

type MessagesGetArchivedStickersParams

type MessagesGetArchivedStickersParams struct {
	Masks    bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis   bool `tl:"flag:1,encoded_in_bitflags"`
	OffsetID int64
	Limit    int32
}

func (*MessagesGetArchivedStickersParams) CRC

func (*MessagesGetArchivedStickersParams) FlagIndex

type MessagesGetAttachMenuBotParams

type MessagesGetAttachMenuBotParams struct {
	Bot InputUser
}

func (*MessagesGetAttachMenuBotParams) CRC

type MessagesGetAttachMenuBotsParams

type MessagesGetAttachMenuBotsParams struct {
	Hash int64
}

func (*MessagesGetAttachMenuBotsParams) CRC

type MessagesGetAttachedStickersParams

type MessagesGetAttachedStickersParams struct {
	Media InputStickeredMedia
}

func (*MessagesGetAttachedStickersParams) CRC

type MessagesGetAvailableEffectsParams

type MessagesGetAvailableEffectsParams struct {
	Hash int32
}

func (*MessagesGetAvailableEffectsParams) CRC

type MessagesGetAvailableReactionsParams

type MessagesGetAvailableReactionsParams struct {
	Hash int32
}

func (*MessagesGetAvailableReactionsParams) CRC

type MessagesGetBotAppParams

type MessagesGetBotAppParams struct {
	App  InputBotApp
	Hash int64
}

func (*MessagesGetBotAppParams) CRC

type MessagesGetBotCallbackAnswerParams

type MessagesGetBotCallbackAnswerParams struct {
	Game     bool `tl:"flag:1,encoded_in_bitflags"`
	Peer     InputPeer
	MsgID    int32
	Data     []byte                `tl:"flag:0"`
	Password InputCheckPasswordSRP `tl:"flag:2"`
}

func (*MessagesGetBotCallbackAnswerParams) CRC

func (*MessagesGetBotCallbackAnswerParams) FlagIndex

type MessagesGetChatInviteImportersParams

type MessagesGetChatInviteImportersParams struct {
	Requested           bool `tl:"flag:0,encoded_in_bitflags"`
	Peer                InputPeer
	SubscriptionExpired bool   `tl:"flag:3,encoded_in_bitflags"`
	Link                string `tl:"flag:1"`
	Q                   string `tl:"flag:2"`
	OffsetDate          int32
	OffsetUser          InputUser
	Limit               int32
}

func (*MessagesGetChatInviteImportersParams) CRC

func (*MessagesGetChatInviteImportersParams) FlagIndex

type MessagesGetChatsParams

type MessagesGetChatsParams struct {
	ID []int64
}

func (*MessagesGetChatsParams) CRC

type MessagesGetCommonChatsParams

type MessagesGetCommonChatsParams struct {
	UserID InputUser
	MaxID  int64
	Limit  int32
}

func (*MessagesGetCommonChatsParams) CRC

type MessagesGetCustomEmojiDocumentsParams

type MessagesGetCustomEmojiDocumentsParams struct {
	DocumentID []int64
}

func (*MessagesGetCustomEmojiDocumentsParams) CRC

type MessagesGetDefaultHistoryTtlParams

type MessagesGetDefaultHistoryTtlParams struct{}

func (*MessagesGetDefaultHistoryTtlParams) CRC

type MessagesGetDefaultTagReactionsParams

type MessagesGetDefaultTagReactionsParams struct {
	Hash int64
}

func (*MessagesGetDefaultTagReactionsParams) CRC

type MessagesGetDhConfigParams

type MessagesGetDhConfigParams struct {
	Version      int32
	RandomLength int32
}

func (*MessagesGetDhConfigParams) CRC

type MessagesGetDialogFiltersParams

type MessagesGetDialogFiltersParams struct{}

func (*MessagesGetDialogFiltersParams) CRC

type MessagesGetDialogUnreadMarksParams

type MessagesGetDialogUnreadMarksParams struct{}

func (*MessagesGetDialogUnreadMarksParams) CRC

type MessagesGetDialogsParams

type MessagesGetDialogsParams struct {
	ExcludePinned bool  `tl:"flag:0,encoded_in_bitflags"`
	FolderID      int32 `tl:"flag:1"`
	OffsetDate    int32
	OffsetID      int32
	OffsetPeer    InputPeer
	Limit         int32
	Hash          int64
}

func (*MessagesGetDialogsParams) CRC

func (*MessagesGetDialogsParams) FlagIndex

func (*MessagesGetDialogsParams) FlagIndex() int

type MessagesGetDiscussionMessageParams

type MessagesGetDiscussionMessageParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesGetDiscussionMessageParams) CRC

type MessagesGetDocumentByHashParams

type MessagesGetDocumentByHashParams struct {
	SHA256   []byte
	Size     int64
	MimeType string
}

func (*MessagesGetDocumentByHashParams) CRC

type MessagesGetEmojiGroupsParams

type MessagesGetEmojiGroupsParams struct {
	Hash int32
}

func (*MessagesGetEmojiGroupsParams) CRC

type MessagesGetEmojiKeywordsDifferenceParams

type MessagesGetEmojiKeywordsDifferenceParams struct {
	LangCode    string
	FromVersion int32
}

func (*MessagesGetEmojiKeywordsDifferenceParams) CRC

type MessagesGetEmojiKeywordsLanguagesParams

type MessagesGetEmojiKeywordsLanguagesParams struct {
	LangCodes []string
}

func (*MessagesGetEmojiKeywordsLanguagesParams) CRC

type MessagesGetEmojiKeywordsParams

type MessagesGetEmojiKeywordsParams struct {
	LangCode string
}

func (*MessagesGetEmojiKeywordsParams) CRC

type MessagesGetEmojiProfilePhotoGroupsParams

type MessagesGetEmojiProfilePhotoGroupsParams struct {
	Hash int32
}

func (*MessagesGetEmojiProfilePhotoGroupsParams) CRC

type MessagesGetEmojiStatusGroupsParams

type MessagesGetEmojiStatusGroupsParams struct {
	Hash int32
}

func (*MessagesGetEmojiStatusGroupsParams) CRC

type MessagesGetEmojiStickerGroupsParams

type MessagesGetEmojiStickerGroupsParams struct {
	Hash int32
}

func (*MessagesGetEmojiStickerGroupsParams) CRC

type MessagesGetEmojiStickersParams

type MessagesGetEmojiStickersParams struct {
	Hash int64
}

func (*MessagesGetEmojiStickersParams) CRC

type MessagesGetEmojiURLParams

type MessagesGetEmojiURLParams struct {
	LangCode string
}

func (*MessagesGetEmojiURLParams) CRC

type MessagesGetExportedChatInviteParams

type MessagesGetExportedChatInviteParams struct {
	Peer InputPeer
	Link string
}

func (*MessagesGetExportedChatInviteParams) CRC

type MessagesGetExportedChatInvitesParams

type MessagesGetExportedChatInvitesParams struct {
	Revoked    bool `tl:"flag:3,encoded_in_bitflags"`
	Peer       InputPeer
	AdminID    InputUser
	OffsetDate int32  `tl:"flag:2"`
	OffsetLink string `tl:"flag:2"`
	Limit      int32
}

func (*MessagesGetExportedChatInvitesParams) CRC

func (*MessagesGetExportedChatInvitesParams) FlagIndex

type MessagesGetExtendedMediaParams

type MessagesGetExtendedMediaParams struct {
	Peer InputPeer
	ID   []int32
}

func (*MessagesGetExtendedMediaParams) CRC

type MessagesGetFactCheckParams

type MessagesGetFactCheckParams struct {
	Peer  InputPeer
	MsgID []int32
}

func (*MessagesGetFactCheckParams) CRC

type MessagesGetFavedStickersParams

type MessagesGetFavedStickersParams struct {
	Hash int64
}

func (*MessagesGetFavedStickersParams) CRC

type MessagesGetFeaturedEmojiStickersParams

type MessagesGetFeaturedEmojiStickersParams struct {
	Hash int64
}

func (*MessagesGetFeaturedEmojiStickersParams) CRC

type MessagesGetFeaturedStickersParams

type MessagesGetFeaturedStickersParams struct {
	Hash int64
}

func (*MessagesGetFeaturedStickersParams) CRC

type MessagesGetFullChatParams

type MessagesGetFullChatParams struct {
	ChatID int64
}

func (*MessagesGetFullChatParams) CRC

type MessagesGetGameHighScoresParams

type MessagesGetGameHighScoresParams struct {
	Peer   InputPeer
	ID     int32
	UserID InputUser
}

func (*MessagesGetGameHighScoresParams) CRC

type MessagesGetHistoryParams

type MessagesGetHistoryParams struct {
	Peer       InputPeer
	OffsetID   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxID      int32
	MinID      int32
	Hash       int64
}

func (*MessagesGetHistoryParams) CRC

type MessagesGetInlineBotResultsParams

type MessagesGetInlineBotResultsParams struct {
	Bot      InputUser
	Peer     InputPeer
	GeoPoint InputGeoPoint `tl:"flag:0"`
	Query    string
	Offset   string
}

func (*MessagesGetInlineBotResultsParams) CRC

func (*MessagesGetInlineBotResultsParams) FlagIndex

type MessagesGetInlineGameHighScoresParams

type MessagesGetInlineGameHighScoresParams struct {
	ID     InputBotInlineMessageID
	UserID InputUser
}

func (*MessagesGetInlineGameHighScoresParams) CRC

type MessagesGetMaskStickersParams

type MessagesGetMaskStickersParams struct {
	Hash int64
}

func (*MessagesGetMaskStickersParams) CRC

type MessagesGetMessageEditDataParams

type MessagesGetMessageEditDataParams struct {
	Peer InputPeer
	ID   int32
}

func (*MessagesGetMessageEditDataParams) CRC

type MessagesGetMessageReactionsListParams

type MessagesGetMessageReactionsListParams struct {
	Peer     InputPeer
	ID       int32
	Reaction Reaction `tl:"flag:0"`
	Offset   string   `tl:"flag:1"`
	Limit    int32
}

func (*MessagesGetMessageReactionsListParams) CRC

func (*MessagesGetMessageReactionsListParams) FlagIndex

type MessagesGetMessageReadParticipantsParams

type MessagesGetMessageReadParticipantsParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesGetMessageReadParticipantsParams) CRC

type MessagesGetMessagesParams

type MessagesGetMessagesParams struct {
	ID []InputMessage
}

func (*MessagesGetMessagesParams) CRC

type MessagesGetMessagesReactionsParams

type MessagesGetMessagesReactionsParams struct {
	Peer InputPeer
	ID   []int32
}

func (*MessagesGetMessagesReactionsParams) CRC

type MessagesGetMessagesViewsParams

type MessagesGetMessagesViewsParams struct {
	Peer      InputPeer
	ID        []int32
	Increment bool
}

func (*MessagesGetMessagesViewsParams) CRC

type MessagesGetMyStickersParams

type MessagesGetMyStickersParams struct {
	OffsetID int64
	Limit    int32
}

func (*MessagesGetMyStickersParams) CRC

type MessagesGetOldFeaturedStickersParams

type MessagesGetOldFeaturedStickersParams struct {
	Offset int32
	Limit  int32
	Hash   int64
}

func (*MessagesGetOldFeaturedStickersParams) CRC

type MessagesGetOnlinesParams

type MessagesGetOnlinesParams struct {
	Peer InputPeer
}

func (*MessagesGetOnlinesParams) CRC

type MessagesGetOutboxReadDateParams

type MessagesGetOutboxReadDateParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesGetOutboxReadDateParams) CRC

type MessagesGetPeerDialogsParams

type MessagesGetPeerDialogsParams struct {
	Peers []InputDialogPeer
}

func (*MessagesGetPeerDialogsParams) CRC

type MessagesGetPeerSettingsParams

type MessagesGetPeerSettingsParams struct {
	Peer InputPeer
}

func (*MessagesGetPeerSettingsParams) CRC

type MessagesGetPinnedDialogsParams

type MessagesGetPinnedDialogsParams struct {
	FolderID int32
}

func (*MessagesGetPinnedDialogsParams) CRC

type MessagesGetPinnedSavedDialogsParams

type MessagesGetPinnedSavedDialogsParams struct{}

func (*MessagesGetPinnedSavedDialogsParams) CRC

type MessagesGetPollResultsParams

type MessagesGetPollResultsParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesGetPollResultsParams) CRC

type MessagesGetPollVotesParams

type MessagesGetPollVotesParams struct {
	Peer   InputPeer
	ID     int32
	Option []byte `tl:"flag:0"`
	Offset string `tl:"flag:1"`
	Limit  int32
}

func (*MessagesGetPollVotesParams) CRC

func (*MessagesGetPollVotesParams) FlagIndex

func (*MessagesGetPollVotesParams) FlagIndex() int

type MessagesGetQuickRepliesParams

type MessagesGetQuickRepliesParams struct {
	Hash int64
}

func (*MessagesGetQuickRepliesParams) CRC

type MessagesGetQuickReplyMessagesParams

type MessagesGetQuickReplyMessagesParams struct {
	ShortcutID int32
	ID         []int32 `tl:"flag:0"`
	Hash       int64
}

func (*MessagesGetQuickReplyMessagesParams) CRC

func (*MessagesGetQuickReplyMessagesParams) FlagIndex

type MessagesGetRecentLocationsParams

type MessagesGetRecentLocationsParams struct {
	Peer  InputPeer
	Limit int32
	Hash  int64
}

func (*MessagesGetRecentLocationsParams) CRC

type MessagesGetRecentReactionsParams

type MessagesGetRecentReactionsParams struct {
	Limit int32
	Hash  int64
}

func (*MessagesGetRecentReactionsParams) CRC

type MessagesGetRecentStickersParams

type MessagesGetRecentStickersParams struct {
	Attached bool `tl:"flag:0,encoded_in_bitflags"`
	Hash     int64
}

func (*MessagesGetRecentStickersParams) CRC

func (*MessagesGetRecentStickersParams) FlagIndex

func (*MessagesGetRecentStickersParams) FlagIndex() int

type MessagesGetRepliesParams

type MessagesGetRepliesParams struct {
	Peer       InputPeer
	MsgID      int32
	OffsetID   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxID      int32
	MinID      int32
	Hash       int64
}

func (*MessagesGetRepliesParams) CRC

type MessagesGetSavedDialogsParams

type MessagesGetSavedDialogsParams struct {
	ExcludePinned bool `tl:"flag:0,encoded_in_bitflags"`
	OffsetDate    int32
	OffsetID      int32
	OffsetPeer    InputPeer
	Limit         int32
	Hash          int64
}

func (*MessagesGetSavedDialogsParams) CRC

func (*MessagesGetSavedDialogsParams) FlagIndex

func (*MessagesGetSavedDialogsParams) FlagIndex() int

type MessagesGetSavedGifsParams

type MessagesGetSavedGifsParams struct {
	Hash int64
}

func (*MessagesGetSavedGifsParams) CRC

type MessagesGetSavedHistoryParams

type MessagesGetSavedHistoryParams struct {
	Peer       InputPeer
	OffsetID   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxID      int32
	MinID      int32
	Hash       int64
}

func (*MessagesGetSavedHistoryParams) CRC

type MessagesGetSavedReactionTagsParams

type MessagesGetSavedReactionTagsParams struct {
	Peer InputPeer `tl:"flag:0"`
	Hash int64
}

func (*MessagesGetSavedReactionTagsParams) CRC

func (*MessagesGetSavedReactionTagsParams) FlagIndex

type MessagesGetScheduledHistoryParams

type MessagesGetScheduledHistoryParams struct {
	Peer InputPeer
	Hash int64
}

func (*MessagesGetScheduledHistoryParams) CRC

type MessagesGetScheduledMessagesParams

type MessagesGetScheduledMessagesParams struct {
	Peer InputPeer
	ID   []int32
}

func (*MessagesGetScheduledMessagesParams) CRC

type MessagesGetSearchCountersParams

type MessagesGetSearchCountersParams struct {
	Peer        InputPeer
	SavedPeerID InputPeer `tl:"flag:2"`
	TopMsgID    int32     `tl:"flag:0"`
	Filters     []MessagesFilter
}

func (*MessagesGetSearchCountersParams) CRC

func (*MessagesGetSearchCountersParams) FlagIndex

func (*MessagesGetSearchCountersParams) FlagIndex() int

type MessagesGetSearchResultsCalendarParams

type MessagesGetSearchResultsCalendarParams struct {
	Peer        InputPeer
	SavedPeerID InputPeer `tl:"flag:2"`
	Filter      MessagesFilter
	OffsetID    int32
	OffsetDate  int32
}

func (*MessagesGetSearchResultsCalendarParams) CRC

func (*MessagesGetSearchResultsCalendarParams) FlagIndex

type MessagesGetSearchResultsPositionsParams

type MessagesGetSearchResultsPositionsParams struct {
	Peer        InputPeer
	SavedPeerID InputPeer `tl:"flag:2"`
	Filter      MessagesFilter
	OffsetID    int32
	Limit       int32
}

func (*MessagesGetSearchResultsPositionsParams) CRC

func (*MessagesGetSearchResultsPositionsParams) FlagIndex

type MessagesGetSplitRangesParams

type MessagesGetSplitRangesParams struct{}

func (*MessagesGetSplitRangesParams) CRC

type MessagesGetStarsSubscriptionsParams

type MessagesGetStarsSubscriptionsParams struct {
	MissingBalance bool `tl:"flag:0,encoded_in_bitflags"`
	Peer           InputPeer
	Offset         string
}

func (*MessagesGetStarsSubscriptionsParams) CRC

func (*MessagesGetStarsSubscriptionsParams) FlagIndex

type MessagesGetStickerSetParams

type MessagesGetStickerSetParams struct {
	Stickerset InputStickerSet
	Hash       int32
}

func (*MessagesGetStickerSetParams) CRC

type MessagesGetStickersParams

type MessagesGetStickersParams struct {
	Emoticon string
	Hash     int64
}

func (*MessagesGetStickersParams) CRC

type MessagesGetSuggestedDialogFiltersParams

type MessagesGetSuggestedDialogFiltersParams struct{}

func (*MessagesGetSuggestedDialogFiltersParams) CRC

type MessagesGetTopReactionsParams

type MessagesGetTopReactionsParams struct {
	Limit int32
	Hash  int64
}

func (*MessagesGetTopReactionsParams) CRC

type MessagesGetUnreadMentionsParams

type MessagesGetUnreadMentionsParams struct {
	Peer      InputPeer
	TopMsgID  int32 `tl:"flag:0"`
	OffsetID  int32
	AddOffset int32
	Limit     int32
	MaxID     int32
	MinID     int32
}

func (*MessagesGetUnreadMentionsParams) CRC

func (*MessagesGetUnreadMentionsParams) FlagIndex

func (*MessagesGetUnreadMentionsParams) FlagIndex() int

type MessagesGetUnreadReactionsParams

type MessagesGetUnreadReactionsParams struct {
	Peer      InputPeer
	TopMsgID  int32 `tl:"flag:0"`
	OffsetID  int32
	AddOffset int32
	Limit     int32
	MaxID     int32
	MinID     int32
}

func (*MessagesGetUnreadReactionsParams) CRC

func (*MessagesGetUnreadReactionsParams) FlagIndex

type MessagesGetWebPageParams

type MessagesGetWebPageParams struct {
	URL  string
	Hash int32
}

func (*MessagesGetWebPageParams) CRC

type MessagesGetWebPagePreviewParams

type MessagesGetWebPagePreviewParams struct {
	Message  string
	Entities []MessageEntity `tl:"flag:3"`
}

func (*MessagesGetWebPagePreviewParams) CRC

func (*MessagesGetWebPagePreviewParams) FlagIndex

func (*MessagesGetWebPagePreviewParams) FlagIndex() int

type MessagesHideAllChatJoinRequestsParams

type MessagesHideAllChatJoinRequestsParams struct {
	Approved bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     InputPeer
	Link     string `tl:"flag:1"`
}

func (*MessagesHideAllChatJoinRequestsParams) CRC

func (*MessagesHideAllChatJoinRequestsParams) FlagIndex

type MessagesHideChatJoinRequestParams

type MessagesHideChatJoinRequestParams struct {
	Approved bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     InputPeer
	UserID   InputUser
}

func (*MessagesHideChatJoinRequestParams) CRC

func (*MessagesHideChatJoinRequestParams) FlagIndex

type MessagesHidePeerSettingsBarParams

type MessagesHidePeerSettingsBarParams struct {
	Peer InputPeer
}

func (*MessagesHidePeerSettingsBarParams) CRC

type MessagesHighScores

type MessagesHighScores struct {
	Scores []*HighScore
	Users  []User
}

Highscores in a game

func (*MessagesHighScores) CRC

func (*MessagesHighScores) CRC() uint32

type MessagesHistoryImport

type MessagesHistoryImport struct {
	ID int64
}

ID of a specific [chat import session, click here for more info »](https://core.telegram.org/api/import).

func (*MessagesHistoryImport) CRC

type MessagesHistoryImportParsed

type MessagesHistoryImportParsed struct {
	Pm    bool   `tl:"flag:0,encoded_in_bitflags"`
	Group bool   `tl:"flag:1,encoded_in_bitflags"`
	Title string `tl:"flag:2"`
}

Contains information about a chat export file [generated by a foreign chat app, click here for more info](https://core.telegram.org/api/import).<br> If neither the `pm` or `group` flags are set, the specified chat export was generated from a chat of unknown type.

func (*MessagesHistoryImportParsed) CRC

func (*MessagesHistoryImportParsed) FlagIndex

func (*MessagesHistoryImportParsed) FlagIndex() int

type MessagesImportChatInviteParams

type MessagesImportChatInviteParams struct {
	Hash string
}

func (*MessagesImportChatInviteParams) CRC

type MessagesInactiveChats

type MessagesInactiveChats struct {
	Dates []int32
	Chats []Chat
	Users []User
}

Inactive chat list

func (*MessagesInactiveChats) CRC

type MessagesInitHistoryImportParams

type MessagesInitHistoryImportParams struct {
	Peer       InputPeer
	File       InputFile
	MediaCount int32
}

func (*MessagesInitHistoryImportParams) CRC

type MessagesInstallStickerSetParams

type MessagesInstallStickerSetParams struct {
	Stickerset InputStickerSet
	Archived   bool
}

func (*MessagesInstallStickerSetParams) CRC

type MessagesInvitedUsers

type MessagesInvitedUsers struct {
	Updates         Updates
	MissingInvitees []*MissingInvitee
}

func (*MessagesInvitedUsers) CRC

type MessagesMarkDialogUnreadParams

type MessagesMarkDialogUnreadParams struct {
	Unread bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   InputDialogPeer
}

func (*MessagesMarkDialogUnreadParams) CRC

func (*MessagesMarkDialogUnreadParams) FlagIndex

func (*MessagesMarkDialogUnreadParams) FlagIndex() int

type MessagesMessageEditData

type MessagesMessageEditData struct {
	Caption bool `tl:"flag:0,encoded_in_bitflags"`
}

Message edit data for media

func (*MessagesMessageEditData) CRC

func (*MessagesMessageEditData) FlagIndex

func (*MessagesMessageEditData) FlagIndex() int

type MessagesMessageReactionsList

type MessagesMessageReactionsList struct {
	Count      int32
	Reactions  []*MessagePeerReaction
	Chats      []Chat
	Users      []User
	NextOffset string `tl:"flag:0"`
}

List of peers that reacted to a specific message

func (*MessagesMessageReactionsList) CRC

func (*MessagesMessageReactionsList) FlagIndex

func (*MessagesMessageReactionsList) FlagIndex() int

type MessagesMessageViews

type MessagesMessageViews struct {
	Views []*MessageViews
	Chats []Chat
	Users []User
}

View, forward counter + info about replies

func (*MessagesMessageViews) CRC

type MessagesMessages

type MessagesMessages interface {
	tl.Object
	ImplementsMessagesMessages()
}

type MessagesMessagesNotModified

type MessagesMessagesNotModified struct {
	Count int32
}

No new messages matching the query were found

func (*MessagesMessagesNotModified) CRC

func (*MessagesMessagesNotModified) ImplementsMessagesMessages

func (*MessagesMessagesNotModified) ImplementsMessagesMessages()

type MessagesMessagesObj

type MessagesMessagesObj struct {
	Messages []Message
	Chats    []Chat
	Users    []User
}

Full list of messages with auxiliary data.

func (*MessagesMessagesObj) CRC

func (*MessagesMessagesObj) CRC() uint32

func (*MessagesMessagesObj) ImplementsMessagesMessages

func (*MessagesMessagesObj) ImplementsMessagesMessages()

type MessagesMessagesSlice

type MessagesMessagesSlice struct {
	Inexact        bool `tl:"flag:1,encoded_in_bitflags"`
	Count          int32
	NextRate       int32 `tl:"flag:0"`
	OffsetIDOffset int32 `tl:"flag:2"`
	Messages       []Message
	Chats          []Chat
	Users          []User
}

Incomplete list of messages and auxiliary data.

func (*MessagesMessagesSlice) CRC

func (*MessagesMessagesSlice) FlagIndex

func (*MessagesMessagesSlice) FlagIndex() int

func (*MessagesMessagesSlice) ImplementsMessagesMessages

func (*MessagesMessagesSlice) ImplementsMessagesMessages()

type MessagesMigrateChatParams

type MessagesMigrateChatParams struct {
	ChatID int64
}

func (*MessagesMigrateChatParams) CRC

type MessagesMyStickers

type MessagesMyStickers struct {
	Count int32
	Sets  []StickerSetCovered
}

func (*MessagesMyStickers) CRC

func (*MessagesMyStickers) CRC() uint32

type MessagesPeerDialogs

type MessagesPeerDialogs struct {
	Dialogs  []Dialog
	Messages []Message
	Chats    []Chat
	Users    []User
	State    *UpdatesState
}

Dialog info of multiple peers

func (*MessagesPeerDialogs) CRC

func (*MessagesPeerDialogs) CRC() uint32

type MessagesPeerSettings

type MessagesPeerSettings struct {
	Settings *PeerSettings
	Chats    []Chat
	Users    []User
}

Peer settings

func (*MessagesPeerSettings) CRC

type MessagesProlongWebViewParams

type MessagesProlongWebViewParams struct {
	Silent  bool `tl:"flag:5,encoded_in_bitflags"`
	Peer    InputPeer
	Bot     InputUser
	QueryID int64
	ReplyTo InputReplyTo `tl:"flag:0"`
	SendAs  InputPeer    `tl:"flag:13"`
}

func (*MessagesProlongWebViewParams) CRC

func (*MessagesProlongWebViewParams) FlagIndex

func (*MessagesProlongWebViewParams) FlagIndex() int

type MessagesQuickReplies

type MessagesQuickReplies interface {
	tl.Object
	ImplementsMessagesQuickReplies()
}

type MessagesQuickRepliesNotModified

type MessagesQuickRepliesNotModified struct{}

func (*MessagesQuickRepliesNotModified) CRC

func (*MessagesQuickRepliesNotModified) ImplementsMessagesQuickReplies

func (*MessagesQuickRepliesNotModified) ImplementsMessagesQuickReplies()

type MessagesQuickRepliesObj

type MessagesQuickRepliesObj struct {
	QuickReplies []*QuickReply
	Messages     []Message
	Chats        []Chat
	Users        []User
}

func (*MessagesQuickRepliesObj) CRC

func (*MessagesQuickRepliesObj) ImplementsMessagesQuickReplies

func (*MessagesQuickRepliesObj) ImplementsMessagesQuickReplies()

type MessagesRateTranscribedAudioParams

type MessagesRateTranscribedAudioParams struct {
	Peer            InputPeer
	MsgID           int32
	TranscriptionID int64
	Good            bool
}

func (*MessagesRateTranscribedAudioParams) CRC

type MessagesReactions

type MessagesReactions interface {
	tl.Object
	ImplementsMessagesReactions()
}

type MessagesReactionsNotModified

type MessagesReactionsNotModified struct{}

The server-side list of [message reactions](https://core.telegram.org/api/reactions) hasn't changed

func (*MessagesReactionsNotModified) CRC

func (*MessagesReactionsNotModified) ImplementsMessagesReactions

func (*MessagesReactionsNotModified) ImplementsMessagesReactions()

type MessagesReactionsObj

type MessagesReactionsObj struct {
	Hash      int64
	Reactions []Reaction
}

List of [message reactions](https://core.telegram.org/api/reactions)

func (*MessagesReactionsObj) CRC

func (*MessagesReactionsObj) ImplementsMessagesReactions

func (*MessagesReactionsObj) ImplementsMessagesReactions()

type MessagesReadDiscussionParams

type MessagesReadDiscussionParams struct {
	Peer      InputPeer
	MsgID     int32
	ReadMaxID int32
}

func (*MessagesReadDiscussionParams) CRC

type MessagesReadEncryptedHistoryParams

type MessagesReadEncryptedHistoryParams struct {
	Peer    *InputEncryptedChat
	MaxDate int32
}

func (*MessagesReadEncryptedHistoryParams) CRC

type MessagesReadFeaturedStickersParams

type MessagesReadFeaturedStickersParams struct {
	ID []int64
}

func (*MessagesReadFeaturedStickersParams) CRC

type MessagesReadHistoryParams

type MessagesReadHistoryParams struct {
	Peer  InputPeer
	MaxID int32
}

func (*MessagesReadHistoryParams) CRC

type MessagesReadMentionsParams

type MessagesReadMentionsParams struct {
	Peer     InputPeer
	TopMsgID int32 `tl:"flag:0"`
}

func (*MessagesReadMentionsParams) CRC

func (*MessagesReadMentionsParams) FlagIndex

func (*MessagesReadMentionsParams) FlagIndex() int

type MessagesReadMessageContentsParams

type MessagesReadMessageContentsParams struct {
	ID []int32
}

func (*MessagesReadMessageContentsParams) CRC

type MessagesReadReactionsParams

type MessagesReadReactionsParams struct {
	Peer     InputPeer
	TopMsgID int32 `tl:"flag:0"`
}

func (*MessagesReadReactionsParams) CRC

func (*MessagesReadReactionsParams) FlagIndex

func (*MessagesReadReactionsParams) FlagIndex() int

type MessagesReceivedMessagesParams

type MessagesReceivedMessagesParams struct {
	MaxID int32
}

func (*MessagesReceivedMessagesParams) CRC

type MessagesReceivedQueueParams

type MessagesReceivedQueueParams struct {
	MaxQts int32
}

func (*MessagesReceivedQueueParams) CRC

type MessagesRecentStickers

type MessagesRecentStickers interface {
	tl.Object
	ImplementsMessagesRecentStickers()
}

type MessagesRecentStickersNotModified

type MessagesRecentStickersNotModified struct{}

No new recent sticker was found

func (*MessagesRecentStickersNotModified) CRC

func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers

func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers()

type MessagesRecentStickersObj

type MessagesRecentStickersObj struct {
	Hash     int64
	Packs    []*StickerPack
	Stickers []Document
	Dates    []int32
}

Recently used stickers

func (*MessagesRecentStickersObj) CRC

func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers

func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers()

type MessagesReorderPinnedDialogsParams

type MessagesReorderPinnedDialogsParams struct {
	Force    bool `tl:"flag:0,encoded_in_bitflags"`
	FolderID int32
	Order    []InputDialogPeer
}

func (*MessagesReorderPinnedDialogsParams) CRC

func (*MessagesReorderPinnedDialogsParams) FlagIndex

type MessagesReorderPinnedSavedDialogsParams

type MessagesReorderPinnedSavedDialogsParams struct {
	Force bool `tl:"flag:0,encoded_in_bitflags"`
	Order []InputDialogPeer
}

func (*MessagesReorderPinnedSavedDialogsParams) CRC

func (*MessagesReorderPinnedSavedDialogsParams) FlagIndex

type MessagesReorderQuickRepliesParams

type MessagesReorderQuickRepliesParams struct {
	Order []int32
}

func (*MessagesReorderQuickRepliesParams) CRC

type MessagesReorderStickerSetsParams

type MessagesReorderStickerSetsParams struct {
	Masks  bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis bool `tl:"flag:1,encoded_in_bitflags"`
	Order  []int64
}

func (*MessagesReorderStickerSetsParams) CRC

func (*MessagesReorderStickerSetsParams) FlagIndex

type MessagesReportEncryptedSpamParams

type MessagesReportEncryptedSpamParams struct {
	Peer *InputEncryptedChat
}

func (*MessagesReportEncryptedSpamParams) CRC

type MessagesReportParams

type MessagesReportParams struct {
	Peer    InputPeer
	ID      []int32
	Reason  ReportReason
	Message string
}

func (*MessagesReportParams) CRC

type MessagesReportReactionParams

type MessagesReportReactionParams struct {
	Peer         InputPeer
	ID           int32
	ReactionPeer InputPeer
}

func (*MessagesReportReactionParams) CRC

type MessagesReportSpamParams

type MessagesReportSpamParams struct {
	Peer InputPeer
}

func (*MessagesReportSpamParams) CRC

type MessagesRequestAppWebViewParams

type MessagesRequestAppWebViewParams struct {
	WriteAllowed bool `tl:"flag:0,encoded_in_bitflags"`
	Compact      bool `tl:"flag:7,encoded_in_bitflags"`
	Peer         InputPeer
	App          InputBotApp
	StartParam   string    `tl:"flag:1"`
	ThemeParams  *DataJson `tl:"flag:2"`
	Platform     string
}

func (*MessagesRequestAppWebViewParams) CRC

func (*MessagesRequestAppWebViewParams) FlagIndex

func (*MessagesRequestAppWebViewParams) FlagIndex() int

type MessagesRequestEncryptionParams

type MessagesRequestEncryptionParams struct {
	UserID   InputUser
	RandomID int32
	GA       []byte
}

func (*MessagesRequestEncryptionParams) CRC

type MessagesRequestMainWebViewParams

type MessagesRequestMainWebViewParams struct {
	Compact     bool `tl:"flag:7,encoded_in_bitflags"`
	Peer        InputPeer
	Bot         InputUser
	StartParam  string    `tl:"flag:1"`
	ThemeParams *DataJson `tl:"flag:0"`
	Platform    string
}

func (*MessagesRequestMainWebViewParams) CRC

func (*MessagesRequestMainWebViewParams) FlagIndex

type MessagesRequestSimpleWebViewParams

type MessagesRequestSimpleWebViewParams struct {
	FromSwitchWebview bool `tl:"flag:1,encoded_in_bitflags"`
	FromSideMenu      bool `tl:"flag:2,encoded_in_bitflags"`
	Compact           bool `tl:"flag:7,encoded_in_bitflags"`
	Bot               InputUser
	URL               string    `tl:"flag:3"`
	StartParam        string    `tl:"flag:4"`
	ThemeParams       *DataJson `tl:"flag:0"`
	Platform          string
}

func (*MessagesRequestSimpleWebViewParams) CRC

func (*MessagesRequestSimpleWebViewParams) FlagIndex

type MessagesRequestURLAuthParams

type MessagesRequestURLAuthParams struct {
	Peer     InputPeer `tl:"flag:1"`
	MsgID    int32     `tl:"flag:1"`
	ButtonID int32     `tl:"flag:1"`
	URL      string    `tl:"flag:2"`
}

func (*MessagesRequestURLAuthParams) CRC

func (*MessagesRequestURLAuthParams) FlagIndex

func (*MessagesRequestURLAuthParams) FlagIndex() int

type MessagesRequestWebViewParams

type MessagesRequestWebViewParams struct {
	FromBotMenu bool `tl:"flag:4,encoded_in_bitflags"`
	Silent      bool `tl:"flag:5,encoded_in_bitflags"`
	Compact     bool `tl:"flag:7,encoded_in_bitflags"`
	Peer        InputPeer
	Bot         InputUser
	URL         string    `tl:"flag:1"`
	StartParam  string    `tl:"flag:3"`
	ThemeParams *DataJson `tl:"flag:2"`
	Platform    string
	ReplyTo     InputReplyTo `tl:"flag:0"`
	SendAs      InputPeer    `tl:"flag:13"`
}

func (*MessagesRequestWebViewParams) CRC

func (*MessagesRequestWebViewParams) FlagIndex

func (*MessagesRequestWebViewParams) FlagIndex() int

type MessagesSaveDefaultSendAsParams

type MessagesSaveDefaultSendAsParams struct {
	Peer   InputPeer
	SendAs InputPeer
}

func (*MessagesSaveDefaultSendAsParams) CRC

type MessagesSaveDraftParams

type MessagesSaveDraftParams struct {
	NoWebpage   bool         `tl:"flag:1,encoded_in_bitflags"`
	InvertMedia bool         `tl:"flag:6,encoded_in_bitflags"`
	ReplyTo     InputReplyTo `tl:"flag:4"`
	Peer        InputPeer
	Message     string
	Entities    []MessageEntity `tl:"flag:3"`
	Media       InputMedia      `tl:"flag:5"`
	Effect      int64           `tl:"flag:7"`
}

func (*MessagesSaveDraftParams) CRC

func (*MessagesSaveDraftParams) FlagIndex

func (*MessagesSaveDraftParams) FlagIndex() int

type MessagesSaveGifParams

type MessagesSaveGifParams struct {
	ID     InputDocument
	Unsave bool
}

func (*MessagesSaveGifParams) CRC

type MessagesSaveRecentStickerParams

type MessagesSaveRecentStickerParams struct {
	Attached bool `tl:"flag:0,encoded_in_bitflags"`
	ID       InputDocument
	Unsave   bool
}

func (*MessagesSaveRecentStickerParams) CRC

func (*MessagesSaveRecentStickerParams) FlagIndex

func (*MessagesSaveRecentStickerParams) FlagIndex() int

type MessagesSavedDialogs

type MessagesSavedDialogs interface {
	tl.Object
	ImplementsMessagesSavedDialogs()
}

type MessagesSavedDialogsNotModified

type MessagesSavedDialogsNotModified struct {
	Count int32
}

The saved dialogs haven't changed

func (*MessagesSavedDialogsNotModified) CRC

func (*MessagesSavedDialogsNotModified) ImplementsMessagesSavedDialogs

func (*MessagesSavedDialogsNotModified) ImplementsMessagesSavedDialogs()

type MessagesSavedDialogsObj

type MessagesSavedDialogsObj struct {
	Dialogs  []*SavedDialog
	Messages []Message
	Chats    []Chat
	Users    []User
}

Represents some [saved message dialogs »](https://core.telegram.org/api/saved-messages).

func (*MessagesSavedDialogsObj) CRC

func (*MessagesSavedDialogsObj) ImplementsMessagesSavedDialogs

func (*MessagesSavedDialogsObj) ImplementsMessagesSavedDialogs()

type MessagesSavedDialogsSlice

type MessagesSavedDialogsSlice struct {
	Count    int32
	Dialogs  []*SavedDialog
	Messages []Message
	Chats    []Chat
	Users    []User
}

Incomplete list of [saved message dialogs »](https://core.telegram.org/api/saved-messages) with messages and auxiliary data.

func (*MessagesSavedDialogsSlice) CRC

func (*MessagesSavedDialogsSlice) ImplementsMessagesSavedDialogs

func (*MessagesSavedDialogsSlice) ImplementsMessagesSavedDialogs()

type MessagesSavedGifs

type MessagesSavedGifs interface {
	tl.Object
	ImplementsMessagesSavedGifs()
}

type MessagesSavedGifsNotModified

type MessagesSavedGifsNotModified struct{}

No new saved gifs were found

func (*MessagesSavedGifsNotModified) CRC

func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs

func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs()

type MessagesSavedGifsObj

type MessagesSavedGifsObj struct {
	Hash int64
	Gifs []Document
}

Saved gifs

func (*MessagesSavedGifsObj) CRC

func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs

func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs()

type MessagesSavedReactionTags

type MessagesSavedReactionTags interface {
	tl.Object
	ImplementsMessagesSavedReactionTags()
}

type MessagesSavedReactionTagsNotModified

type MessagesSavedReactionTagsNotModified struct{}

func (*MessagesSavedReactionTagsNotModified) CRC

func (*MessagesSavedReactionTagsNotModified) ImplementsMessagesSavedReactionTags

func (*MessagesSavedReactionTagsNotModified) ImplementsMessagesSavedReactionTags()

type MessagesSavedReactionTagsObj

type MessagesSavedReactionTagsObj struct {
	Tags []*SavedReactionTag
	Hash int64
}

func (*MessagesSavedReactionTagsObj) CRC

func (*MessagesSavedReactionTagsObj) ImplementsMessagesSavedReactionTags

func (*MessagesSavedReactionTagsObj) ImplementsMessagesSavedReactionTags()

type MessagesSearchCounter

type MessagesSearchCounter struct {
	Inexact bool `tl:"flag:1,encoded_in_bitflags"`
	Filter  MessagesFilter
	Count   int32
}

Indicates how many results would be found by a [messages.search](https://core.telegram.org/method/messages.search) call with the same parameters

func (*MessagesSearchCounter) CRC

func (*MessagesSearchCounter) FlagIndex

func (*MessagesSearchCounter) FlagIndex() int

type MessagesSearchCustomEmojiParams

type MessagesSearchCustomEmojiParams struct {
	Emoticon string
	Hash     int64
}

func (*MessagesSearchCustomEmojiParams) CRC

type MessagesSearchEmojiStickerSetsParams

type MessagesSearchEmojiStickerSetsParams struct {
	ExcludeFeatured bool `tl:"flag:0,encoded_in_bitflags"`
	Q               string
	Hash            int64
}

func (*MessagesSearchEmojiStickerSetsParams) CRC

func (*MessagesSearchEmojiStickerSetsParams) FlagIndex

type MessagesSearchGlobalParams

type MessagesSearchGlobalParams struct {
	BroadcastsOnly bool  `tl:"flag:1,encoded_in_bitflags"`
	FolderID       int32 `tl:"flag:0"`
	Q              string
	Filter         MessagesFilter
	MinDate        int32
	MaxDate        int32
	OffsetRate     int32
	OffsetPeer     InputPeer
	OffsetID       int32
	Limit          int32
}

func (*MessagesSearchGlobalParams) CRC

func (*MessagesSearchGlobalParams) FlagIndex

func (*MessagesSearchGlobalParams) FlagIndex() int

type MessagesSearchParams

type MessagesSearchParams struct {
	Peer          InputPeer
	Q             string
	FromID        InputPeer  `tl:"flag:0"`
	SavedPeerID   InputPeer  `tl:"flag:2"`
	SavedReaction []Reaction `tl:"flag:3"`
	TopMsgID      int32      `tl:"flag:1"`
	Filter        MessagesFilter
	MinDate       int32
	MaxDate       int32
	OffsetID      int32
	AddOffset     int32
	Limit         int32
	MaxID         int32
	MinID         int32
	Hash          int64
}

func (*MessagesSearchParams) CRC

func (*MessagesSearchParams) FlagIndex

func (*MessagesSearchParams) FlagIndex() int

type MessagesSearchResultsCalendar

type MessagesSearchResultsCalendar struct {
	Inexact        bool `tl:"flag:0,encoded_in_bitflags"`
	Count          int32
	MinDate        int32
	MinMsgID       int32
	OffsetIDOffset int32 `tl:"flag:1"`
	Periods        []*SearchResultsCalendarPeriod
	Messages       []Message
	Chats          []Chat
	Users          []User
}

Information about found messages sent on a specific day

func (*MessagesSearchResultsCalendar) CRC

func (*MessagesSearchResultsCalendar) FlagIndex

func (*MessagesSearchResultsCalendar) FlagIndex() int

type MessagesSearchResultsPositions

type MessagesSearchResultsPositions struct {
	Count     int32
	Positions []*SearchResultPosition
}

Information about sparse positions of messages

func (*MessagesSearchResultsPositions) CRC

type MessagesSearchSentMediaParams

type MessagesSearchSentMediaParams struct {
	Q      string
	Filter MessagesFilter
	Limit  int32
}

func (*MessagesSearchSentMediaParams) CRC

type MessagesSearchStickerSetsParams

type MessagesSearchStickerSetsParams struct {
	ExcludeFeatured bool `tl:"flag:0,encoded_in_bitflags"`
	Q               string
	Hash            int64
}

func (*MessagesSearchStickerSetsParams) CRC

func (*MessagesSearchStickerSetsParams) FlagIndex

func (*MessagesSearchStickerSetsParams) FlagIndex() int

type MessagesSendBotRequestedPeerParams

type MessagesSendBotRequestedPeerParams struct {
	Peer           InputPeer
	MsgID          int32
	ButtonID       int32
	RequestedPeers []InputPeer
}

func (*MessagesSendBotRequestedPeerParams) CRC

type MessagesSendEncryptedFileParams

type MessagesSendEncryptedFileParams struct {
	Silent   bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     *InputEncryptedChat
	RandomID int64
	Data     []byte
	File     InputEncryptedFile
}

func (*MessagesSendEncryptedFileParams) CRC

func (*MessagesSendEncryptedFileParams) FlagIndex

func (*MessagesSendEncryptedFileParams) FlagIndex() int

type MessagesSendEncryptedParams

type MessagesSendEncryptedParams struct {
	Silent   bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     *InputEncryptedChat
	RandomID int64
	Data     []byte
}

func (*MessagesSendEncryptedParams) CRC

func (*MessagesSendEncryptedParams) FlagIndex

func (*MessagesSendEncryptedParams) FlagIndex() int

type MessagesSendEncryptedServiceParams

type MessagesSendEncryptedServiceParams struct {
	Peer     *InputEncryptedChat
	RandomID int64
	Data     []byte
}

func (*MessagesSendEncryptedServiceParams) CRC

type MessagesSendInlineBotResultParams

type MessagesSendInlineBotResultParams struct {
	Silent             bool `tl:"flag:5,encoded_in_bitflags"`
	Background         bool `tl:"flag:6,encoded_in_bitflags"`
	ClearDraft         bool `tl:"flag:7,encoded_in_bitflags"`
	HideVia            bool `tl:"flag:11,encoded_in_bitflags"`
	Peer               InputPeer
	ReplyTo            InputReplyTo `tl:"flag:0"`
	RandomID           int64
	QueryID            int64
	ID                 string
	ScheduleDate       int32                   `tl:"flag:10"`
	SendAs             InputPeer               `tl:"flag:13"`
	QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
}

func (*MessagesSendInlineBotResultParams) CRC

func (*MessagesSendInlineBotResultParams) FlagIndex

type MessagesSendMediaParams

type MessagesSendMediaParams struct {
	Silent                 bool `tl:"flag:5,encoded_in_bitflags"`
	Background             bool `tl:"flag:6,encoded_in_bitflags"`
	ClearDraft             bool `tl:"flag:7,encoded_in_bitflags"`
	Noforwards             bool `tl:"flag:14,encoded_in_bitflags"`
	UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
	InvertMedia            bool `tl:"flag:16,encoded_in_bitflags"`
	Peer                   InputPeer
	ReplyTo                InputReplyTo `tl:"flag:0"`
	Media                  InputMedia
	Message                string
	RandomID               int64
	ReplyMarkup            ReplyMarkup             `tl:"flag:2"`
	Entities               []MessageEntity         `tl:"flag:3"`
	ScheduleDate           int32                   `tl:"flag:10"`
	SendAs                 InputPeer               `tl:"flag:13"`
	QuickReplyShortcut     InputQuickReplyShortcut `tl:"flag:17"`
	Effect                 int64                   `tl:"flag:18"`
}

func (*MessagesSendMediaParams) CRC

func (*MessagesSendMediaParams) FlagIndex

func (*MessagesSendMediaParams) FlagIndex() int

type MessagesSendMessageParams

type MessagesSendMessageParams struct {
	NoWebpage              bool `tl:"flag:1,encoded_in_bitflags"`
	Silent                 bool `tl:"flag:5,encoded_in_bitflags"`
	Background             bool `tl:"flag:6,encoded_in_bitflags"`
	ClearDraft             bool `tl:"flag:7,encoded_in_bitflags"`
	Noforwards             bool `tl:"flag:14,encoded_in_bitflags"`
	UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
	InvertMedia            bool `tl:"flag:16,encoded_in_bitflags"`
	Peer                   InputPeer
	ReplyTo                InputReplyTo `tl:"flag:0"`
	Message                string
	RandomID               int64
	ReplyMarkup            ReplyMarkup             `tl:"flag:2"`
	Entities               []MessageEntity         `tl:"flag:3"`
	ScheduleDate           int32                   `tl:"flag:10"`
	SendAs                 InputPeer               `tl:"flag:13"`
	QuickReplyShortcut     InputQuickReplyShortcut `tl:"flag:17"`
	Effect                 int64                   `tl:"flag:18"`
}

func (*MessagesSendMessageParams) CRC

func (*MessagesSendMessageParams) FlagIndex

func (*MessagesSendMessageParams) FlagIndex() int

type MessagesSendMultiMediaParams

type MessagesSendMultiMediaParams struct {
	Silent                 bool `tl:"flag:5,encoded_in_bitflags"`
	Background             bool `tl:"flag:6,encoded_in_bitflags"`
	ClearDraft             bool `tl:"flag:7,encoded_in_bitflags"`
	Noforwards             bool `tl:"flag:14,encoded_in_bitflags"`
	UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
	InvertMedia            bool `tl:"flag:16,encoded_in_bitflags"`
	Peer                   InputPeer
	ReplyTo                InputReplyTo `tl:"flag:0"`
	MultiMedia             []*InputSingleMedia
	ScheduleDate           int32                   `tl:"flag:10"`
	SendAs                 InputPeer               `tl:"flag:13"`
	QuickReplyShortcut     InputQuickReplyShortcut `tl:"flag:17"`
	Effect                 int64                   `tl:"flag:18"`
}

func (*MessagesSendMultiMediaParams) CRC

func (*MessagesSendMultiMediaParams) FlagIndex

func (*MessagesSendMultiMediaParams) FlagIndex() int

type MessagesSendPaidReactionParams

type MessagesSendPaidReactionParams struct {
	Private  bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     InputPeer
	MsgID    int32
	Count    int32
	RandomID int64
}

func (*MessagesSendPaidReactionParams) CRC

func (*MessagesSendPaidReactionParams) FlagIndex

func (*MessagesSendPaidReactionParams) FlagIndex() int

type MessagesSendQuickReplyMessagesParams

type MessagesSendQuickReplyMessagesParams struct {
	Peer       InputPeer
	ShortcutID int32
	ID         []int32
	RandomID   []int64
}

func (*MessagesSendQuickReplyMessagesParams) CRC

type MessagesSendReactionParams

type MessagesSendReactionParams struct {
	Big         bool `tl:"flag:1,encoded_in_bitflags"`
	AddToRecent bool `tl:"flag:2,encoded_in_bitflags"`
	Peer        InputPeer
	MsgID       int32
	Reaction    []Reaction `tl:"flag:0"`
}

func (*MessagesSendReactionParams) CRC

func (*MessagesSendReactionParams) FlagIndex

func (*MessagesSendReactionParams) FlagIndex() int

type MessagesSendScheduledMessagesParams

type MessagesSendScheduledMessagesParams struct {
	Peer InputPeer
	ID   []int32
}

func (*MessagesSendScheduledMessagesParams) CRC

type MessagesSendScreenshotNotificationParams

type MessagesSendScreenshotNotificationParams struct {
	Peer     InputPeer
	ReplyTo  InputReplyTo
	RandomID int64
}

func (*MessagesSendScreenshotNotificationParams) CRC

type MessagesSendVoteParams

type MessagesSendVoteParams struct {
	Peer    InputPeer
	MsgID   int32
	Options [][]byte
}

func (*MessagesSendVoteParams) CRC

type MessagesSendWebViewDataParams

type MessagesSendWebViewDataParams struct {
	Bot        InputUser
	RandomID   int64
	ButtonText string
	Data       string
}

func (*MessagesSendWebViewDataParams) CRC

type MessagesSendWebViewResultMessageParams

type MessagesSendWebViewResultMessageParams struct {
	BotQueryID string
	Result     InputBotInlineResult
}

func (*MessagesSendWebViewResultMessageParams) CRC

type MessagesSentEncryptedFile

type MessagesSentEncryptedFile struct {
	Date int32
	File EncryptedFile
}

Message with a file enclosure sent to a protected chat

func (*MessagesSentEncryptedFile) CRC

func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage

func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage()

type MessagesSentEncryptedMessage

type MessagesSentEncryptedMessage interface {
	tl.Object
	ImplementsMessagesSentEncryptedMessage()
}

type MessagesSentEncryptedMessageObj

type MessagesSentEncryptedMessageObj struct {
	Date int32
}

Message without file attachments sent to an encrypted file.

func (*MessagesSentEncryptedMessageObj) CRC

func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage

func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage()

type MessagesSetBotCallbackAnswerParams

type MessagesSetBotCallbackAnswerParams struct {
	Alert     bool `tl:"flag:1,encoded_in_bitflags"`
	QueryID   int64
	Message   string `tl:"flag:0"`
	URL       string `tl:"flag:2"`
	CacheTime int32
}

func (*MessagesSetBotCallbackAnswerParams) CRC

func (*MessagesSetBotCallbackAnswerParams) FlagIndex

type MessagesSetBotPrecheckoutResultsParams

type MessagesSetBotPrecheckoutResultsParams struct {
	Success bool `tl:"flag:1,encoded_in_bitflags"`
	QueryID int64
	Error   string `tl:"flag:0"`
}

func (*MessagesSetBotPrecheckoutResultsParams) CRC

func (*MessagesSetBotPrecheckoutResultsParams) FlagIndex

type MessagesSetBotShippingResultsParams

type MessagesSetBotShippingResultsParams struct {
	QueryID         int64
	Error           string            `tl:"flag:0"`
	ShippingOptions []*ShippingOption `tl:"flag:1"`
}

func (*MessagesSetBotShippingResultsParams) CRC

func (*MessagesSetBotShippingResultsParams) FlagIndex

type MessagesSetChatAvailableReactionsParams

type MessagesSetChatAvailableReactionsParams struct {
	Peer               InputPeer
	AvailableReactions ChatReactions
	ReactionsLimit     int32 `tl:"flag:0"`
	PaidEnabled        bool  `tl:"flag:1"`
}

func (*MessagesSetChatAvailableReactionsParams) CRC

func (*MessagesSetChatAvailableReactionsParams) FlagIndex

type MessagesSetChatThemeParams

type MessagesSetChatThemeParams struct {
	Peer     InputPeer
	Emoticon string
}

func (*MessagesSetChatThemeParams) CRC

type MessagesSetChatWallPaperParams

type MessagesSetChatWallPaperParams struct {
	ForBoth   bool `tl:"flag:3,encoded_in_bitflags"`
	Revert    bool `tl:"flag:4,encoded_in_bitflags"`
	Peer      InputPeer
	Wallpaper InputWallPaper     `tl:"flag:0"`
	Settings  *WallPaperSettings `tl:"flag:2"`
	ID        int32              `tl:"flag:1"`
}

func (*MessagesSetChatWallPaperParams) CRC

func (*MessagesSetChatWallPaperParams) FlagIndex

func (*MessagesSetChatWallPaperParams) FlagIndex() int

type MessagesSetDefaultHistoryTtlParams

type MessagesSetDefaultHistoryTtlParams struct {
	Period int32
}

func (*MessagesSetDefaultHistoryTtlParams) CRC

type MessagesSetDefaultReactionParams

type MessagesSetDefaultReactionParams struct {
	Reaction Reaction
}

func (*MessagesSetDefaultReactionParams) CRC

type MessagesSetEncryptedTypingParams

type MessagesSetEncryptedTypingParams struct {
	Peer   *InputEncryptedChat
	Typing bool
}

func (*MessagesSetEncryptedTypingParams) CRC

type MessagesSetGameScoreParams

type MessagesSetGameScoreParams struct {
	EditMessage bool `tl:"flag:0,encoded_in_bitflags"`
	Force       bool `tl:"flag:1,encoded_in_bitflags"`
	Peer        InputPeer
	ID          int32
	UserID      InputUser
	Score       int32
}

func (*MessagesSetGameScoreParams) CRC

func (*MessagesSetGameScoreParams) FlagIndex

func (*MessagesSetGameScoreParams) FlagIndex() int

type MessagesSetHistoryTtlParams

type MessagesSetHistoryTtlParams struct {
	Peer   InputPeer
	Period int32
}

func (*MessagesSetHistoryTtlParams) CRC

type MessagesSetInlineBotResultsParams

type MessagesSetInlineBotResultsParams struct {
	Gallery       bool `tl:"flag:0,encoded_in_bitflags"`
	Private       bool `tl:"flag:1,encoded_in_bitflags"`
	QueryID       int64
	Results       []InputBotInlineResult
	CacheTime     int32
	NextOffset    string             `tl:"flag:2"`
	SwitchPm      *InlineBotSwitchPm `tl:"flag:3"`
	SwitchWebview *InlineBotWebView  `tl:"flag:4"`
}

func (*MessagesSetInlineBotResultsParams) CRC

func (*MessagesSetInlineBotResultsParams) FlagIndex

type MessagesSetInlineGameScoreParams

type MessagesSetInlineGameScoreParams struct {
	EditMessage bool `tl:"flag:0,encoded_in_bitflags"`
	Force       bool `tl:"flag:1,encoded_in_bitflags"`
	ID          InputBotInlineMessageID
	UserID      InputUser
	Score       int32
}

func (*MessagesSetInlineGameScoreParams) CRC

func (*MessagesSetInlineGameScoreParams) FlagIndex

type MessagesSetTypingParams

type MessagesSetTypingParams struct {
	Peer     InputPeer
	TopMsgID int32 `tl:"flag:0"`
	Action   SendMessageAction
}

func (*MessagesSetTypingParams) CRC

func (*MessagesSetTypingParams) FlagIndex

func (*MessagesSetTypingParams) FlagIndex() int

type MessagesSponsoredMessages

type MessagesSponsoredMessages interface {
	tl.Object
	ImplementsMessagesSponsoredMessages()
}

type MessagesSponsoredMessagesEmpty

type MessagesSponsoredMessagesEmpty struct{}

No sponsored messages are available.

func (*MessagesSponsoredMessagesEmpty) CRC

func (*MessagesSponsoredMessagesEmpty) ImplementsMessagesSponsoredMessages

func (*MessagesSponsoredMessagesEmpty) ImplementsMessagesSponsoredMessages()

type MessagesSponsoredMessagesObj

type MessagesSponsoredMessagesObj struct {
	PostsBetween int32 `tl:"flag:0"`
	Messages     []*SponsoredMessage
	Chats        []Chat
	Users        []User
}

A set of sponsored messages associated to a channel

func (*MessagesSponsoredMessagesObj) CRC

func (*MessagesSponsoredMessagesObj) FlagIndex

func (*MessagesSponsoredMessagesObj) FlagIndex() int

func (*MessagesSponsoredMessagesObj) ImplementsMessagesSponsoredMessages

func (*MessagesSponsoredMessagesObj) ImplementsMessagesSponsoredMessages()

type MessagesStartBotParams

type MessagesStartBotParams struct {
	Bot        InputUser
	Peer       InputPeer
	RandomID   int64
	StartParam string
}

func (*MessagesStartBotParams) CRC

type MessagesStartHistoryImportParams

type MessagesStartHistoryImportParams struct {
	Peer     InputPeer
	ImportID int64
}

func (*MessagesStartHistoryImportParams) CRC

type MessagesStickerSet

type MessagesStickerSet interface {
	tl.Object
	ImplementsMessagesStickerSet()
}

type MessagesStickerSetInstallResult

type MessagesStickerSetInstallResult interface {
	tl.Object
	ImplementsMessagesStickerSetInstallResult()
}

type MessagesStickerSetInstallResultArchive

type MessagesStickerSetInstallResultArchive struct {
	Sets []StickerSetCovered
}

The stickerset was installed, but since there are too many stickersets some were archived

func (*MessagesStickerSetInstallResultArchive) CRC

func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult

func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult()

type MessagesStickerSetInstallResultSuccess

type MessagesStickerSetInstallResultSuccess struct{}

The stickerset was installed successfully

func (*MessagesStickerSetInstallResultSuccess) CRC

func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult

func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult()

type MessagesStickerSetNotModified

type MessagesStickerSetNotModified struct{}

The stickerset hasn't changed

func (*MessagesStickerSetNotModified) CRC

func (*MessagesStickerSetNotModified) ImplementsMessagesStickerSet

func (*MessagesStickerSetNotModified) ImplementsMessagesStickerSet()

type MessagesStickerSetObj

type MessagesStickerSetObj struct {
	Set       *StickerSet
	Packs     []*StickerPack
	Keywords  []*StickerKeyword
	Documents []Document
}

Stickerset and stickers inside it

func (*MessagesStickerSetObj) CRC

func (*MessagesStickerSetObj) ImplementsMessagesStickerSet

func (*MessagesStickerSetObj) ImplementsMessagesStickerSet()

type MessagesStickers

type MessagesStickers interface {
	tl.Object
	ImplementsMessagesStickers()
}

type MessagesStickersNotModified

type MessagesStickersNotModified struct{}

No new stickers were found for the given query

func (*MessagesStickersNotModified) CRC

func (*MessagesStickersNotModified) ImplementsMessagesStickers

func (*MessagesStickersNotModified) ImplementsMessagesStickers()

type MessagesStickersObj

type MessagesStickersObj struct {
	Hash     int64
	Stickers []Document
}

Found stickers

func (*MessagesStickersObj) CRC

func (*MessagesStickersObj) CRC() uint32

func (*MessagesStickersObj) ImplementsMessagesStickers

func (*MessagesStickersObj) ImplementsMessagesStickers()

type MessagesToggleBotInAttachMenuParams

type MessagesToggleBotInAttachMenuParams struct {
	WriteAllowed bool `tl:"flag:0,encoded_in_bitflags"`
	Bot          InputUser
	Enabled      bool
}

func (*MessagesToggleBotInAttachMenuParams) CRC

func (*MessagesToggleBotInAttachMenuParams) FlagIndex

type MessagesToggleDialogFilterTagsParams

type MessagesToggleDialogFilterTagsParams struct {
	Enabled bool
}

func (*MessagesToggleDialogFilterTagsParams) CRC

type MessagesToggleDialogPinParams

type MessagesToggleDialogPinParams struct {
	Pinned bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   InputDialogPeer
}

func (*MessagesToggleDialogPinParams) CRC

func (*MessagesToggleDialogPinParams) FlagIndex

func (*MessagesToggleDialogPinParams) FlagIndex() int

type MessagesToggleNoForwardsParams

type MessagesToggleNoForwardsParams struct {
	Peer    InputPeer
	Enabled bool
}

func (*MessagesToggleNoForwardsParams) CRC

type MessagesTogglePaidReactionPrivacyParams

type MessagesTogglePaidReactionPrivacyParams struct {
	Peer    InputPeer
	MsgID   int32
	Private bool
}

func (*MessagesTogglePaidReactionPrivacyParams) CRC

type MessagesTogglePeerTranslationsParams

type MessagesTogglePeerTranslationsParams struct {
	Disabled bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     InputPeer
}

func (*MessagesTogglePeerTranslationsParams) CRC

func (*MessagesTogglePeerTranslationsParams) FlagIndex

type MessagesToggleSavedDialogPinParams

type MessagesToggleSavedDialogPinParams struct {
	Pinned bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   InputDialogPeer
}

func (*MessagesToggleSavedDialogPinParams) CRC

func (*MessagesToggleSavedDialogPinParams) FlagIndex

type MessagesToggleStickerSetsParams

type MessagesToggleStickerSetsParams struct {
	Uninstall   bool `tl:"flag:0,encoded_in_bitflags"`
	Archive     bool `tl:"flag:1,encoded_in_bitflags"`
	Unarchive   bool `tl:"flag:2,encoded_in_bitflags"`
	Stickersets []InputStickerSet
}

func (*MessagesToggleStickerSetsParams) CRC

func (*MessagesToggleStickerSetsParams) FlagIndex

func (*MessagesToggleStickerSetsParams) FlagIndex() int

type MessagesTranscribeAudioParams

type MessagesTranscribeAudioParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*MessagesTranscribeAudioParams) CRC

type MessagesTranscribedAudio

type MessagesTranscribedAudio struct {
	Pending               bool `tl:"flag:0,encoded_in_bitflags"`
	TranscriptionID       int64
	Text                  string
	TrialRemainsNum       int32 `tl:"flag:1"`
	TrialRemainsUntilDate int32 `tl:"flag:1"`
}

[Transcribed text from a voice message »](https://core.telegram.org/api/transcribe)

func (*MessagesTranscribedAudio) CRC

func (*MessagesTranscribedAudio) FlagIndex

func (*MessagesTranscribedAudio) FlagIndex() int

type MessagesTranslateResult

type MessagesTranslateResult struct {
	Result []*TextWithEntities
}

Translated text with [entities](https://core.telegram.org/api/entities)

func (*MessagesTranslateResult) CRC

type MessagesTranslateTextParams

type MessagesTranslateTextParams struct {
	Peer   InputPeer           `tl:"flag:0"`
	ID     []int32             `tl:"flag:0"`
	Text   []*TextWithEntities `tl:"flag:1"`
	ToLang string
}

func (*MessagesTranslateTextParams) CRC

func (*MessagesTranslateTextParams) FlagIndex

func (*MessagesTranslateTextParams) FlagIndex() int

type MessagesUninstallStickerSetParams

type MessagesUninstallStickerSetParams struct {
	Stickerset InputStickerSet
}

func (*MessagesUninstallStickerSetParams) CRC

type MessagesUnpinAllMessagesParams

type MessagesUnpinAllMessagesParams struct {
	Peer     InputPeer
	TopMsgID int32 `tl:"flag:0"`
}

func (*MessagesUnpinAllMessagesParams) CRC

func (*MessagesUnpinAllMessagesParams) FlagIndex

func (*MessagesUnpinAllMessagesParams) FlagIndex() int

type MessagesUpdateDialogFilterParams

type MessagesUpdateDialogFilterParams struct {
	ID     int32
	Filter DialogFilter `tl:"flag:0"`
}

func (*MessagesUpdateDialogFilterParams) CRC

func (*MessagesUpdateDialogFilterParams) FlagIndex

type MessagesUpdateDialogFiltersOrderParams

type MessagesUpdateDialogFiltersOrderParams struct {
	Order []int32
}

func (*MessagesUpdateDialogFiltersOrderParams) CRC

type MessagesUpdatePinnedMessageParams

type MessagesUpdatePinnedMessageParams struct {
	Silent    bool `tl:"flag:0,encoded_in_bitflags"`
	Unpin     bool `tl:"flag:1,encoded_in_bitflags"`
	PmOneside bool `tl:"flag:2,encoded_in_bitflags"`
	Peer      InputPeer
	ID        int32
}

func (*MessagesUpdatePinnedMessageParams) CRC

func (*MessagesUpdatePinnedMessageParams) FlagIndex

type MessagesUpdateSavedReactionTagParams

type MessagesUpdateSavedReactionTagParams struct {
	Reaction Reaction
	Title    string `tl:"flag:0"`
}

func (*MessagesUpdateSavedReactionTagParams) CRC

func (*MessagesUpdateSavedReactionTagParams) FlagIndex

type MessagesUploadEncryptedFileParams

type MessagesUploadEncryptedFileParams struct {
	Peer *InputEncryptedChat
	File InputEncryptedFile
}

func (*MessagesUploadEncryptedFileParams) CRC

type MessagesUploadImportedMediaParams

type MessagesUploadImportedMediaParams struct {
	Peer     InputPeer
	ImportID int64
	FileName string
	Media    InputMedia
}

func (*MessagesUploadImportedMediaParams) CRC

type MessagesUploadMediaParams

type MessagesUploadMediaParams struct {
	BusinessConnectionID string `tl:"flag:0"`
	Peer                 InputPeer
	Media                InputMedia
}

func (*MessagesUploadMediaParams) CRC

func (*MessagesUploadMediaParams) FlagIndex

func (*MessagesUploadMediaParams) FlagIndex() int

type MessagesVotesList

type MessagesVotesList struct {
	Count      int32
	Votes      []MessagePeerVote
	Chats      []Chat
	Users      []User
	NextOffset string `tl:"flag:0"`
}

How users voted in a poll

func (*MessagesVotesList) CRC

func (*MessagesVotesList) CRC() uint32

func (*MessagesVotesList) FlagIndex

func (*MessagesVotesList) FlagIndex() int

type MessagesWebPage

type MessagesWebPage struct {
	Webpage WebPage
	Chats   []Chat
	Users   []User
}

Represents an Instant View webpage.

func (*MessagesWebPage) CRC

func (*MessagesWebPage) CRC() uint32

type MissingInvitee

type MissingInvitee struct {
	PremiumWouldAllowInvite bool `tl:"flag:0,encoded_in_bitflags"`
	PremiumRequiredForPm    bool `tl:"flag:1,encoded_in_bitflags"`
	UserID                  int64
}

func (*MissingInvitee) CRC

func (*MissingInvitee) CRC() uint32

func (*MissingInvitee) FlagIndex

func (*MissingInvitee) FlagIndex() int

type MyBoost

type MyBoost struct {
	Slot              int32
	Peer              Peer `tl:"flag:0"`
	Date              int32
	Expires           int32
	CooldownUntilDate int32 `tl:"flag:1"`
}

Contains information about a single [boost slot »](https://core.telegram.org/api/boost).

func (*MyBoost) CRC

func (*MyBoost) CRC() uint32

func (*MyBoost) FlagIndex

func (*MyBoost) FlagIndex() int

type NearestDc

type NearestDc struct {
	Country   string
	ThisDc    int32
	NearestDc int32
}

Nearest data center, according to geo-ip.

func (*NearestDc) CRC

func (*NearestDc) CRC() uint32

type NewMessage

type NewMessage struct {
	Action         MessageAction
	Channel        *Channel
	Chat           *ChatObj
	Client         *Client
	File           *CustomFile
	ID             int32
	Message        *MessageObj
	OriginalUpdate Message
	Peer           InputPeer
	Sender         *UserObj
	SenderChat     *Channel
}

func (*NewMessage) Animation

func (m *NewMessage) Animation() *DocumentObj

func (*NewMessage) Args

func (m *NewMessage) Args() string

func (*NewMessage) Ask

func (m *NewMessage) Ask(Text interface{}, Opts ...*SendOptions) (*NewMessage, error)

Ask starts new conversation with the user

func (*NewMessage) Audio

func (m *NewMessage) Audio() *DocumentObj

func (*NewMessage) ChatID

func (m *NewMessage) ChatID() int64

func (*NewMessage) ChatType

func (m *NewMessage) ChatType() string

func (*NewMessage) Click

func (m *NewMessage) Click(options ...any) (*MessagesBotCallbackAnswer, error)

message.Click() is a function that clicks a button in a message.

It takes one optional argument, which can be either:

  • the text of the button to click
  • the data of the button to click
  • the coordinates of the button to click ([x, y])

If no argument is given, the first button will be clicked.

func (*NewMessage) Contact

func (m *NewMessage) Contact() *MessageMediaContact

func (*NewMessage) Conv

func (m *NewMessage) Conv(timeout ...int32) (*Conversation, error)

Conv starts a new conversation with the user

func (*NewMessage) Delete

func (m *NewMessage) Delete() (*MessagesAffectedMessages, error)

Delete deletes the message

func (*NewMessage) Document

func (m *NewMessage) Document() *DocumentObj

func (*NewMessage) Download

func (m *NewMessage) Download(opts ...*DownloadOptions) (string, error)

Download Media to Disk, if path is empty, it will be downloaded to the current directory, returns the path to the downloaded file

func (*NewMessage) E

func (m *NewMessage) E(obj any, err error) error

returns the error only, of a method

func (*NewMessage) Edit

func (m *NewMessage) Edit(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

func (*NewMessage) Fact

func (m *NewMessage) Fact() ([]*FactCheck, error)

Fact checks the message for facts

func (*NewMessage) ForwardTo

func (m *NewMessage) ForwardTo(PeerID interface{}, Opts ...*ForwardOptions) (*NewMessage, error)

Forward forwards the message to a chat

func (*NewMessage) Game

func (m *NewMessage) Game() *MessageMediaGame

func (*NewMessage) Geo

func (m *NewMessage) Geo() *GeoPointObj

func (*NewMessage) GetChat

func (m *NewMessage) GetChat() (*ChatObj, error)

func (*NewMessage) GetCommand

func (m *NewMessage) GetCommand() string

GetCommand returns the command from the message. If the message is not a command, it returns an empty string.

func (*NewMessage) GetMediaGroup

func (m *NewMessage) GetMediaGroup() ([]NewMessage, error)

GetMediaGroup returns the media group of the message

func (*NewMessage) GetPeer

func (m *NewMessage) GetPeer() (int64, int64)

GetPeer returns the peer of the message

func (*NewMessage) GetReplyMessage

func (m *NewMessage) GetReplyMessage() (*NewMessage, error)

func (*NewMessage) GetSender

func (m *NewMessage) GetSender() (*UserObj, error)

func (*NewMessage) GetSenderChat

func (m *NewMessage) GetSenderChat() *Channel

func (*NewMessage) Invoice

func (m *NewMessage) Invoice() *MessageMediaInvoice

func (*NewMessage) IsChannel

func (m *NewMessage) IsChannel() bool

func (*NewMessage) IsCommand

func (m *NewMessage) IsCommand() bool

IsCommand returns true if the message is a command

func (*NewMessage) IsForward

func (m *NewMessage) IsForward() bool

func (*NewMessage) IsGroup

func (m *NewMessage) IsGroup() bool

func (*NewMessage) IsMedia

func (m *NewMessage) IsMedia() bool

IsMedia returns true if message contains media

func (*NewMessage) IsPrivate

func (m *NewMessage) IsPrivate() bool

func (*NewMessage) IsReply

func (m *NewMessage) IsReply() bool

func (*NewMessage) MarkRead

func (m *NewMessage) MarkRead() (err error)

func (*NewMessage) Marshal

func (m *NewMessage) Marshal(nointent ...bool) string

func (*NewMessage) Media

func (m *NewMessage) Media() MessageMedia

Media is a media object in a message

func (*NewMessage) MediaType

func (m *NewMessage) MediaType() string

MediaType returns the type of the media in the message.

func (*NewMessage) MessageText

func (m *NewMessage) MessageText() string

func (*NewMessage) Photo

func (m *NewMessage) Photo() *PhotoObj

func (*NewMessage) Pin

func (a *NewMessage) Pin(opts ...*PinOptions) (err error)

func (*NewMessage) Poll

func (m *NewMessage) Poll() *MessageMediaPoll

func (*NewMessage) RawText

func (m *NewMessage) RawText() string

func (*NewMessage) React

func (m *NewMessage) React(Reactions ...any) error

React to a message

func (*NewMessage) Reply

func (m *NewMessage) Reply(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

Client.SendMessage ReplyID set to messageID

func (*NewMessage) ReplyAlbum

func (m *NewMessage) ReplyAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)

func (*NewMessage) ReplyMarkup

func (m *NewMessage) ReplyMarkup() *ReplyMarkup

func (*NewMessage) ReplyMedia

func (m *NewMessage) ReplyMedia(Media interface{}, Opts ...MediaOptions) (*NewMessage, error)

func (*NewMessage) ReplySenderID

func (m *NewMessage) ReplySenderID() int64

func (*NewMessage) ReplyToMsgID

func (m *NewMessage) ReplyToMsgID() int32

func (*NewMessage) ReplyWithoutError

func (m *NewMessage) ReplyWithoutError(Text interface{}, Opts ...SendOptions) *NewMessage

ReplyWithoutError calls message.Reply and wraps the error to error channel of the client

func (*NewMessage) Respond

func (m *NewMessage) Respond(Text interface{}, Opts ...SendOptions) (*NewMessage, error)

func (*NewMessage) RespondAlbum

func (m *NewMessage) RespondAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)

func (*NewMessage) RespondMedia

func (m *NewMessage) RespondMedia(Media interface{}, Opts ...MediaOptions) (*NewMessage, error)

func (*NewMessage) SendAction

func (m *NewMessage) SendAction(Action interface{}) (*ActionResult, error)

func (*NewMessage) SendDice

func (m *NewMessage) SendDice(Emoticon string) (*NewMessage, error)

func (*NewMessage) SenderID

func (m *NewMessage) SenderID() int64

func (*NewMessage) Sticker

func (m *NewMessage) Sticker() *DocumentObj

func (*NewMessage) Text

func (m *NewMessage) Text() string

func (*NewMessage) Unmarshal

func (m *NewMessage) Unmarshal(data []byte) (*NewMessage, error)

func (*NewMessage) Unpin

func (a *NewMessage) Unpin() (err error)

func (*NewMessage) Venue

func (m *NewMessage) Venue() *MessageMediaVenue

func (*NewMessage) Video

func (m *NewMessage) Video() *DocumentObj

func (*NewMessage) Voice

func (m *NewMessage) Voice() *DocumentObj

func (*NewMessage) WebPage

func (m *NewMessage) WebPage() *WebPageObj

type NotificationSound

type NotificationSound interface {
	tl.Object
	ImplementsNotificationSound()
}

type NotificationSoundDefault

type NotificationSoundDefault struct{}

Indicates the default notification sound should be used

func (*NotificationSoundDefault) CRC

func (*NotificationSoundDefault) ImplementsNotificationSound

func (*NotificationSoundDefault) ImplementsNotificationSound()

type NotificationSoundLocal

type NotificationSoundLocal struct {
	Title string
	Data  string
}

Indicates a specific local notification sound should be used

func (*NotificationSoundLocal) CRC

func (*NotificationSoundLocal) ImplementsNotificationSound

func (*NotificationSoundLocal) ImplementsNotificationSound()

type NotificationSoundNone

type NotificationSoundNone struct{}

No notification sound should be used

func (*NotificationSoundNone) CRC

func (*NotificationSoundNone) ImplementsNotificationSound

func (*NotificationSoundNone) ImplementsNotificationSound()

type NotificationSoundRingtone

type NotificationSoundRingtone struct {
	ID int64
}

A specific previously uploaded notification sound should be used

func (*NotificationSoundRingtone) CRC

func (*NotificationSoundRingtone) ImplementsNotificationSound

func (*NotificationSoundRingtone) ImplementsNotificationSound()

type NotifyBroadcasts

type NotifyBroadcasts struct{}

Channel notification settings

func (*NotifyBroadcasts) CRC

func (*NotifyBroadcasts) CRC() uint32

func (*NotifyBroadcasts) ImplementsNotifyPeer

func (*NotifyBroadcasts) ImplementsNotifyPeer()

type NotifyChats

type NotifyChats struct{}

Notifications generated by all groups.

func (*NotifyChats) CRC

func (*NotifyChats) CRC() uint32

func (*NotifyChats) ImplementsNotifyPeer

func (*NotifyChats) ImplementsNotifyPeer()

type NotifyForumTopic

type NotifyForumTopic struct {
	Peer     Peer
	TopMsgID int32
}

Notifications generated by a [topic](https://core.telegram.org/api/forum#forum-topics) in a [forum](https://core.telegram.org/api/forum).

func (*NotifyForumTopic) CRC

func (*NotifyForumTopic) CRC() uint32

func (*NotifyForumTopic) ImplementsNotifyPeer

func (*NotifyForumTopic) ImplementsNotifyPeer()

type NotifyPeer

type NotifyPeer interface {
	tl.Object
	ImplementsNotifyPeer()
}

type NotifyPeerObj

type NotifyPeerObj struct {
	Peer Peer
}

Notifications generated by a certain user or group.

func (*NotifyPeerObj) CRC

func (*NotifyPeerObj) CRC() uint32

func (*NotifyPeerObj) ImplementsNotifyPeer

func (*NotifyPeerObj) ImplementsNotifyPeer()

type NotifyUsers

type NotifyUsers struct{}

Notifications generated by all users.

func (*NotifyUsers) CRC

func (*NotifyUsers) CRC() uint32

func (*NotifyUsers) ImplementsNotifyPeer

func (*NotifyUsers) ImplementsNotifyPeer()

type Null

type Null uint32
const (
	NullCrc Null = 0x56730bcc
)

func (Null) CRC

func (e Null) CRC() uint32

func (Null) String

func (e Null) String() string

type Number

type Number interface {
	int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64
}

type OutboxReadDate

type OutboxReadDate struct {
	Date int32
}

func (*OutboxReadDate) CRC

func (*OutboxReadDate) CRC() uint32

type Page

type Page struct {
	Part      bool `tl:"flag:0,encoded_in_bitflags"`
	Rtl       bool `tl:"flag:1,encoded_in_bitflags"`
	V2        bool `tl:"flag:2,encoded_in_bitflags"`
	URL       string
	Blocks    []PageBlock
	Photos    []Photo
	Documents []Document
	Views     int32 `tl:"flag:3"`
}

[Instant view](https://core.telegram.orghttps://instantview.telegram.org) page

func (*Page) CRC

func (*Page) CRC() uint32

func (*Page) FlagIndex

func (*Page) FlagIndex() int

type PageBlock

type PageBlock interface {
	tl.Object
	ImplementsPageBlock()
}

type PageBlockAnchor

type PageBlockAnchor struct {
	Name string
}

Link to section within the page itself (like `&lt;a href="#target"&gt;anchor&lt;/a&gt;`)

func (*PageBlockAnchor) CRC

func (*PageBlockAnchor) CRC() uint32

func (*PageBlockAnchor) ImplementsPageBlock

func (*PageBlockAnchor) ImplementsPageBlock()

type PageBlockAudio

type PageBlockAudio struct {
	AudioID int64
	Caption *PageCaption
}

Audio

func (*PageBlockAudio) CRC

func (*PageBlockAudio) CRC() uint32

func (*PageBlockAudio) ImplementsPageBlock

func (*PageBlockAudio) ImplementsPageBlock()

type PageBlockAuthorDate

type PageBlockAuthorDate struct {
	Author        RichText
	PublishedDate int32
}

Author and date of creation of article

func (*PageBlockAuthorDate) CRC

func (*PageBlockAuthorDate) CRC() uint32

func (*PageBlockAuthorDate) ImplementsPageBlock

func (*PageBlockAuthorDate) ImplementsPageBlock()

type PageBlockBlockquote

type PageBlockBlockquote struct {
	Text    RichText
	Caption RichText
}

Quote (equivalent to the HTML `&lt;blockquote&gt;`)

func (*PageBlockBlockquote) CRC

func (*PageBlockBlockquote) CRC() uint32

func (*PageBlockBlockquote) ImplementsPageBlock

func (*PageBlockBlockquote) ImplementsPageBlock()

type PageBlockChannel

type PageBlockChannel struct {
	Channel Chat
}

Reference to a telegram channel

func (*PageBlockChannel) CRC

func (*PageBlockChannel) CRC() uint32

func (*PageBlockChannel) ImplementsPageBlock

func (*PageBlockChannel) ImplementsPageBlock()

type PageBlockCollage

type PageBlockCollage struct {
	Items   []PageBlock
	Caption *PageCaption
}

Collage of media

func (*PageBlockCollage) CRC

func (*PageBlockCollage) CRC() uint32

func (*PageBlockCollage) ImplementsPageBlock

func (*PageBlockCollage) ImplementsPageBlock()

type PageBlockCover

type PageBlockCover struct {
	Cover PageBlock
}

A page cover

func (*PageBlockCover) CRC

func (*PageBlockCover) CRC() uint32

func (*PageBlockCover) ImplementsPageBlock

func (*PageBlockCover) ImplementsPageBlock()

type PageBlockDetails

type PageBlockDetails struct {
	Open   bool `tl:"flag:0,encoded_in_bitflags"`
	Blocks []PageBlock
	Title  RichText
}

A collapsible details block

func (*PageBlockDetails) CRC

func (*PageBlockDetails) CRC() uint32

func (*PageBlockDetails) FlagIndex

func (*PageBlockDetails) FlagIndex() int

func (*PageBlockDetails) ImplementsPageBlock

func (*PageBlockDetails) ImplementsPageBlock()

type PageBlockDivider

type PageBlockDivider struct{}

An empty block separating a page

func (*PageBlockDivider) CRC

func (*PageBlockDivider) CRC() uint32

func (*PageBlockDivider) ImplementsPageBlock

func (*PageBlockDivider) ImplementsPageBlock()

type PageBlockEmbed

type PageBlockEmbed struct {
	FullWidth      bool   `tl:"flag:0,encoded_in_bitflags"`
	AllowScrolling bool   `tl:"flag:3,encoded_in_bitflags"`
	URL            string `tl:"flag:1"`
	Html           string `tl:"flag:2"`
	PosterPhotoID  int64  `tl:"flag:4"`
	W              int32  `tl:"flag:5"`
	H              int32  `tl:"flag:5"`
	Caption        *PageCaption
}

An embedded webpage

func (*PageBlockEmbed) CRC

func (*PageBlockEmbed) CRC() uint32

func (*PageBlockEmbed) FlagIndex

func (*PageBlockEmbed) FlagIndex() int

func (*PageBlockEmbed) ImplementsPageBlock

func (*PageBlockEmbed) ImplementsPageBlock()

type PageBlockEmbedPost

type PageBlockEmbedPost struct {
	URL           string
	WebpageID     int64
	AuthorPhotoID int64
	Author        string
	Date          int32
	Blocks        []PageBlock
	Caption       *PageCaption
}

An embedded post

func (*PageBlockEmbedPost) CRC

func (*PageBlockEmbedPost) CRC() uint32

func (*PageBlockEmbedPost) ImplementsPageBlock

func (*PageBlockEmbedPost) ImplementsPageBlock()

type PageBlockFooter

type PageBlockFooter struct {
	Text RichText
}

Page footer

func (*PageBlockFooter) CRC

func (*PageBlockFooter) CRC() uint32

func (*PageBlockFooter) ImplementsPageBlock

func (*PageBlockFooter) ImplementsPageBlock()

type PageBlockHeader

type PageBlockHeader struct {
	Text RichText
}

Page header

func (*PageBlockHeader) CRC

func (*PageBlockHeader) CRC() uint32

func (*PageBlockHeader) ImplementsPageBlock

func (*PageBlockHeader) ImplementsPageBlock()

type PageBlockKicker

type PageBlockKicker struct {
	Text RichText
}

Kicker

func (*PageBlockKicker) CRC

func (*PageBlockKicker) CRC() uint32

func (*PageBlockKicker) ImplementsPageBlock

func (*PageBlockKicker) ImplementsPageBlock()

type PageBlockList

type PageBlockList struct {
	Items []PageListItem
}

Unordered list of IV blocks

func (*PageBlockList) CRC

func (*PageBlockList) CRC() uint32

func (*PageBlockList) ImplementsPageBlock

func (*PageBlockList) ImplementsPageBlock()

type PageBlockMap

type PageBlockMap struct {
	Geo     GeoPoint
	Zoom    int32
	W       int32
	H       int32
	Caption *PageCaption
}

A map

func (*PageBlockMap) CRC

func (*PageBlockMap) CRC() uint32

func (*PageBlockMap) ImplementsPageBlock

func (*PageBlockMap) ImplementsPageBlock()

type PageBlockOrderedList

type PageBlockOrderedList struct {
	Items []PageListOrderedItem
}

Ordered list of IV blocks

func (*PageBlockOrderedList) CRC

func (*PageBlockOrderedList) ImplementsPageBlock

func (*PageBlockOrderedList) ImplementsPageBlock()

type PageBlockParagraph

type PageBlockParagraph struct {
	Text RichText
}

A paragraph

func (*PageBlockParagraph) CRC

func (*PageBlockParagraph) CRC() uint32

func (*PageBlockParagraph) ImplementsPageBlock

func (*PageBlockParagraph) ImplementsPageBlock()

type PageBlockPhoto

type PageBlockPhoto struct {
	PhotoID   int64
	Caption   *PageCaption
	URL       string `tl:"flag:0"`
	WebpageID int64  `tl:"flag:0"`
}

A photo

func (*PageBlockPhoto) CRC

func (*PageBlockPhoto) CRC() uint32

func (*PageBlockPhoto) FlagIndex

func (*PageBlockPhoto) FlagIndex() int

func (*PageBlockPhoto) ImplementsPageBlock

func (*PageBlockPhoto) ImplementsPageBlock()

type PageBlockPreformatted

type PageBlockPreformatted struct {
	Text     RichText
	Language string
}

Preformatted (`&lt;pre&gt;` text)

func (*PageBlockPreformatted) CRC

func (*PageBlockPreformatted) ImplementsPageBlock

func (*PageBlockPreformatted) ImplementsPageBlock()

type PageBlockPullquote

type PageBlockPullquote struct {
	Text    RichText
	Caption RichText
}

Pullquote

func (*PageBlockPullquote) CRC

func (*PageBlockPullquote) CRC() uint32

func (*PageBlockPullquote) ImplementsPageBlock

func (*PageBlockPullquote) ImplementsPageBlock()

type PageBlockRelatedArticles

type PageBlockRelatedArticles struct {
	Title    RichText
	Articles []*PageRelatedArticle
}

Related articles

func (*PageBlockRelatedArticles) CRC

func (*PageBlockRelatedArticles) ImplementsPageBlock

func (*PageBlockRelatedArticles) ImplementsPageBlock()

type PageBlockSlideshow

type PageBlockSlideshow struct {
	Items   []PageBlock
	Caption *PageCaption
}

Slideshow

func (*PageBlockSlideshow) CRC

func (*PageBlockSlideshow) CRC() uint32

func (*PageBlockSlideshow) ImplementsPageBlock

func (*PageBlockSlideshow) ImplementsPageBlock()

type PageBlockSubheader

type PageBlockSubheader struct {
	Text RichText
}

Subheader

func (*PageBlockSubheader) CRC

func (*PageBlockSubheader) CRC() uint32

func (*PageBlockSubheader) ImplementsPageBlock

func (*PageBlockSubheader) ImplementsPageBlock()

type PageBlockSubtitle

type PageBlockSubtitle struct {
	Text RichText
}

Subtitle

func (*PageBlockSubtitle) CRC

func (*PageBlockSubtitle) CRC() uint32

func (*PageBlockSubtitle) ImplementsPageBlock

func (*PageBlockSubtitle) ImplementsPageBlock()

type PageBlockTable

type PageBlockTable struct {
	Bordered bool `tl:"flag:0,encoded_in_bitflags"`
	Striped  bool `tl:"flag:1,encoded_in_bitflags"`
	Title    RichText
	Rows     []*PageTableRow
}

Table

func (*PageBlockTable) CRC

func (*PageBlockTable) CRC() uint32

func (*PageBlockTable) FlagIndex

func (*PageBlockTable) FlagIndex() int

func (*PageBlockTable) ImplementsPageBlock

func (*PageBlockTable) ImplementsPageBlock()

type PageBlockTitle

type PageBlockTitle struct {
	Text RichText
}

Title

func (*PageBlockTitle) CRC

func (*PageBlockTitle) CRC() uint32

func (*PageBlockTitle) ImplementsPageBlock

func (*PageBlockTitle) ImplementsPageBlock()

type PageBlockUnsupported

type PageBlockUnsupported struct{}

Unsupported IV element

func (*PageBlockUnsupported) CRC

func (*PageBlockUnsupported) ImplementsPageBlock

func (*PageBlockUnsupported) ImplementsPageBlock()

type PageBlockVideo

type PageBlockVideo struct {
	Autoplay bool `tl:"flag:0,encoded_in_bitflags"`
	Loop     bool `tl:"flag:1,encoded_in_bitflags"`
	VideoID  int64
	Caption  *PageCaption
}

Video

func (*PageBlockVideo) CRC

func (*PageBlockVideo) CRC() uint32

func (*PageBlockVideo) FlagIndex

func (*PageBlockVideo) FlagIndex() int

func (*PageBlockVideo) ImplementsPageBlock

func (*PageBlockVideo) ImplementsPageBlock()

type PageCaption

type PageCaption struct {
	Text   RichText
	Credit RichText
}

Page caption

func (*PageCaption) CRC

func (*PageCaption) CRC() uint32

type PageListItem

type PageListItem interface {
	tl.Object
	ImplementsPageListItem()
}

type PageListItemBlocks

type PageListItemBlocks struct {
	Blocks []PageBlock
}

List item

func (*PageListItemBlocks) CRC

func (*PageListItemBlocks) CRC() uint32

func (*PageListItemBlocks) ImplementsPageListItem

func (*PageListItemBlocks) ImplementsPageListItem()

type PageListItemText

type PageListItemText struct {
	Text RichText
}

List item

func (*PageListItemText) CRC

func (*PageListItemText) CRC() uint32

func (*PageListItemText) ImplementsPageListItem

func (*PageListItemText) ImplementsPageListItem()

type PageListOrderedItem

type PageListOrderedItem interface {
	tl.Object
	ImplementsPageListOrderedItem()
}

type PageListOrderedItemBlocks

type PageListOrderedItemBlocks struct {
	Num    string
	Blocks []PageBlock
}

Ordered list of [IV](https://core.telegram.orghttps://instantview.telegram.org) blocks

func (*PageListOrderedItemBlocks) CRC

func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem

func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem()

type PageListOrderedItemText

type PageListOrderedItemText struct {
	Num  string
	Text RichText
}

Ordered list of text items

func (*PageListOrderedItemText) CRC

func (*PageListOrderedItemText) ImplementsPageListOrderedItem

func (*PageListOrderedItemText) ImplementsPageListOrderedItem()

type PageRelatedArticle

type PageRelatedArticle struct {
	URL           string
	WebpageID     int64
	Title         string `tl:"flag:0"`
	Description   string `tl:"flag:1"`
	PhotoID       int64  `tl:"flag:2"`
	Author        string `tl:"flag:3"`
	PublishedDate int32  `tl:"flag:4"`
}

Related article

func (*PageRelatedArticle) CRC

func (*PageRelatedArticle) CRC() uint32

func (*PageRelatedArticle) FlagIndex

func (*PageRelatedArticle) FlagIndex() int

type PageTableCell

type PageTableCell struct {
	Header       bool     `tl:"flag:0,encoded_in_bitflags"`
	AlignCenter  bool     `tl:"flag:3,encoded_in_bitflags"`
	AlignRight   bool     `tl:"flag:4,encoded_in_bitflags"`
	ValignMiddle bool     `tl:"flag:5,encoded_in_bitflags"`
	ValignBottom bool     `tl:"flag:6,encoded_in_bitflags"`
	Text         RichText `tl:"flag:7"`
	Colspan      int32    `tl:"flag:1"`
	Rowspan      int32    `tl:"flag:2"`
}

Table cell

func (*PageTableCell) CRC

func (*PageTableCell) CRC() uint32

func (*PageTableCell) FlagIndex

func (*PageTableCell) FlagIndex() int

type PageTableRow

type PageTableRow struct {
	Cells []*PageTableCell
}

Table row

func (*PageTableRow) CRC

func (*PageTableRow) CRC() uint32

type Participant

type Participant struct {
	User        *UserObj           `json:"user,omitempty"`
	Participant ChannelParticipant `json:"participant,omitempty"`
	Status      string             `json:"status,omitempty"`
	Rights      *ChatAdminRights   `json:"rights,omitempty"`
	Rank        string             `json:"rank,omitempty"`
}

type ParticipantHandler

type ParticipantHandler func(m *ParticipantUpdate) error

type ParticipantOptions

type ParticipantOptions struct {
	Query  string                    `json:"query,omitempty"`
	Filter ChannelParticipantsFilter `json:"filter,omitempty"`
	Offset int32                     `json:"offset,omitempty"`
	Limit  int32                     `json:"limit,omitempty"`
}

type ParticipantUpdate

type ParticipantUpdate struct {
	Client         *Client
	OriginalUpdate *UpdateChannelParticipant
	Channel        *Channel
	User           *UserObj
	Actor          *UserObj
	Old            ChannelParticipant
	New            ChannelParticipant
	Invite         ExportedChatInvite
	Date           int32
}

func (*ParticipantUpdate) ActorID

func (pu *ParticipantUpdate) ActorID() int64

func (*ParticipantUpdate) Ban

func (pu *ParticipantUpdate) Ban() (bool, error)

func (*ParticipantUpdate) ChannelID

func (pu *ParticipantUpdate) ChannelID() int64

func (*ParticipantUpdate) Demote

func (pu *ParticipantUpdate) Demote() (bool, error)

func (*ParticipantUpdate) IsAdded

func (pu *ParticipantUpdate) IsAdded() bool

func (*ParticipantUpdate) IsBanned

func (pu *ParticipantUpdate) IsBanned() bool

func (*ParticipantUpdate) IsDemoted

func (pu *ParticipantUpdate) IsDemoted() bool

func (*ParticipantUpdate) IsJoined

func (pu *ParticipantUpdate) IsJoined() bool

func (*ParticipantUpdate) IsKicked

func (pu *ParticipantUpdate) IsKicked() bool

func (*ParticipantUpdate) IsLeft

func (pu *ParticipantUpdate) IsLeft() bool

func (*ParticipantUpdate) IsPromoted

func (pu *ParticipantUpdate) IsPromoted() bool

func (*ParticipantUpdate) Kick

func (pu *ParticipantUpdate) Kick() (bool, error)

func (*ParticipantUpdate) Marshal

func (pu *ParticipantUpdate) Marshal(nointent ...bool) string

func (*ParticipantUpdate) Promote

func (pu *ParticipantUpdate) Promote() (bool, error)

func (*ParticipantUpdate) Unban

func (pu *ParticipantUpdate) Unban() (bool, error)

func (*ParticipantUpdate) UserID

func (pu *ParticipantUpdate) UserID() int64

type PasswordKdfAlgo

type PasswordKdfAlgo interface {
	tl.Object
	ImplementsPasswordKdfAlgo()
}

type PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow

type PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow struct {
	Salt1 []byte
	Salt2 []byte
	G     int32
	P     []byte
}

This key derivation algorithm defines that [SRP 2FA login](https://core.telegram.org/api/srp) must be used

func (*PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow) CRC

func (*PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow) ImplementsPasswordKdfAlgo

type PasswordKdfAlgoUnknown

type PasswordKdfAlgoUnknown struct{}

Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)

func (*PasswordKdfAlgoUnknown) CRC

func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo

func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo()

type PasswordOptions

type PasswordOptions struct {
	Hint              string        `json:"hint,omitempty"`
	Email             string        `json:"email,omitempty"`
	EmailCodeCallback func() string `json:"email_code_callback,omitempty"`
}

type PaymentCharge

type PaymentCharge struct {
	ID               string
	ProviderChargeID string
}

Payment identifier

func (*PaymentCharge) CRC

func (*PaymentCharge) CRC() uint32

type PaymentFormMethod

type PaymentFormMethod struct {
	URL   string
	Title string
}

Represents an additional payment method

func (*PaymentFormMethod) CRC

func (*PaymentFormMethod) CRC() uint32

type PaymentRequestedInfo

type PaymentRequestedInfo struct {
	Name            string       `tl:"flag:0"`
	Phone           string       `tl:"flag:1"`
	Email           string       `tl:"flag:2"`
	ShippingAddress *PostAddress `tl:"flag:3"`
}

Order info provided by the user

func (*PaymentRequestedInfo) CRC

func (*PaymentRequestedInfo) FlagIndex

func (*PaymentRequestedInfo) FlagIndex() int

type PaymentSavedCredentialsCard

type PaymentSavedCredentialsCard struct {
	ID    string
	Title string
}

Saved credit card

func (*PaymentSavedCredentialsCard) CRC

type PaymentsApplyGiftCodeParams

type PaymentsApplyGiftCodeParams struct {
	Slug string
}

func (*PaymentsApplyGiftCodeParams) CRC

type PaymentsAssignAppStoreTransactionParams

type PaymentsAssignAppStoreTransactionParams struct {
	Receipt []byte
	Purpose InputStorePaymentPurpose
}

func (*PaymentsAssignAppStoreTransactionParams) CRC

type PaymentsAssignPlayMarketTransactionParams

type PaymentsAssignPlayMarketTransactionParams struct {
	Receipt *DataJson
	Purpose InputStorePaymentPurpose
}

func (*PaymentsAssignPlayMarketTransactionParams) CRC

type PaymentsBankCardData

type PaymentsBankCardData struct {
	Title    string
	OpenUrls []*BankCardOpenURL
}

Credit card info, provided by the card's bank(s)

func (*PaymentsBankCardData) CRC

type PaymentsCanPurchasePremiumParams

type PaymentsCanPurchasePremiumParams struct {
	Purpose InputStorePaymentPurpose
}

func (*PaymentsCanPurchasePremiumParams) CRC

type PaymentsCheckGiftCodeParams

type PaymentsCheckGiftCodeParams struct {
	Slug string
}

func (*PaymentsCheckGiftCodeParams) CRC

type PaymentsCheckedGiftCode

type PaymentsCheckedGiftCode struct {
	ViaGiveaway   bool  `tl:"flag:2,encoded_in_bitflags"`
	FromID        Peer  `tl:"flag:4"`
	GiveawayMsgID int32 `tl:"flag:3"`
	ToID          int64 `tl:"flag:0"`
	Date          int32
	Months        int32
	UsedDate      int32 `tl:"flag:1"`
	Chats         []Chat
	Users         []User
}

Contains info about a [Telegram Premium giftcode link](https://core.telegram.org/api/links#premium-giftcode-links).

func (*PaymentsCheckedGiftCode) CRC

func (*PaymentsCheckedGiftCode) FlagIndex

func (*PaymentsCheckedGiftCode) FlagIndex() int

type PaymentsClearSavedInfoParams

type PaymentsClearSavedInfoParams struct {
	Credentials bool `tl:"flag:0,encoded_in_bitflags"`
	Info        bool `tl:"flag:1,encoded_in_bitflags"`
}

func (*PaymentsClearSavedInfoParams) CRC

func (*PaymentsClearSavedInfoParams) FlagIndex

func (*PaymentsClearSavedInfoParams) FlagIndex() int

type PaymentsExportInvoiceParams

type PaymentsExportInvoiceParams struct {
	InvoiceMedia InputMedia
}

func (*PaymentsExportInvoiceParams) CRC

type PaymentsExportedInvoice

type PaymentsExportedInvoice struct {
	URL string
}

Exported [invoice deep link](https://core.telegram.org/api/links#invoice-links)

func (*PaymentsExportedInvoice) CRC

type PaymentsGetBankCardDataParams

type PaymentsGetBankCardDataParams struct {
	Number string
}

func (*PaymentsGetBankCardDataParams) CRC

type PaymentsGetGiveawayInfoParams

type PaymentsGetGiveawayInfoParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*PaymentsGetGiveawayInfoParams) CRC

type PaymentsGetPaymentFormParams

type PaymentsGetPaymentFormParams struct {
	Invoice     InputInvoice
	ThemeParams *DataJson `tl:"flag:0"`
}

func (*PaymentsGetPaymentFormParams) CRC

func (*PaymentsGetPaymentFormParams) FlagIndex

func (*PaymentsGetPaymentFormParams) FlagIndex() int

type PaymentsGetPaymentReceiptParams

type PaymentsGetPaymentReceiptParams struct {
	Peer  InputPeer
	MsgID int32
}

func (*PaymentsGetPaymentReceiptParams) CRC

type PaymentsGetPremiumGiftCodeOptionsParams

type PaymentsGetPremiumGiftCodeOptionsParams struct {
	BoostPeer InputPeer `tl:"flag:0"`
}

func (*PaymentsGetPremiumGiftCodeOptionsParams) CRC

func (*PaymentsGetPremiumGiftCodeOptionsParams) FlagIndex

type PaymentsGetSavedInfoParams

type PaymentsGetSavedInfoParams struct{}

func (*PaymentsGetSavedInfoParams) CRC

type PaymentsGetStarsGiftOptionsParams

type PaymentsGetStarsGiftOptionsParams struct {
	UserID InputUser `tl:"flag:0"`
}

func (*PaymentsGetStarsGiftOptionsParams) CRC

func (*PaymentsGetStarsGiftOptionsParams) FlagIndex

type PaymentsGetStarsRevenueAdsAccountURLParams

type PaymentsGetStarsRevenueAdsAccountURLParams struct {
	Peer InputPeer
}

func (*PaymentsGetStarsRevenueAdsAccountURLParams) CRC

type PaymentsGetStarsRevenueStatsParams

type PaymentsGetStarsRevenueStatsParams struct {
	Dark bool `tl:"flag:0,encoded_in_bitflags"`
	Peer InputPeer
}

func (*PaymentsGetStarsRevenueStatsParams) CRC

func (*PaymentsGetStarsRevenueStatsParams) FlagIndex

type PaymentsGetStarsRevenueWithdrawalURLParams

type PaymentsGetStarsRevenueWithdrawalURLParams struct {
	Peer     InputPeer
	Stars    int64
	Password InputCheckPasswordSRP
}

func (*PaymentsGetStarsRevenueWithdrawalURLParams) CRC

type PaymentsGetStarsStatusParams

type PaymentsGetStarsStatusParams struct {
	Peer InputPeer
}

func (*PaymentsGetStarsStatusParams) CRC

type PaymentsGetStarsTopupOptionsParams

type PaymentsGetStarsTopupOptionsParams struct{}

func (*PaymentsGetStarsTopupOptionsParams) CRC

type PaymentsGetStarsTransactionsByIDParams

type PaymentsGetStarsTransactionsByIDParams struct {
	Peer InputPeer
	ID   []*InputStarsTransaction
}

func (*PaymentsGetStarsTransactionsByIDParams) CRC

type PaymentsGetStarsTransactionsParams

type PaymentsGetStarsTransactionsParams struct {
	Inbound   bool `tl:"flag:0,encoded_in_bitflags"`
	Outbound  bool `tl:"flag:1,encoded_in_bitflags"`
	Ascending bool `tl:"flag:2,encoded_in_bitflags"`
	Peer      InputPeer
	Offset    string
	Limit     int32
}

func (*PaymentsGetStarsTransactionsParams) CRC

func (*PaymentsGetStarsTransactionsParams) FlagIndex

type PaymentsGiveawayInfo

type PaymentsGiveawayInfo interface {
	tl.Object
	ImplementsPaymentsGiveawayInfo()
}

type PaymentsGiveawayInfoObj

type PaymentsGiveawayInfoObj struct {
	Participating         bool `tl:"flag:0,encoded_in_bitflags"`
	PreparingResults      bool `tl:"flag:3,encoded_in_bitflags"`
	StartDate             int32
	JoinedTooEarlyDate    int32  `tl:"flag:1"`
	AdminDisallowedChatID int64  `tl:"flag:2"`
	DisallowedCountry     string `tl:"flag:4"`
}

Contains info about an ongoing [giveaway](https://core.telegram.org/api/giveaways).

func (*PaymentsGiveawayInfoObj) CRC

func (*PaymentsGiveawayInfoObj) FlagIndex

func (*PaymentsGiveawayInfoObj) FlagIndex() int

func (*PaymentsGiveawayInfoObj) ImplementsPaymentsGiveawayInfo

func (*PaymentsGiveawayInfoObj) ImplementsPaymentsGiveawayInfo()

type PaymentsGiveawayInfoResults

type PaymentsGiveawayInfoResults struct {
	Winner         bool `tl:"flag:0,encoded_in_bitflags"`
	Refunded       bool `tl:"flag:1,encoded_in_bitflags"`
	StartDate      int32
	GiftCodeSlug   string `tl:"flag:0"`
	FinishDate     int32
	WinnersCount   int32
	ActivatedCount int32
}

A [giveaway](https://core.telegram.org/api/giveaways) has ended.

func (*PaymentsGiveawayInfoResults) CRC

func (*PaymentsGiveawayInfoResults) FlagIndex

func (*PaymentsGiveawayInfoResults) FlagIndex() int

func (*PaymentsGiveawayInfoResults) ImplementsPaymentsGiveawayInfo

func (*PaymentsGiveawayInfoResults) ImplementsPaymentsGiveawayInfo()

type PaymentsLaunchPrepaidGiveawayParams

type PaymentsLaunchPrepaidGiveawayParams struct {
	Peer       InputPeer
	GiveawayID int64
	Purpose    InputStorePaymentPurpose
}

func (*PaymentsLaunchPrepaidGiveawayParams) CRC

type PaymentsPaymentForm

type PaymentsPaymentForm interface {
	tl.Object
	ImplementsPaymentsPaymentForm()
}

type PaymentsPaymentFormObj

type PaymentsPaymentFormObj struct {
	CanSaveCredentials bool `tl:"flag:2,encoded_in_bitflags"`
	PasswordMissing    bool `tl:"flag:3,encoded_in_bitflags"`
	FormID             int64
	BotID              int64
	Title              string
	Description        string
	Photo              WebDocument `tl:"flag:5"`
	Invoice            *Invoice
	ProviderID         int64
	URL                string
	NativeProvider     string                         `tl:"flag:4"`
	NativeParams       *DataJson                      `tl:"flag:4"`
	AdditionalMethods  []*PaymentFormMethod           `tl:"flag:6"`
	SavedInfo          *PaymentRequestedInfo          `tl:"flag:0"`
	SavedCredentials   []*PaymentSavedCredentialsCard `tl:"flag:1"`
	Users              []User
}

Payment form

func (*PaymentsPaymentFormObj) CRC

func (*PaymentsPaymentFormObj) FlagIndex

func (*PaymentsPaymentFormObj) FlagIndex() int

func (*PaymentsPaymentFormObj) ImplementsPaymentsPaymentForm

func (*PaymentsPaymentFormObj) ImplementsPaymentsPaymentForm()

type PaymentsPaymentFormStars

type PaymentsPaymentFormStars struct {
	FormID      int64
	BotID       int64
	Title       string
	Description string
	Photo       WebDocument `tl:"flag:5"`
	Invoice     *Invoice
	Users       []User
}

func (*PaymentsPaymentFormStars) CRC

func (*PaymentsPaymentFormStars) FlagIndex

func (*PaymentsPaymentFormStars) FlagIndex() int

func (*PaymentsPaymentFormStars) ImplementsPaymentsPaymentForm

func (*PaymentsPaymentFormStars) ImplementsPaymentsPaymentForm()

type PaymentsPaymentReceipt

type PaymentsPaymentReceipt interface {
	tl.Object
	ImplementsPaymentsPaymentReceipt()
}

type PaymentsPaymentReceiptObj

type PaymentsPaymentReceiptObj struct {
	Date             int32
	BotID            int64
	ProviderID       int64
	Title            string
	Description      string
	Photo            WebDocument `tl:"flag:2"`
	Invoice          *Invoice
	Info             *PaymentRequestedInfo `tl:"flag:0"`
	Shipping         *ShippingOption       `tl:"flag:1"`
	TipAmount        int64                 `tl:"flag:3"`
	Currency         string
	TotalAmount      int64
	CredentialsTitle string
	Users            []User
}

Receipt

func (*PaymentsPaymentReceiptObj) CRC

func (*PaymentsPaymentReceiptObj) FlagIndex

func (*PaymentsPaymentReceiptObj) FlagIndex() int

func (*PaymentsPaymentReceiptObj) ImplementsPaymentsPaymentReceipt

func (*PaymentsPaymentReceiptObj) ImplementsPaymentsPaymentReceipt()

type PaymentsPaymentReceiptStars

type PaymentsPaymentReceiptStars struct {
	Date          int32
	BotID         int64
	Title         string
	Description   string
	Photo         WebDocument `tl:"flag:2"`
	Invoice       *Invoice
	Currency      string
	TotalAmount   int64
	TransactionID string
	Users         []User
}

func (*PaymentsPaymentReceiptStars) CRC

func (*PaymentsPaymentReceiptStars) FlagIndex

func (*PaymentsPaymentReceiptStars) FlagIndex() int

func (*PaymentsPaymentReceiptStars) ImplementsPaymentsPaymentReceipt

func (*PaymentsPaymentReceiptStars) ImplementsPaymentsPaymentReceipt()

type PaymentsPaymentResult

type PaymentsPaymentResult interface {
	tl.Object
	ImplementsPaymentsPaymentResult()
}

type PaymentsPaymentResultObj

type PaymentsPaymentResultObj struct {
	Updates Updates
}

Payment result

func (*PaymentsPaymentResultObj) CRC

func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult

func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult()

type PaymentsPaymentVerificationNeeded

type PaymentsPaymentVerificationNeeded struct {
	URL string
}

Payment was not successful, additional verification is needed

func (*PaymentsPaymentVerificationNeeded) CRC

func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult

func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult()

type PaymentsRefundStarsChargeParams

type PaymentsRefundStarsChargeParams struct {
	UserID   InputUser
	ChargeID string
}

func (*PaymentsRefundStarsChargeParams) CRC

type PaymentsSavedInfo

type PaymentsSavedInfo struct {
	HasSavedCredentials bool                  `tl:"flag:1,encoded_in_bitflags"`
	SavedInfo           *PaymentRequestedInfo `tl:"flag:0"`
}

Saved server-side order information

func (*PaymentsSavedInfo) CRC

func (*PaymentsSavedInfo) CRC() uint32

func (*PaymentsSavedInfo) FlagIndex

func (*PaymentsSavedInfo) FlagIndex() int

type PaymentsSendPaymentFormParams

type PaymentsSendPaymentFormParams struct {
	FormID           int64
	Invoice          InputInvoice
	RequestedInfoID  string `tl:"flag:0"`
	ShippingOptionID string `tl:"flag:1"`
	Credentials      InputPaymentCredentials
	TipAmount        int64 `tl:"flag:2"`
}

func (*PaymentsSendPaymentFormParams) CRC

func (*PaymentsSendPaymentFormParams) FlagIndex

func (*PaymentsSendPaymentFormParams) FlagIndex() int

type PaymentsSendStarsFormParams

type PaymentsSendStarsFormParams struct {
	FormID  int64
	Invoice InputInvoice
}

func (*PaymentsSendStarsFormParams) CRC

type PaymentsStarsRevenueAdsAccountURL

type PaymentsStarsRevenueAdsAccountURL struct {
	URL string
}

func (*PaymentsStarsRevenueAdsAccountURL) CRC

type PaymentsStarsRevenueStats

type PaymentsStarsRevenueStats struct {
	RevenueGraph StatsGraph
	Status       *StarsRevenueStatus
	UsdRate      float64
}

func (*PaymentsStarsRevenueStats) CRC

type PaymentsStarsRevenueWithdrawalURL

type PaymentsStarsRevenueWithdrawalURL struct {
	URL string
}

func (*PaymentsStarsRevenueWithdrawalURL) CRC

type PaymentsStarsStatus

type PaymentsStarsStatus struct {
	Balance                     int64
	History                     []*StarsTransaction  `tl:"flag:3"`
	Subscriptions               []*StarsSubscription `tl:"flag:1"`
	NextOffset                  string               `tl:"flag:0"`
	SubscriptionsNextOffset     string               `tl:"flag:2"`
	Chats                       []Chat
	SubscriptionsMissingBalance int64 `tl:"flag:4"`
	Users                       []User
}

func (*PaymentsStarsStatus) CRC

func (*PaymentsStarsStatus) CRC() uint32

func (*PaymentsStarsStatus) FlagIndex

func (*PaymentsStarsStatus) FlagIndex() int

type PaymentsValidateRequestedInfoParams

type PaymentsValidateRequestedInfoParams struct {
	Save    bool `tl:"flag:0,encoded_in_bitflags"`
	Invoice InputInvoice
	Info    *PaymentRequestedInfo
}

func (*PaymentsValidateRequestedInfoParams) CRC

func (*PaymentsValidateRequestedInfoParams) FlagIndex

type PaymentsValidatedRequestedInfo

type PaymentsValidatedRequestedInfo struct {
	ID              string            `tl:"flag:0"`
	ShippingOptions []*ShippingOption `tl:"flag:1"`
}

Validated user-provided info

func (*PaymentsValidatedRequestedInfo) CRC

func (*PaymentsValidatedRequestedInfo) FlagIndex

func (*PaymentsValidatedRequestedInfo) FlagIndex() int

type Peer

type Peer interface {
	tl.Object
	ImplementsPeer()
}

type PeerBlocked

type PeerBlocked struct {
	PeerID Peer
	Date   int32
}

Information about a blocked peer

func (*PeerBlocked) CRC

func (*PeerBlocked) CRC() uint32

type PeerChannel

type PeerChannel struct {
	ChannelID int64
}

Channel/supergroup

func (*PeerChannel) CRC

func (*PeerChannel) CRC() uint32

func (*PeerChannel) ImplementsPeer

func (*PeerChannel) ImplementsPeer()

type PeerChat

type PeerChat struct {
	ChatID int64
}

Group.

func (*PeerChat) CRC

func (*PeerChat) CRC() uint32

func (*PeerChat) ImplementsPeer

func (*PeerChat) ImplementsPeer()

type PeerColor

type PeerColor struct {
	Color             int32 `tl:"flag:0"`
	BackgroundEmojiID int64 `tl:"flag:1"`
}

Represents a [color palette »](https://core.telegram.org/api/colors).

func (*PeerColor) CRC

func (*PeerColor) CRC() uint32

func (*PeerColor) FlagIndex

func (*PeerColor) FlagIndex() int

type PeerLocated

type PeerLocated interface {
	tl.Object
	ImplementsPeerLocated()
}

type PeerLocatedObj

type PeerLocatedObj struct {
	Peer     Peer
	Expires  int32
	Distance int32
}

Peer geolocated nearby

func (*PeerLocatedObj) CRC

func (*PeerLocatedObj) CRC() uint32

func (*PeerLocatedObj) ImplementsPeerLocated

func (*PeerLocatedObj) ImplementsPeerLocated()

type PeerNotifySettings

type PeerNotifySettings struct {
	ShowPreviews        bool              `tl:"flag:0"`
	Silent              bool              `tl:"flag:1"`
	MuteUntil           int32             `tl:"flag:2"`
	IosSound            NotificationSound `tl:"flag:3"`
	AndroidSound        NotificationSound `tl:"flag:4"`
	OtherSound          NotificationSound `tl:"flag:5"`
	StoriesMuted        bool              `tl:"flag:6"`
	StoriesHideSender   bool              `tl:"flag:7"`
	StoriesIosSound     NotificationSound `tl:"flag:8"`
	StoriesAndroidSound NotificationSound `tl:"flag:9"`
	StoriesOtherSound   NotificationSound `tl:"flag:10"`
}

Notification settings.

func (*PeerNotifySettings) CRC

func (*PeerNotifySettings) CRC() uint32

func (*PeerNotifySettings) FlagIndex

func (*PeerNotifySettings) FlagIndex() int

type PeerSelfLocated

type PeerSelfLocated struct {
	Expires int32
}

Current peer

func (*PeerSelfLocated) CRC

func (*PeerSelfLocated) CRC() uint32

func (*PeerSelfLocated) ImplementsPeerLocated

func (*PeerSelfLocated) ImplementsPeerLocated()

type PeerSettings

type PeerSettings struct {
	ReportSpam            bool   `tl:"flag:0,encoded_in_bitflags"`
	AddContact            bool   `tl:"flag:1,encoded_in_bitflags"`
	BlockContact          bool   `tl:"flag:2,encoded_in_bitflags"`
	ShareContact          bool   `tl:"flag:3,encoded_in_bitflags"`
	NeedContactsException bool   `tl:"flag:4,encoded_in_bitflags"`
	ReportGeo             bool   `tl:"flag:5,encoded_in_bitflags"`
	Autoarchived          bool   `tl:"flag:7,encoded_in_bitflags"`
	InviteMembers         bool   `tl:"flag:8,encoded_in_bitflags"`
	RequestChatBroadcast  bool   `tl:"flag:10,encoded_in_bitflags"`
	BusinessBotPaused     bool   `tl:"flag:11,encoded_in_bitflags"`
	BusinessBotCanReply   bool   `tl:"flag:12,encoded_in_bitflags"`
	GeoDistance           int32  `tl:"flag:6"`
	RequestChatTitle      string `tl:"flag:9"`
	RequestChatDate       int32  `tl:"flag:9"`
	BusinessBotID         int64  `tl:"flag:13"`
	BusinessBotManageURL  string `tl:"flag:13"`
}

List of actions that are possible when interacting with this user, to be shown as suggested actions in the [chat action bar »](https://core.telegram.org/api/action-bar), see [here »](https://core.telegram.org/api/action-bar) for more info.

func (*PeerSettings) CRC

func (*PeerSettings) CRC() uint32

func (*PeerSettings) FlagIndex

func (*PeerSettings) FlagIndex() int

type PeerStories

type PeerStories struct {
	Peer      Peer
	MaxReadID int32 `tl:"flag:0"`
	Stories   []StoryItem
}

[Stories](https://core.telegram.org/api/stories) associated to a peer

func (*PeerStories) CRC

func (*PeerStories) CRC() uint32

func (*PeerStories) FlagIndex

func (*PeerStories) FlagIndex() int

type PeerUser

type PeerUser struct {
	UserID int64
}

Chat partner

func (*PeerUser) CRC

func (*PeerUser) CRC() uint32

func (*PeerUser) ImplementsPeer

func (*PeerUser) ImplementsPeer()

type PhoneAcceptCallParams

type PhoneAcceptCallParams struct {
	Peer     *InputPhoneCall
	GB       []byte
	Protocol *PhoneCallProtocol
}

func (*PhoneAcceptCallParams) CRC

type PhoneCall

type PhoneCall interface {
	tl.Object
	ImplementsPhoneCall()
}

type PhoneCallAccepted

type PhoneCallAccepted struct {
	Video         bool `tl:"flag:6,encoded_in_bitflags"`
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int64
	ParticipantID int64
	GB            []byte
	Protocol      *PhoneCallProtocol
}

An accepted phone call

func (*PhoneCallAccepted) CRC

func (*PhoneCallAccepted) CRC() uint32

func (*PhoneCallAccepted) FlagIndex

func (*PhoneCallAccepted) FlagIndex() int

func (*PhoneCallAccepted) ImplementsPhoneCall

func (*PhoneCallAccepted) ImplementsPhoneCall()

type PhoneCallDiscardReason

type PhoneCallDiscardReason uint32
const (
	PhoneCallDiscardReasonBusy       PhoneCallDiscardReason = 0xfaf7e8c9
	PhoneCallDiscardReasonDisconnect PhoneCallDiscardReason = 0xe095c1a0
	PhoneCallDiscardReasonHangup     PhoneCallDiscardReason = 0x57adc690
	PhoneCallDiscardReasonMissed     PhoneCallDiscardReason = 0x85e42301
)

func (PhoneCallDiscardReason) CRC

func (PhoneCallDiscardReason) String

func (e PhoneCallDiscardReason) String() string

type PhoneCallDiscarded

type PhoneCallDiscarded struct {
	NeedRating bool `tl:"flag:2,encoded_in_bitflags"`
	NeedDebug  bool `tl:"flag:3,encoded_in_bitflags"`
	Video      bool `tl:"flag:6,encoded_in_bitflags"`
	ID         int64
	Reason     PhoneCallDiscardReason `tl:"flag:0"`
	Duration   int32                  `tl:"flag:1"`
}

Indicates a discarded phone call

func (*PhoneCallDiscarded) CRC

func (*PhoneCallDiscarded) CRC() uint32

func (*PhoneCallDiscarded) FlagIndex

func (*PhoneCallDiscarded) FlagIndex() int

func (*PhoneCallDiscarded) ImplementsPhoneCall

func (*PhoneCallDiscarded) ImplementsPhoneCall()

type PhoneCallEmpty

type PhoneCallEmpty struct {
	ID int64
}

Empty constructor

func (*PhoneCallEmpty) CRC

func (*PhoneCallEmpty) CRC() uint32

func (*PhoneCallEmpty) ImplementsPhoneCall

func (*PhoneCallEmpty) ImplementsPhoneCall()

type PhoneCallObj

type PhoneCallObj struct {
	P2PAllowed       bool `tl:"flag:5,encoded_in_bitflags"`
	Video            bool `tl:"flag:6,encoded_in_bitflags"`
	ID               int64
	AccessHash       int64
	Date             int32
	AdminID          int64
	ParticipantID    int64
	GAOrB            []byte
	KeyFingerprint   int64
	Protocol         *PhoneCallProtocol
	Connections      []PhoneConnection
	StartDate        int32
	CustomParameters *DataJson `tl:"flag:7"`
}

Phone call

func (*PhoneCallObj) CRC

func (*PhoneCallObj) CRC() uint32

func (*PhoneCallObj) FlagIndex

func (*PhoneCallObj) FlagIndex() int

func (*PhoneCallObj) ImplementsPhoneCall

func (*PhoneCallObj) ImplementsPhoneCall()

type PhoneCallProtocol

type PhoneCallProtocol struct {
	UdpP2P          bool `tl:"flag:0,encoded_in_bitflags"`
	UdpReflector    bool `tl:"flag:1,encoded_in_bitflags"`
	MinLayer        int32
	MaxLayer        int32
	LibraryVersions []string
}

Protocol info for libtgvoip

func (*PhoneCallProtocol) CRC

func (*PhoneCallProtocol) CRC() uint32

func (*PhoneCallProtocol) FlagIndex

func (*PhoneCallProtocol) FlagIndex() int

type PhoneCallRequested

type PhoneCallRequested struct {
	Video         bool `tl:"flag:6,encoded_in_bitflags"`
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int64
	ParticipantID int64
	GAHash        []byte
	Protocol      *PhoneCallProtocol
}

Requested phone call

func (*PhoneCallRequested) CRC

func (*PhoneCallRequested) CRC() uint32

func (*PhoneCallRequested) FlagIndex

func (*PhoneCallRequested) FlagIndex() int

func (*PhoneCallRequested) ImplementsPhoneCall

func (*PhoneCallRequested) ImplementsPhoneCall()

type PhoneCallWaiting

type PhoneCallWaiting struct {
	Video         bool `tl:"flag:6,encoded_in_bitflags"`
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int64
	ParticipantID int64
	Protocol      *PhoneCallProtocol
	ReceiveDate   int32 `tl:"flag:0"`
}

Incoming phone call

func (*PhoneCallWaiting) CRC

func (*PhoneCallWaiting) CRC() uint32

func (*PhoneCallWaiting) FlagIndex

func (*PhoneCallWaiting) FlagIndex() int

func (*PhoneCallWaiting) ImplementsPhoneCall

func (*PhoneCallWaiting) ImplementsPhoneCall()

type PhoneCheckGroupCallParams

type PhoneCheckGroupCallParams struct {
	Call    *InputGroupCall
	Sources []int32
}

func (*PhoneCheckGroupCallParams) CRC

type PhoneConfirmCallParams

type PhoneConfirmCallParams struct {
	Peer           *InputPhoneCall
	GA             []byte
	KeyFingerprint int64
	Protocol       *PhoneCallProtocol
}

func (*PhoneConfirmCallParams) CRC

type PhoneConnection

type PhoneConnection interface {
	tl.Object
	ImplementsPhoneConnection()
}

type PhoneConnectionObj

type PhoneConnectionObj struct {
	Tcp     bool `tl:"flag:0,encoded_in_bitflags"`
	ID      int64
	Ip      string
	Ipv6    string
	Port    int32
	PeerTag []byte
}

Identifies an endpoint that can be used to connect to the other user in a phone call

func (*PhoneConnectionObj) CRC

func (*PhoneConnectionObj) CRC() uint32

func (*PhoneConnectionObj) FlagIndex

func (*PhoneConnectionObj) FlagIndex() int

func (*PhoneConnectionObj) ImplementsPhoneConnection

func (*PhoneConnectionObj) ImplementsPhoneConnection()

type PhoneConnectionWebrtc

type PhoneConnectionWebrtc struct {
	Turn     bool `tl:"flag:0,encoded_in_bitflags"`
	Stun     bool `tl:"flag:1,encoded_in_bitflags"`
	ID       int64
	Ip       string
	Ipv6     string
	Port     int32
	Username string
	Password string
}

WebRTC connection parameters

func (*PhoneConnectionWebrtc) CRC

func (*PhoneConnectionWebrtc) FlagIndex

func (*PhoneConnectionWebrtc) FlagIndex() int

func (*PhoneConnectionWebrtc) ImplementsPhoneConnection

func (*PhoneConnectionWebrtc) ImplementsPhoneConnection()

type PhoneCreateGroupCallParams

type PhoneCreateGroupCallParams struct {
	RtmpStream   bool `tl:"flag:2,encoded_in_bitflags"`
	Peer         InputPeer
	RandomID     int32
	Title        string `tl:"flag:0"`
	ScheduleDate int32  `tl:"flag:1"`
}

func (*PhoneCreateGroupCallParams) CRC

func (*PhoneCreateGroupCallParams) FlagIndex

func (*PhoneCreateGroupCallParams) FlagIndex() int

type PhoneDiscardCallParams

type PhoneDiscardCallParams struct {
	Video        bool `tl:"flag:0,encoded_in_bitflags"`
	Peer         *InputPhoneCall
	Duration     int32
	Reason       PhoneCallDiscardReason
	ConnectionID int64
}

func (*PhoneDiscardCallParams) CRC

func (*PhoneDiscardCallParams) FlagIndex

func (*PhoneDiscardCallParams) FlagIndex() int

type PhoneDiscardGroupCallParams

type PhoneDiscardGroupCallParams struct {
	Call *InputGroupCall
}

func (*PhoneDiscardGroupCallParams) CRC

type PhoneEditGroupCallParticipantParams

type PhoneEditGroupCallParticipantParams struct {
	Call               *InputGroupCall
	Participant        InputPeer
	Muted              bool  `tl:"flag:0"`
	Volume             int32 `tl:"flag:1"`
	RaiseHand          bool  `tl:"flag:2"`
	VideoStopped       bool  `tl:"flag:3"`
	VideoPaused        bool  `tl:"flag:4"`
	PresentationPaused bool  `tl:"flag:5"`
}

func (*PhoneEditGroupCallParticipantParams) CRC

func (*PhoneEditGroupCallParticipantParams) FlagIndex

type PhoneEditGroupCallTitleParams

type PhoneEditGroupCallTitleParams struct {
	Call  *InputGroupCall
	Title string
}

func (*PhoneEditGroupCallTitleParams) CRC

type PhoneExportGroupCallInviteParams

type PhoneExportGroupCallInviteParams struct {
	CanSelfUnmute bool `tl:"flag:0,encoded_in_bitflags"`
	Call          *InputGroupCall
}

func (*PhoneExportGroupCallInviteParams) CRC

func (*PhoneExportGroupCallInviteParams) FlagIndex

type PhoneExportedGroupCallInvite

type PhoneExportedGroupCallInvite struct {
	Link string
}

An invite to a group call or livestream

func (*PhoneExportedGroupCallInvite) CRC

type PhoneGetCallConfigParams

type PhoneGetCallConfigParams struct{}

func (*PhoneGetCallConfigParams) CRC

type PhoneGetGroupCallJoinAsParams

type PhoneGetGroupCallJoinAsParams struct {
	Peer InputPeer
}

func (*PhoneGetGroupCallJoinAsParams) CRC

type PhoneGetGroupCallParams

type PhoneGetGroupCallParams struct {
	Call  *InputGroupCall
	Limit int32
}

func (*PhoneGetGroupCallParams) CRC

type PhoneGetGroupCallStreamChannelsParams

type PhoneGetGroupCallStreamChannelsParams struct {
	Call *InputGroupCall
}

func (*PhoneGetGroupCallStreamChannelsParams) CRC

type PhoneGetGroupCallStreamRtmpURLParams

type PhoneGetGroupCallStreamRtmpURLParams struct {
	Peer   InputPeer
	Revoke bool
}

func (*PhoneGetGroupCallStreamRtmpURLParams) CRC

type PhoneGetGroupParticipantsParams

type PhoneGetGroupParticipantsParams struct {
	Call    *InputGroupCall
	Ids     []InputPeer
	Sources []int32
	Offset  string
	Limit   int32
}

func (*PhoneGetGroupParticipantsParams) CRC

type PhoneGroupCall

type PhoneGroupCall struct {
	Call                   GroupCall
	Participants           []*GroupCallParticipant
	ParticipantsNextOffset string
	Chats                  []Chat
	Users                  []User
}

Contains info about a group call, and partial info about its participants.

func (*PhoneGroupCall) CRC

func (*PhoneGroupCall) CRC() uint32

type PhoneGroupCallStreamChannels

type PhoneGroupCallStreamChannels struct {
	Channels []*GroupCallStreamChannel
}

Info about RTMP streams in a group call or livestream

func (*PhoneGroupCallStreamChannels) CRC

type PhoneGroupCallStreamRtmpURL

type PhoneGroupCallStreamRtmpURL struct {
	URL string
	Key string
}

RTMP URL and stream key to be used in streaming software

func (*PhoneGroupCallStreamRtmpURL) CRC

type PhoneGroupParticipants

type PhoneGroupParticipants struct {
	Count        int32
	Participants []*GroupCallParticipant
	NextOffset   string
	Chats        []Chat
	Users        []User
	Version      int32
}

Info about the participants of a group call or livestream

func (*PhoneGroupParticipants) CRC

type PhoneInviteToGroupCallParams

type PhoneInviteToGroupCallParams struct {
	Call  *InputGroupCall
	Users []InputUser
}

func (*PhoneInviteToGroupCallParams) CRC

type PhoneJoinAsPeers

type PhoneJoinAsPeers struct {
	Peers []Peer
	Chats []Chat
	Users []User
}

A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

func (*PhoneJoinAsPeers) CRC

func (*PhoneJoinAsPeers) CRC() uint32

type PhoneJoinGroupCallParams

type PhoneJoinGroupCallParams struct {
	Muted        bool `tl:"flag:0,encoded_in_bitflags"`
	VideoStopped bool `tl:"flag:2,encoded_in_bitflags"`
	Call         *InputGroupCall
	JoinAs       InputPeer
	InviteHash   string `tl:"flag:1"`
	Params       *DataJson
}

func (*PhoneJoinGroupCallParams) CRC

func (*PhoneJoinGroupCallParams) FlagIndex

func (*PhoneJoinGroupCallParams) FlagIndex() int

type PhoneJoinGroupCallPresentationParams

type PhoneJoinGroupCallPresentationParams struct {
	Call   *InputGroupCall
	Params *DataJson
}

func (*PhoneJoinGroupCallPresentationParams) CRC

type PhoneLeaveGroupCallParams

type PhoneLeaveGroupCallParams struct {
	Call   *InputGroupCall
	Source int32
}

func (*PhoneLeaveGroupCallParams) CRC

type PhoneLeaveGroupCallPresentationParams

type PhoneLeaveGroupCallPresentationParams struct {
	Call *InputGroupCall
}

func (*PhoneLeaveGroupCallPresentationParams) CRC

type PhonePhoneCall

type PhonePhoneCall struct {
	PhoneCall PhoneCall
	Users     []User
}

A VoIP phone call

func (*PhonePhoneCall) CRC

func (*PhonePhoneCall) CRC() uint32

type PhoneReceivedCallParams

type PhoneReceivedCallParams struct {
	Peer *InputPhoneCall
}

func (*PhoneReceivedCallParams) CRC

type PhoneRequestCallParams

type PhoneRequestCallParams struct {
	Video    bool `tl:"flag:0,encoded_in_bitflags"`
	UserID   InputUser
	RandomID int32
	GAHash   []byte
	Protocol *PhoneCallProtocol
}

func (*PhoneRequestCallParams) CRC

func (*PhoneRequestCallParams) FlagIndex

func (*PhoneRequestCallParams) FlagIndex() int

type PhoneSaveCallDebugParams

type PhoneSaveCallDebugParams struct {
	Peer  *InputPhoneCall
	Debug *DataJson
}

func (*PhoneSaveCallDebugParams) CRC

type PhoneSaveCallLogParams

type PhoneSaveCallLogParams struct {
	Peer *InputPhoneCall
	File InputFile
}

func (*PhoneSaveCallLogParams) CRC

type PhoneSaveDefaultGroupCallJoinAsParams

type PhoneSaveDefaultGroupCallJoinAsParams struct {
	Peer   InputPeer
	JoinAs InputPeer
}

func (*PhoneSaveDefaultGroupCallJoinAsParams) CRC

type PhoneSendSignalingDataParams

type PhoneSendSignalingDataParams struct {
	Peer *InputPhoneCall
	Data []byte
}

func (*PhoneSendSignalingDataParams) CRC

type PhoneSetCallRatingParams

type PhoneSetCallRatingParams struct {
	UserInitiative bool `tl:"flag:0,encoded_in_bitflags"`
	Peer           *InputPhoneCall
	Rating         int32
	Comment        string
}

func (*PhoneSetCallRatingParams) CRC

func (*PhoneSetCallRatingParams) FlagIndex

func (*PhoneSetCallRatingParams) FlagIndex() int

type PhoneStartScheduledGroupCallParams

type PhoneStartScheduledGroupCallParams struct {
	Call *InputGroupCall
}

func (*PhoneStartScheduledGroupCallParams) CRC

type PhoneToggleGroupCallRecordParams

type PhoneToggleGroupCallRecordParams struct {
	Start         bool `tl:"flag:0,encoded_in_bitflags"`
	Video         bool `tl:"flag:2,encoded_in_bitflags"`
	Call          *InputGroupCall
	Title         string `tl:"flag:1"`
	VideoPortrait bool   `tl:"flag:2"`
}

func (*PhoneToggleGroupCallRecordParams) CRC

func (*PhoneToggleGroupCallRecordParams) FlagIndex

type PhoneToggleGroupCallSettingsParams

type PhoneToggleGroupCallSettingsParams struct {
	ResetInviteHash bool `tl:"flag:1,encoded_in_bitflags"`
	Call            *InputGroupCall
	JoinMuted       bool `tl:"flag:0"`
}

func (*PhoneToggleGroupCallSettingsParams) CRC

func (*PhoneToggleGroupCallSettingsParams) FlagIndex

type PhoneToggleGroupCallStartSubscriptionParams

type PhoneToggleGroupCallStartSubscriptionParams struct {
	Call       *InputGroupCall
	Subscribed bool
}

func (*PhoneToggleGroupCallStartSubscriptionParams) CRC

type Photo

type Photo interface {
	tl.Object
	ImplementsPhoto()
}

type PhotoCachedSize

type PhotoCachedSize struct {
	Type  string
	W     int32
	H     int32
	Bytes []byte
}

Description of an image and its content.

func (*PhotoCachedSize) CRC

func (*PhotoCachedSize) CRC() uint32

func (*PhotoCachedSize) ImplementsPhotoSize

func (*PhotoCachedSize) ImplementsPhotoSize()

type PhotoEmpty

type PhotoEmpty struct {
	ID int64
}

Empty constructor, non-existent photo

func (*PhotoEmpty) CRC

func (*PhotoEmpty) CRC() uint32

func (*PhotoEmpty) ImplementsPhoto

func (*PhotoEmpty) ImplementsPhoto()

type PhotoObj

type PhotoObj struct {
	HasStickers   bool `tl:"flag:0,encoded_in_bitflags"`
	ID            int64
	AccessHash    int64
	FileReference []byte
	Date          int32
	Sizes         []PhotoSize
	VideoSizes    []VideoSize `tl:"flag:1"`
	DcID          int32
}

Photo

func (*PhotoObj) CRC

func (*PhotoObj) CRC() uint32

func (*PhotoObj) FlagIndex

func (*PhotoObj) FlagIndex() int

func (*PhotoObj) ImplementsPhoto

func (*PhotoObj) ImplementsPhoto()

type PhotoPathSize

type PhotoPathSize struct {
	Type  string
	Bytes []byte
}

Messages with animated stickers can have a compressed svg (&lt; 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.

func (*PhotoPathSize) CRC

func (*PhotoPathSize) CRC() uint32

func (*PhotoPathSize) ImplementsPhotoSize

func (*PhotoPathSize) ImplementsPhotoSize()

type PhotoSize

type PhotoSize interface {
	tl.Object
	ImplementsPhotoSize()
}

type PhotoSizeEmpty

type PhotoSizeEmpty struct {
	Type string
}

Empty constructor. Image with this thumbnail is unavailable.

func (*PhotoSizeEmpty) CRC

func (*PhotoSizeEmpty) CRC() uint32

func (*PhotoSizeEmpty) ImplementsPhotoSize

func (*PhotoSizeEmpty) ImplementsPhotoSize()

type PhotoSizeObj

type PhotoSizeObj struct {
	Type string
	W    int32
	H    int32
	Size int32
}

Image description.

func (*PhotoSizeObj) CRC

func (*PhotoSizeObj) CRC() uint32

func (*PhotoSizeObj) ImplementsPhotoSize

func (*PhotoSizeObj) ImplementsPhotoSize()

type PhotoSizeProgressive

type PhotoSizeProgressive struct {
	Type  string
	W     int32
	H     int32
	Sizes []int32
}

Progressively encoded photosize

func (*PhotoSizeProgressive) CRC

func (*PhotoSizeProgressive) ImplementsPhotoSize

func (*PhotoSizeProgressive) ImplementsPhotoSize()

type PhotoStrippedSize

type PhotoStrippedSize struct {
	Type  string
	Bytes []byte
}

A low-resolution compressed JPG payload

func (*PhotoStrippedSize) CRC

func (*PhotoStrippedSize) CRC() uint32

func (*PhotoStrippedSize) ImplementsPhotoSize

func (*PhotoStrippedSize) ImplementsPhotoSize()

type PhotosDeletePhotosParams

type PhotosDeletePhotosParams struct {
	ID []InputPhoto
}

func (*PhotosDeletePhotosParams) CRC

type PhotosGetUserPhotosParams

type PhotosGetUserPhotosParams struct {
	UserID InputUser
	Offset int32
	MaxID  int64
	Limit  int32
}

func (*PhotosGetUserPhotosParams) CRC

type PhotosOptions

type PhotosOptions struct {
	MaxID  int64 `json:"max_id,omitempty"`
	Offset int32 `json:"offset,omitempty"`
	Limit  int32 `json:"limit,omitempty"`
}

type PhotosPhoto

type PhotosPhoto struct {
	Photo Photo
	Users []User
}

Photo with auxiliary data.

func (*PhotosPhoto) CRC

func (*PhotosPhoto) CRC() uint32

type PhotosPhotos

type PhotosPhotos interface {
	tl.Object
	ImplementsPhotosPhotos()
}

type PhotosPhotosObj

type PhotosPhotosObj struct {
	Photos []Photo
	Users  []User
}

Full list of photos with auxiliary data.

func (*PhotosPhotosObj) CRC

func (*PhotosPhotosObj) CRC() uint32

func (*PhotosPhotosObj) ImplementsPhotosPhotos

func (*PhotosPhotosObj) ImplementsPhotosPhotos()

type PhotosPhotosSlice

type PhotosPhotosSlice struct {
	Count  int32
	Photos []Photo
	Users  []User
}

Incomplete list of photos with auxiliary data.

func (*PhotosPhotosSlice) CRC

func (*PhotosPhotosSlice) CRC() uint32

func (*PhotosPhotosSlice) ImplementsPhotosPhotos

func (*PhotosPhotosSlice) ImplementsPhotosPhotos()

type PhotosUpdateProfilePhotoParams

type PhotosUpdateProfilePhotoParams struct {
	Fallback bool      `tl:"flag:0,encoded_in_bitflags"`
	Bot      InputUser `tl:"flag:1"`
	ID       InputPhoto
}

func (*PhotosUpdateProfilePhotoParams) CRC

func (*PhotosUpdateProfilePhotoParams) FlagIndex

func (*PhotosUpdateProfilePhotoParams) FlagIndex() int

type PhotosUploadContactProfilePhotoParams

type PhotosUploadContactProfilePhotoParams struct {
	Suggest          bool `tl:"flag:3,encoded_in_bitflags"`
	Save             bool `tl:"flag:4,encoded_in_bitflags"`
	UserID           InputUser
	File             InputFile `tl:"flag:0"`
	Video            InputFile `tl:"flag:1"`
	VideoStartTs     float64   `tl:"flag:2"`
	VideoEmojiMarkup VideoSize `tl:"flag:5"`
}

func (*PhotosUploadContactProfilePhotoParams) CRC

func (*PhotosUploadContactProfilePhotoParams) FlagIndex

type PhotosUploadProfilePhotoParams

type PhotosUploadProfilePhotoParams struct {
	Fallback         bool      `tl:"flag:3,encoded_in_bitflags"`
	Bot              InputUser `tl:"flag:5"`
	File             InputFile `tl:"flag:0"`
	Video            InputFile `tl:"flag:1"`
	VideoStartTs     float64   `tl:"flag:2"`
	VideoEmojiMarkup VideoSize `tl:"flag:4"`
}

func (*PhotosUploadProfilePhotoParams) CRC

func (*PhotosUploadProfilePhotoParams) FlagIndex

func (*PhotosUploadProfilePhotoParams) FlagIndex() int

type PinOptions

type PinOptions struct {
	Unpin     bool `json:"unpin,omitempty"`
	PmOneside bool `json:"pm_oneside,omitempty"`
	Silent    bool `json:"silent,omitempty"`
}

type Poll

type Poll struct {
	ID             int64
	Closed         bool `tl:"flag:0,encoded_in_bitflags"`
	PublicVoters   bool `tl:"flag:1,encoded_in_bitflags"`
	MultipleChoice bool `tl:"flag:2,encoded_in_bitflags"`
	Quiz           bool `tl:"flag:3,encoded_in_bitflags"`
	Question       *TextWithEntities
	Answers        []*PollAnswer
	ClosePeriod    int32 `tl:"flag:4"`
	CloseDate      int32 `tl:"flag:5"`
}

Poll

func (*Poll) CRC

func (*Poll) CRC() uint32

func (*Poll) FlagIndex

func (*Poll) FlagIndex() int

type PollAnswer

type PollAnswer struct {
	Text   *TextWithEntities
	Option []byte
}

A possible answer of a poll

func (*PollAnswer) CRC

func (*PollAnswer) CRC() uint32

type PollAnswerVoters

type PollAnswerVoters struct {
	Chosen  bool `tl:"flag:0,encoded_in_bitflags"`
	Correct bool `tl:"flag:1,encoded_in_bitflags"`
	Option  []byte
	Voters  int32
}

A poll answer, and how users voted on it

func (*PollAnswerVoters) CRC

func (*PollAnswerVoters) CRC() uint32

func (*PollAnswerVoters) FlagIndex

func (*PollAnswerVoters) FlagIndex() int

type PollOptions

type PollOptions struct {
	PublicVoters   bool
	MCQ            bool
	IsQuiz         bool
	ClosePeriod    int32
	CloseDate      int32
	Solution       string
	CorrectAnswers []int
	ReplyID        int32
	NoForwards     bool
	ScheduleDate   int32
}

type PollResults

type PollResults struct {
	Min              bool                `tl:"flag:0,encoded_in_bitflags"`
	Results          []*PollAnswerVoters `tl:"flag:1"`
	TotalVoters      int32               `tl:"flag:2"`
	RecentVoters     []Peer              `tl:"flag:3"`
	Solution         string              `tl:"flag:4"`
	SolutionEntities []MessageEntity     `tl:"flag:4"`
}

Results of poll

func (*PollResults) CRC

func (*PollResults) CRC() uint32

func (*PollResults) FlagIndex

func (*PollResults) FlagIndex() int

type PopularContact

type PopularContact struct {
	ClientID  int64
	Importers int32
}

Popular contact

func (*PopularContact) CRC

func (*PopularContact) CRC() uint32

type PostAddress

type PostAddress struct {
	StreetLine1 string
	StreetLine2 string
	City        string
	State       string
	CountryIso2 string
	PostCode    string
}

Shipping address

func (*PostAddress) CRC

func (*PostAddress) CRC() uint32

type PostInteractionCounters

type PostInteractionCounters interface {
	tl.Object
	ImplementsPostInteractionCounters()
}

type PostInteractionCountersMessage

type PostInteractionCountersMessage struct {
	MsgID     int32
	Views     int32
	Forwards  int32
	Reactions int32
}

Interaction counters for a message.

func (*PostInteractionCountersMessage) CRC

func (*PostInteractionCountersMessage) ImplementsPostInteractionCounters

func (*PostInteractionCountersMessage) ImplementsPostInteractionCounters()

type PostInteractionCountersStory

type PostInteractionCountersStory struct {
	StoryID   int32
	Views     int32
	Forwards  int32
	Reactions int32
}

Interaction counters for a story.

func (*PostInteractionCountersStory) CRC

func (*PostInteractionCountersStory) ImplementsPostInteractionCounters

func (*PostInteractionCountersStory) ImplementsPostInteractionCounters()

type PremiumApplyBoostParams

type PremiumApplyBoostParams struct {
	Slots []int32 `tl:"flag:0"`
	Peer  InputPeer
}

func (*PremiumApplyBoostParams) CRC

func (*PremiumApplyBoostParams) FlagIndex

func (*PremiumApplyBoostParams) FlagIndex() int

type PremiumBoostsList

type PremiumBoostsList struct {
	Count      int32
	Boosts     []*Boost
	NextOffset string `tl:"flag:0"`
	Users      []User
}

List of [boosts](https://core.telegram.org/api/boost) that were applied to a peer by multiple users.

func (*PremiumBoostsList) CRC

func (*PremiumBoostsList) CRC() uint32

func (*PremiumBoostsList) FlagIndex

func (*PremiumBoostsList) FlagIndex() int

type PremiumBoostsStatus

type PremiumBoostsStatus struct {
	MyBoost            bool `tl:"flag:2,encoded_in_bitflags"`
	Level              int32
	CurrentLevelBoosts int32
	Boosts             int32
	GiftBoosts         int32              `tl:"flag:4"`
	NextLevelBoosts    int32              `tl:"flag:0"`
	PremiumAudience    *StatsPercentValue `tl:"flag:1"`
	BoostURL           string
	PrepaidGiveaways   []*PrepaidGiveaway `tl:"flag:3"`
	MyBoostSlots       []int32            `tl:"flag:2"`
}

Contains info about the current [boost status](https://core.telegram.org/api/boost) of a peer.

func (*PremiumBoostsStatus) CRC

func (*PremiumBoostsStatus) CRC() uint32

func (*PremiumBoostsStatus) FlagIndex

func (*PremiumBoostsStatus) FlagIndex() int

type PremiumGetBoostsListParams

type PremiumGetBoostsListParams struct {
	Gifts  bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   InputPeer
	Offset string
	Limit  int32
}

func (*PremiumGetBoostsListParams) CRC

func (*PremiumGetBoostsListParams) FlagIndex

func (*PremiumGetBoostsListParams) FlagIndex() int

type PremiumGetBoostsStatusParams

type PremiumGetBoostsStatusParams struct {
	Peer InputPeer
}

func (*PremiumGetBoostsStatusParams) CRC

type PremiumGetMyBoostsParams

type PremiumGetMyBoostsParams struct{}

func (*PremiumGetMyBoostsParams) CRC

type PremiumGetUserBoostsParams

type PremiumGetUserBoostsParams struct {
	Peer   InputPeer
	UserID InputUser
}

func (*PremiumGetUserBoostsParams) CRC

type PremiumGiftCodeOption

type PremiumGiftCodeOption struct {
	Users         int32
	Months        int32
	StoreProduct  string `tl:"flag:0"`
	StoreQuantity int32  `tl:"flag:1"`
	Currency      string
	Amount        int64
}

Contains info about a giveaway/gift(https://core.telegram.org/api/giveaways) option.

func (*PremiumGiftCodeOption) CRC

func (*PremiumGiftCodeOption) FlagIndex

func (*PremiumGiftCodeOption) FlagIndex() int

type PremiumGiftOption

type PremiumGiftOption struct {
	Months       int32
	Currency     string
	Amount       int64
	BotURL       string
	StoreProduct string `tl:"flag:0"`
}

Telegram Premium gift option

func (*PremiumGiftOption) CRC

func (*PremiumGiftOption) CRC() uint32

func (*PremiumGiftOption) FlagIndex

func (*PremiumGiftOption) FlagIndex() int

type PremiumMyBoosts

type PremiumMyBoosts struct {
	MyBoosts []*MyBoost
	Chats    []Chat
	Users    []User
}

A list of peers we are currently [boosting](https://core.telegram.org/api/boost), and how many [boost slots](https://core.telegram.org/api/boost) we have left.

func (*PremiumMyBoosts) CRC

func (*PremiumMyBoosts) CRC() uint32

type PremiumSubscriptionOption

type PremiumSubscriptionOption struct {
	Current            bool   `tl:"flag:1,encoded_in_bitflags"`
	CanPurchaseUpgrade bool   `tl:"flag:2,encoded_in_bitflags"`
	Transaction        string `tl:"flag:3"`
	Months             int32
	Currency           string
	Amount             int64
	BotURL             string
	StoreProduct       string `tl:"flag:0"`
}

Describes a Telegram Premium subscription option

func (*PremiumSubscriptionOption) CRC

func (*PremiumSubscriptionOption) FlagIndex

func (*PremiumSubscriptionOption) FlagIndex() int

type PrepaidGiveaway

type PrepaidGiveaway struct {
	ID       int64
	Months   int32
	Quantity int32
	Date     int32
}

Contains info about a [prepaid giveaway »](https://core.telegram.org/api/giveaways).

func (*PrepaidGiveaway) CRC

func (*PrepaidGiveaway) CRC() uint32

type PrivacyKey

type PrivacyKey uint32
const (
	PrivacyKeyAbout           PrivacyKey = 0xa486b761
	PrivacyKeyAddedByPhone    PrivacyKey = 0x42ffd42b
	PrivacyKeyBirthday        PrivacyKey = 0x2000a518
	PrivacyKeyChatInvite      PrivacyKey = 0x500e6dfa
	PrivacyKeyForwards        PrivacyKey = 0x69ec56a3
	PrivacyKeyPhoneCall       PrivacyKey = 0x3d662b7b
	PrivacyKeyPhoneNumber     PrivacyKey = 0xd19ae46d
	PrivacyKeyPhoneP2P        PrivacyKey = 0x39491cc8
	PrivacyKeyProfilePhoto    PrivacyKey = 0x96151fed
	PrivacyKeyStatusTimestamp PrivacyKey = 0xbc2eab30
	PrivacyKeyVoiceMessages   PrivacyKey = 0x697f414
)

func (PrivacyKey) CRC

func (e PrivacyKey) CRC() uint32

func (PrivacyKey) String

func (e PrivacyKey) String() string

type PrivacyRule

type PrivacyRule interface {
	tl.Object
	ImplementsPrivacyRule()
}

type PrivacyValueAllowAll

type PrivacyValueAllowAll struct{}

Allow all users

func (*PrivacyValueAllowAll) CRC

func (*PrivacyValueAllowAll) ImplementsPrivacyRule

func (*PrivacyValueAllowAll) ImplementsPrivacyRule()

type PrivacyValueAllowChatParticipants

type PrivacyValueAllowChatParticipants struct {
	Chats []int64
}

Allow all participants of certain chats

func (*PrivacyValueAllowChatParticipants) CRC

func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule

func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule()

type PrivacyValueAllowCloseFriends

type PrivacyValueAllowCloseFriends struct{}

Allow only [close friends »](https://core.telegram.org/api/privacy)

func (*PrivacyValueAllowCloseFriends) CRC

func (*PrivacyValueAllowCloseFriends) ImplementsPrivacyRule

func (*PrivacyValueAllowCloseFriends) ImplementsPrivacyRule()

type PrivacyValueAllowContacts

type PrivacyValueAllowContacts struct{}

Allow all contacts

func (*PrivacyValueAllowContacts) CRC

func (*PrivacyValueAllowContacts) ImplementsPrivacyRule

func (*PrivacyValueAllowContacts) ImplementsPrivacyRule()

type PrivacyValueAllowPremium

type PrivacyValueAllowPremium struct{}

func (*PrivacyValueAllowPremium) CRC

func (*PrivacyValueAllowPremium) ImplementsPrivacyRule

func (*PrivacyValueAllowPremium) ImplementsPrivacyRule()

type PrivacyValueAllowUsers

type PrivacyValueAllowUsers struct {
	Users []int64
}

Allow only certain users

func (*PrivacyValueAllowUsers) CRC

func (*PrivacyValueAllowUsers) ImplementsPrivacyRule

func (*PrivacyValueAllowUsers) ImplementsPrivacyRule()

type PrivacyValueDisallowAll

type PrivacyValueDisallowAll struct{}

Disallow all users

func (*PrivacyValueDisallowAll) CRC

func (*PrivacyValueDisallowAll) ImplementsPrivacyRule

func (*PrivacyValueDisallowAll) ImplementsPrivacyRule()

type PrivacyValueDisallowChatParticipants

type PrivacyValueDisallowChatParticipants struct {
	Chats []int64
}

Disallow only participants of certain chats

func (*PrivacyValueDisallowChatParticipants) CRC

func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule

func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule()

type PrivacyValueDisallowContacts

type PrivacyValueDisallowContacts struct{}

Disallow only contacts

func (*PrivacyValueDisallowContacts) CRC

func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule

func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule()

type PrivacyValueDisallowUsers

type PrivacyValueDisallowUsers struct {
	Users []int64
}

Disallow only certain users

func (*PrivacyValueDisallowUsers) CRC

func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule

func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule()

type ProgressManager

type ProgressManager struct {
	// contains filtered or unexported fields
}

----------------------- Progress Manager -----------------------

func NewProgressManager

func NewProgressManager(totalSize int, editInterval int) *ProgressManager

func (*ProgressManager) EditFunc

func (pm *ProgressManager) EditFunc(msg *NewMessage) func(a, b int32)

func (*ProgressManager) GenProgressBar

func (pm *ProgressManager) GenProgressBar(b int) string

func (*ProgressManager) GetETA

func (pm *ProgressManager) GetETA(currentSize int) string

func (*ProgressManager) GetProgress

func (pm *ProgressManager) GetProgress(currentSize int) float64

func (*ProgressManager) GetSpeed

func (pm *ProgressManager) GetSpeed(currentSize int) string

func (*ProgressManager) GetStats

func (pm *ProgressManager) GetStats(currentSize int) string

func (*ProgressManager) PrintFunc

func (pm *ProgressManager) PrintFunc() func(a, b int32)

func (*ProgressManager) SetTotalSize

func (pm *ProgressManager) SetTotalSize(totalSize int)

func (*ProgressManager) ShouldEdit

func (pm *ProgressManager) ShouldEdit() bool

type PublicForward

type PublicForward interface {
	tl.Object
	ImplementsPublicForward()
}

type PublicForwardMessage

type PublicForwardMessage struct {
	Message Message
}

Contains info about a forward of a [story](https://core.telegram.org/api/stories) as a message.

func (*PublicForwardMessage) CRC

func (*PublicForwardMessage) ImplementsPublicForward

func (*PublicForwardMessage) ImplementsPublicForward()

type PublicForwardStory

type PublicForwardStory struct {
	Peer  Peer
	Story StoryItem
}

Contains info about a forward of a [story](https://core.telegram.org/api/stories) as a repost by a public channel.

func (*PublicForwardStory) CRC

func (*PublicForwardStory) CRC() uint32

func (*PublicForwardStory) ImplementsPublicForward

func (*PublicForwardStory) ImplementsPublicForward()

type QrToken

type QrToken struct {
	// Token is the token to be used for logging in
	Token []byte
	// URL is the URL to be used for logging in
	Url string
	// ExpiresIn is the time in seconds after which the token will expire
	ExpiresIn int32
	// IgnoredIDs are the IDs of the users that will be ignored
	IgnoredIDs []int64

	// Timeout is the time after which the token will be considered expired
	Timeout int32
	// contains filtered or unexported fields
}

func (*QrToken) Expires

func (q *QrToken) Expires() int32

func (*QrToken) Recreate

func (q *QrToken) Recreate() (*QrToken, error)

func (*QrToken) TOKEN

func (q *QrToken) TOKEN() []byte

func (*QrToken) URL

func (q *QrToken) URL() string

func (*QrToken) Wait

func (q *QrToken) Wait(timeout ...int32) error

type QuickReply

type QuickReply struct {
	ShortcutID int32
	Shortcut   string
	TopMessage int32
	Count      int32
}

func (*QuickReply) CRC

func (*QuickReply) CRC() uint32

type RawHandler

type RawHandler func(m Update, c *Client) error

type Reaction

type Reaction interface {
	tl.Object
	ImplementsReaction()
}

type ReactionCount

type ReactionCount struct {
	ChosenOrder int32 `tl:"flag:0"`
	Reaction    Reaction
	Count       int32
}

Reactions

func (*ReactionCount) CRC

func (*ReactionCount) CRC() uint32

func (*ReactionCount) FlagIndex

func (*ReactionCount) FlagIndex() int

type ReactionCustomEmoji

type ReactionCustomEmoji struct {
	DocumentID int64
}

[Custom emoji](https://core.telegram.org/api/custom-emoji) message reaction

func (*ReactionCustomEmoji) CRC

func (*ReactionCustomEmoji) CRC() uint32

func (*ReactionCustomEmoji) ImplementsReaction

func (*ReactionCustomEmoji) ImplementsReaction()

type ReactionEmoji

type ReactionEmoji struct {
	Emoticon string
}

Normal emoji message reaction

func (*ReactionEmoji) CRC

func (*ReactionEmoji) CRC() uint32

func (*ReactionEmoji) ImplementsReaction

func (*ReactionEmoji) ImplementsReaction()

type ReactionEmpty

type ReactionEmpty struct{}

No reaction

func (*ReactionEmpty) CRC

func (*ReactionEmpty) CRC() uint32

func (*ReactionEmpty) ImplementsReaction

func (*ReactionEmpty) ImplementsReaction()

type ReactionNotificationsFrom

type ReactionNotificationsFrom uint32
const (
	ReactionNotificationsFromAll      ReactionNotificationsFrom = 0x4b9e22a0
	ReactionNotificationsFromContacts ReactionNotificationsFrom = 0xbac3a61a
)

func (ReactionNotificationsFrom) CRC

func (ReactionNotificationsFrom) String

func (e ReactionNotificationsFrom) String() string

type ReactionPaid

type ReactionPaid struct{}

func (*ReactionPaid) CRC

func (*ReactionPaid) CRC() uint32

func (*ReactionPaid) ImplementsReaction

func (*ReactionPaid) ImplementsReaction()

type ReactionsNotifySettings

type ReactionsNotifySettings struct {
	MessagesNotifyFrom ReactionNotificationsFrom `tl:"flag:0"`
	StoriesNotifyFrom  ReactionNotificationsFrom `tl:"flag:1"`
	Sound              NotificationSound
	ShowPreviews       bool
}

func (*ReactionsNotifySettings) CRC

func (*ReactionsNotifySettings) FlagIndex

func (*ReactionsNotifySettings) FlagIndex() int

type ReadParticipantDate

type ReadParticipantDate struct {
	UserID int64
	Date   int32
}

Contains info about when a certain participant has read a message

func (*ReadParticipantDate) CRC

func (*ReadParticipantDate) CRC() uint32

type ReceivedNotifyMessage

type ReceivedNotifyMessage struct {
	ID    int32
	Flags int32
}

Message ID, for which PUSH-notifications were cancelled.

func (*ReceivedNotifyMessage) CRC

type RecentMeURL

type RecentMeURL interface {
	tl.Object
	ImplementsRecentMeURL()
}

type RecentMeURLChat

type RecentMeURLChat struct {
	URL    string
	ChatID int64
}

Recent t.me link to a chat

func (*RecentMeURLChat) CRC

func (*RecentMeURLChat) CRC() uint32

func (*RecentMeURLChat) ImplementsRecentMeURL

func (*RecentMeURLChat) ImplementsRecentMeURL()

type RecentMeURLChatInvite

type RecentMeURLChatInvite struct {
	URL        string
	ChatInvite ChatInvite
}

Recent t.me invite link to a chat

func (*RecentMeURLChatInvite) CRC

func (*RecentMeURLChatInvite) ImplementsRecentMeURL

func (*RecentMeURLChatInvite) ImplementsRecentMeURL()

type RecentMeURLStickerSet

type RecentMeURLStickerSet struct {
	URL string
	Set StickerSetCovered
}

Recent t.me stickerset installation URL

func (*RecentMeURLStickerSet) CRC

func (*RecentMeURLStickerSet) ImplementsRecentMeURL

func (*RecentMeURLStickerSet) ImplementsRecentMeURL()

type RecentMeURLUnknown

type RecentMeURLUnknown struct {
	URL string
}

Unknown t.me url

func (*RecentMeURLUnknown) CRC

func (*RecentMeURLUnknown) CRC() uint32

func (*RecentMeURLUnknown) ImplementsRecentMeURL

func (*RecentMeURLUnknown) ImplementsRecentMeURL()

type RecentMeURLUser

type RecentMeURLUser struct {
	URL    string
	UserID int64
}

Recent t.me link to a user

func (*RecentMeURLUser) CRC

func (*RecentMeURLUser) CRC() uint32

func (*RecentMeURLUser) ImplementsRecentMeURL

func (*RecentMeURLUser) ImplementsRecentMeURL()

type ReplyInlineMarkup

type ReplyInlineMarkup struct {
	Rows []*KeyboardButtonRow
}

Bot or inline keyboard

func (*ReplyInlineMarkup) CRC

func (*ReplyInlineMarkup) CRC() uint32

func (*ReplyInlineMarkup) ImplementsReplyMarkup

func (*ReplyInlineMarkup) ImplementsReplyMarkup()

type ReplyKeyboardForceReply

type ReplyKeyboardForceReply struct {
	SingleUse   bool   `tl:"flag:1,encoded_in_bitflags"`
	Selective   bool   `tl:"flag:2,encoded_in_bitflags"`
	Placeholder string `tl:"flag:3"`
}

Force the user to send a reply

func (*ReplyKeyboardForceReply) CRC

func (*ReplyKeyboardForceReply) FlagIndex

func (*ReplyKeyboardForceReply) FlagIndex() int

func (*ReplyKeyboardForceReply) ImplementsReplyMarkup

func (*ReplyKeyboardForceReply) ImplementsReplyMarkup()

type ReplyKeyboardHide

type ReplyKeyboardHide struct {
	Selective bool `tl:"flag:2,encoded_in_bitflags"`
}

Hide sent bot keyboard

func (*ReplyKeyboardHide) CRC

func (*ReplyKeyboardHide) CRC() uint32

func (*ReplyKeyboardHide) FlagIndex

func (*ReplyKeyboardHide) FlagIndex() int

func (*ReplyKeyboardHide) ImplementsReplyMarkup

func (*ReplyKeyboardHide) ImplementsReplyMarkup()

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Resize      bool `tl:"flag:0,encoded_in_bitflags"`
	SingleUse   bool `tl:"flag:1,encoded_in_bitflags"`
	Selective   bool `tl:"flag:2,encoded_in_bitflags"`
	Persistent  bool `tl:"flag:4,encoded_in_bitflags"`
	Rows        []*KeyboardButtonRow
	Placeholder string `tl:"flag:3"`
}

Bot keyboard

func (*ReplyKeyboardMarkup) CRC

func (*ReplyKeyboardMarkup) CRC() uint32

func (*ReplyKeyboardMarkup) FlagIndex

func (*ReplyKeyboardMarkup) FlagIndex() int

func (*ReplyKeyboardMarkup) ImplementsReplyMarkup

func (*ReplyKeyboardMarkup) ImplementsReplyMarkup()

type ReplyMarkup

type ReplyMarkup interface {
	tl.Object
	ImplementsReplyMarkup()
}

type ReportReason

type ReportReason uint32
const (
	InputReportReasonChildAbuse      ReportReason = 0xadf44ee3
	InputReportReasonCopyright       ReportReason = 0x9b89f93a
	InputReportReasonFake            ReportReason = 0xf5ddd6e7
	InputReportReasonGeoIrrelevant   ReportReason = 0xdbd4feed
	InputReportReasonIllegalDrugs    ReportReason = 0xa8eb2be
	InputReportReasonOther           ReportReason = 0xc1e4a2b1
	InputReportReasonPersonalDetails ReportReason = 0x9ec7863d
	InputReportReasonPornography     ReportReason = 0x2e59d922
	InputReportReasonSpam            ReportReason = 0x58dbcab8
	InputReportReasonViolence        ReportReason = 0x1e22c78d
)

func (ReportReason) CRC

func (e ReportReason) CRC() uint32

func (ReportReason) String

func (e ReportReason) String() string

type RequestPeerType

type RequestPeerType interface {
	tl.Object
	ImplementsRequestPeerType()
}

type RequestPeerTypeBroadcast

type RequestPeerTypeBroadcast struct {
	Creator         bool             `tl:"flag:0,encoded_in_bitflags"`
	HasUsername     bool             `tl:"flag:3"`
	UserAdminRights *ChatAdminRights `tl:"flag:1"`
	BotAdminRights  *ChatAdminRights `tl:"flag:2"`
}

Choose a channel

func (*RequestPeerTypeBroadcast) CRC

func (*RequestPeerTypeBroadcast) FlagIndex

func (*RequestPeerTypeBroadcast) FlagIndex() int

func (*RequestPeerTypeBroadcast) ImplementsRequestPeerType

func (*RequestPeerTypeBroadcast) ImplementsRequestPeerType()

type RequestPeerTypeChat

type RequestPeerTypeChat struct {
	Creator         bool             `tl:"flag:0,encoded_in_bitflags"`
	BotParticipant  bool             `tl:"flag:5,encoded_in_bitflags"`
	HasUsername     bool             `tl:"flag:3"`
	Forum           bool             `tl:"flag:4"`
	UserAdminRights *ChatAdminRights `tl:"flag:1"`
	BotAdminRights  *ChatAdminRights `tl:"flag:2"`
}

Choose a chat or supergroup

func (*RequestPeerTypeChat) CRC

func (*RequestPeerTypeChat) CRC() uint32

func (*RequestPeerTypeChat) FlagIndex

func (*RequestPeerTypeChat) FlagIndex() int

func (*RequestPeerTypeChat) ImplementsRequestPeerType

func (*RequestPeerTypeChat) ImplementsRequestPeerType()

type RequestPeerTypeUser

type RequestPeerTypeUser struct {
	Bot     bool `tl:"flag:0"`
	Premium bool `tl:"flag:1"`
}

Choose a user.

func (*RequestPeerTypeUser) CRC

func (*RequestPeerTypeUser) CRC() uint32

func (*RequestPeerTypeUser) FlagIndex

func (*RequestPeerTypeUser) FlagIndex() int

func (*RequestPeerTypeUser) ImplementsRequestPeerType

func (*RequestPeerTypeUser) ImplementsRequestPeerType()

type RequestedPeer

type RequestedPeer interface {
	tl.Object
	ImplementsRequestedPeer()
}

type RequestedPeerChannel

type RequestedPeerChannel struct {
	ChannelID int64
	Title     string `tl:"flag:0"`
	Username  string `tl:"flag:1"`
	Photo     Photo  `tl:"flag:2"`
}

func (*RequestedPeerChannel) CRC

func (*RequestedPeerChannel) FlagIndex

func (*RequestedPeerChannel) FlagIndex() int

func (*RequestedPeerChannel) ImplementsRequestedPeer

func (*RequestedPeerChannel) ImplementsRequestedPeer()

type RequestedPeerChat

type RequestedPeerChat struct {
	ChatID int64
	Title  string `tl:"flag:0"`
	Photo  Photo  `tl:"flag:2"`
}

func (*RequestedPeerChat) CRC

func (*RequestedPeerChat) CRC() uint32

func (*RequestedPeerChat) FlagIndex

func (*RequestedPeerChat) FlagIndex() int

func (*RequestedPeerChat) ImplementsRequestedPeer

func (*RequestedPeerChat) ImplementsRequestedPeer()

type RequestedPeerUser

type RequestedPeerUser struct {
	UserID    int64
	FirstName string `tl:"flag:0"`
	LastName  string `tl:"flag:0"`
	Username  string `tl:"flag:1"`
	Photo     Photo  `tl:"flag:2"`
}

func (*RequestedPeerUser) CRC

func (*RequestedPeerUser) CRC() uint32

func (*RequestedPeerUser) FlagIndex

func (*RequestedPeerUser) FlagIndex() int

func (*RequestedPeerUser) ImplementsRequestedPeer

func (*RequestedPeerUser) ImplementsRequestedPeer()

type RestrictionReason

type RestrictionReason struct {
	Platform string
	Reason   string
	Text     string
}

Restriction reason.

func (*RestrictionReason) CRC

func (*RestrictionReason) CRC() uint32

type RichText

type RichText interface {
	tl.Object
	ImplementsRichText()
}

type SavedDialog

type SavedDialog struct {
	Pinned     bool `tl:"flag:2,encoded_in_bitflags"`
	Peer       Peer
	TopMessage int32
}

Represents a [saved dialog »](https://core.telegram.org/api/saved-messages).

func (*SavedDialog) CRC

func (*SavedDialog) CRC() uint32

func (*SavedDialog) FlagIndex

func (*SavedDialog) FlagIndex() int

type SavedPhoneContact

type SavedPhoneContact struct {
	Phone     string
	FirstName string
	LastName  string
	Date      int32
}

Saved contact

func (*SavedPhoneContact) CRC

func (*SavedPhoneContact) CRC() uint32

type SavedReactionTag

type SavedReactionTag struct {
	Reaction Reaction
	Title    string `tl:"flag:0"`
	Count    int32
}

func (*SavedReactionTag) CRC

func (*SavedReactionTag) CRC() uint32

func (*SavedReactionTag) FlagIndex

func (*SavedReactionTag) FlagIndex() int

type ScrapeConfig

type ScrapeConfig struct {
	PhoneNum          string
	WebCodeCallback   func() (string, error)
	CreateIfNotExists bool
}

type SearchOption

type SearchOption struct {
	IDs      interface{}    `json:"ids,omitempty"`
	Query    string         `json:"query,omitempty"`
	FromUser interface{}    `json:"from_user,omitempty"`
	Offset   int32          `json:"offset,omitempty"`
	Limit    int32          `json:"limit,omitempty"`
	Filter   MessagesFilter `json:"filter,omitempty"`
	TopMsgID int32          `json:"top_msg_id,omitempty"`
	MaxID    int32          `json:"max_id,omitempty"`
	MinID    int32          `json:"min_id,omitempty"`
	MaxDate  int32          `json:"max_date,omitempty"`
	MinDate  int32          `json:"min_date,omitempty"`
}

type SearchResultPosition

type SearchResultPosition struct {
	MsgID  int32
	Date   int32
	Offset int32
}

Information about a message in a specific position

func (*SearchResultPosition) CRC

type SearchResultsCalendarPeriod

type SearchResultsCalendarPeriod struct {
	Date     int32
	MinMsgID int32
	MaxMsgID int32
	Count    int32
}

Information about found messages sent on a specific day, used to split the `messages` in [messages.searchResultsCalendar](https://core.telegram.org/constructor/messages.searchResultsCalendar) constructors by days.

func (*SearchResultsCalendarPeriod) CRC

type SecureCredentialsEncrypted

type SecureCredentialsEncrypted struct {
	Data   []byte
	Hash   []byte
	Secret []byte
}

Encrypted credentials required to decrypt [telegram passport](https://core.telegram.org/passport) data.

func (*SecureCredentialsEncrypted) CRC

type SecureData

type SecureData struct {
	Data     []byte
	DataHash []byte
	Secret   []byte
}

Secure [passport](https://core.telegram.org/passport) data, for more info [see the passport docs »](https://core.telegram.org/passport/encryption#securedata)

func (*SecureData) CRC

func (*SecureData) CRC() uint32

type SecureFile

type SecureFile interface {
	tl.Object
	ImplementsSecureFile()
}

type SecureFileEmpty

type SecureFileEmpty struct{}

Empty constructor

func (*SecureFileEmpty) CRC

func (*SecureFileEmpty) CRC() uint32

func (*SecureFileEmpty) ImplementsSecureFile

func (*SecureFileEmpty) ImplementsSecureFile()

type SecureFileObj

type SecureFileObj struct {
	ID         int64
	AccessHash int64
	Size       int64
	DcID       int32
	Date       int32
	FileHash   []byte
	Secret     []byte
}

Secure [passport](https://core.telegram.org/passport) file, for more info [see the passport docs »](https://core.telegram.org/passport/encryption#inputsecurefile)

func (*SecureFileObj) CRC

func (*SecureFileObj) CRC() uint32

func (*SecureFileObj) ImplementsSecureFile

func (*SecureFileObj) ImplementsSecureFile()

type SecurePasswordKdfAlgo

type SecurePasswordKdfAlgo interface {
	tl.Object
	ImplementsSecurePasswordKdfAlgo()
}

type SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000

type SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000 struct {
	Salt []byte
}

PBKDF2 with SHA512 and 100000 iterations KDF algo

func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) CRC

func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) ImplementsSecurePasswordKdfAlgo()

type SecurePasswordKdfAlgoSHA512

type SecurePasswordKdfAlgoSHA512 struct {
	Salt []byte
}

SHA512 KDF algo

func (*SecurePasswordKdfAlgoSHA512) CRC

func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo()

type SecurePasswordKdfAlgoUnknown

type SecurePasswordKdfAlgoUnknown struct{}

Unknown KDF algo (most likely the client has to be updated)

func (*SecurePasswordKdfAlgoUnknown) CRC

func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo()

type SecurePlainData

type SecurePlainData interface {
	tl.Object
	ImplementsSecurePlainData()
}

type SecurePlainEmail

type SecurePlainEmail struct {
	Email string
}

Email address to use in [telegram passport](https://core.telegram.org/passport): [it must be verified, first »](https://core.telegram.org/passport/encryption#secureplaindata).

func (*SecurePlainEmail) CRC

func (*SecurePlainEmail) CRC() uint32

func (*SecurePlainEmail) ImplementsSecurePlainData

func (*SecurePlainEmail) ImplementsSecurePlainData()

type SecurePlainPhone

type SecurePlainPhone struct {
	Phone string
}

Phone number to use in [telegram passport](https://core.telegram.org/passport): [it must be verified, first »](https://core.telegram.org/passport/encryption#secureplaindata).

func (*SecurePlainPhone) CRC

func (*SecurePlainPhone) CRC() uint32

func (*SecurePlainPhone) ImplementsSecurePlainData

func (*SecurePlainPhone) ImplementsSecurePlainData()

type SecureRequiredType

type SecureRequiredType interface {
	tl.Object
	ImplementsSecureRequiredType()
}

type SecureRequiredTypeObj

type SecureRequiredTypeObj struct {
	NativeNames         bool `tl:"flag:0,encoded_in_bitflags"`
	SelfieRequired      bool `tl:"flag:1,encoded_in_bitflags"`
	TranslationRequired bool `tl:"flag:2,encoded_in_bitflags"`
	Type                SecureValueType
}

Required type

func (*SecureRequiredTypeObj) CRC

func (*SecureRequiredTypeObj) FlagIndex

func (*SecureRequiredTypeObj) FlagIndex() int

func (*SecureRequiredTypeObj) ImplementsSecureRequiredType

func (*SecureRequiredTypeObj) ImplementsSecureRequiredType()

type SecureRequiredTypeOneOf

type SecureRequiredTypeOneOf struct {
	Types []SecureRequiredType
}

One of

func (*SecureRequiredTypeOneOf) CRC

func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType

func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType()

type SecureSecretSettings

type SecureSecretSettings struct {
	SecureAlgo     SecurePasswordKdfAlgo
	SecureSecret   []byte
	SecureSecretID int64
}

Secure settings

func (*SecureSecretSettings) CRC

type SecureValue

type SecureValue struct {
	Type        SecureValueType
	Data        *SecureData     `tl:"flag:0"`
	FrontSide   SecureFile      `tl:"flag:1"`
	ReverseSide SecureFile      `tl:"flag:2"`
	Selfie      SecureFile      `tl:"flag:3"`
	Translation []SecureFile    `tl:"flag:6"`
	Files       []SecureFile    `tl:"flag:4"`
	PlainData   SecurePlainData `tl:"flag:5"`
	Hash        []byte
}

Secure value

func (*SecureValue) CRC

func (*SecureValue) CRC() uint32

func (*SecureValue) FlagIndex

func (*SecureValue) FlagIndex() int

type SecureValueError

type SecureValueError interface {
	tl.Object
	ImplementsSecureValueError()
}

type SecureValueErrorData

type SecureValueErrorData struct {
	Type     SecureValueType
	DataHash []byte
	Field    string
	Text     string
}

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.

func (*SecureValueErrorData) CRC

func (*SecureValueErrorData) ImplementsSecureValueError

func (*SecureValueErrorData) ImplementsSecureValueError()

type SecureValueErrorFile

type SecureValueErrorFile struct {
	Type     SecureValueType
	FileHash []byte
	Text     string
}

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

func (*SecureValueErrorFile) CRC

func (*SecureValueErrorFile) ImplementsSecureValueError

func (*SecureValueErrorFile) ImplementsSecureValueError()

type SecureValueErrorFiles

type SecureValueErrorFiles struct {
	Type     SecureValueType
	FileHash [][]byte
	Text     string
}

Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.

func (*SecureValueErrorFiles) CRC

func (*SecureValueErrorFiles) ImplementsSecureValueError

func (*SecureValueErrorFiles) ImplementsSecureValueError()

type SecureValueErrorFrontSide

type SecureValueErrorFrontSide struct {
	Type     SecureValueType
	FileHash []byte
	Text     string
}

Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.

func (*SecureValueErrorFrontSide) CRC

func (*SecureValueErrorFrontSide) ImplementsSecureValueError

func (*SecureValueErrorFrontSide) ImplementsSecureValueError()

type SecureValueErrorObj

type SecureValueErrorObj struct {
	Type SecureValueType
	Hash []byte
	Text string
}

Secure value error

func (*SecureValueErrorObj) CRC

func (*SecureValueErrorObj) CRC() uint32

func (*SecureValueErrorObj) ImplementsSecureValueError

func (*SecureValueErrorObj) ImplementsSecureValueError()

type SecureValueErrorReverseSide

type SecureValueErrorReverseSide struct {
	Type     SecureValueType
	FileHash []byte
	Text     string
}

Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.

func (*SecureValueErrorReverseSide) CRC

func (*SecureValueErrorReverseSide) ImplementsSecureValueError

func (*SecureValueErrorReverseSide) ImplementsSecureValueError()

type SecureValueErrorSelfie

type SecureValueErrorSelfie struct {
	Type     SecureValueType
	FileHash []byte
	Text     string
}

Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.

func (*SecureValueErrorSelfie) CRC

func (*SecureValueErrorSelfie) ImplementsSecureValueError

func (*SecureValueErrorSelfie) ImplementsSecureValueError()

type SecureValueErrorTranslationFile

type SecureValueErrorTranslationFile struct {
	Type     SecureValueType
	FileHash []byte
	Text     string
}

Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.

func (*SecureValueErrorTranslationFile) CRC

func (*SecureValueErrorTranslationFile) ImplementsSecureValueError

func (*SecureValueErrorTranslationFile) ImplementsSecureValueError()

type SecureValueErrorTranslationFiles

type SecureValueErrorTranslationFiles struct {
	Type     SecureValueType
	FileHash [][]byte
	Text     string
}

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes.

func (*SecureValueErrorTranslationFiles) CRC

func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError

func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError()

type SecureValueHash

type SecureValueHash struct {
	Type SecureValueType
	Hash []byte
}

Secure value hash

func (*SecureValueHash) CRC

func (*SecureValueHash) CRC() uint32

type SecureValueType

type SecureValueType uint32
const (
	SecureValueTypeAddress               SecureValueType = 0xcbe31e26
	SecureValueTypeBankStatement         SecureValueType = 0x89137c0d
	SecureValueTypeDriverLicense         SecureValueType = 0x6e425c4
	SecureValueTypeEmail                 SecureValueType = 0x8e3ca7ee
	SecureValueTypeIdentityCard          SecureValueType = 0xa0d0744b
	SecureValueTypeInternalPassport      SecureValueType = 0x99a48f23
	SecureValueTypePassport              SecureValueType = 0x3dac6a00
	SecureValueTypePassportRegistration  SecureValueType = 0x99e3806a
	SecureValueTypePersonalDetails       SecureValueType = 0x9d2a81e3
	SecureValueTypePhone                 SecureValueType = 0xb320aadb
	SecureValueTypeRentalAgreement       SecureValueType = 0x8b883488
	SecureValueTypeTemporaryRegistration SecureValueType = 0xea02ec33
	SecureValueTypeUtilityBill           SecureValueType = 0xfc36954e
)

func (SecureValueType) CRC

func (e SecureValueType) CRC() uint32

func (SecureValueType) String

func (e SecureValueType) String() string

type SendAsPeer

type SendAsPeer struct {
	PremiumRequired bool `tl:"flag:0,encoded_in_bitflags"`
	Peer            Peer
}

Indicates a peer that can be used to send messages

func (*SendAsPeer) CRC

func (*SendAsPeer) CRC() uint32

func (*SendAsPeer) FlagIndex

func (*SendAsPeer) FlagIndex() int

type SendMessageAction

type SendMessageAction interface {
	tl.Object
	ImplementsSendMessageAction()
}

type SendMessageCancelAction

type SendMessageCancelAction struct{}

Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.

func (*SendMessageCancelAction) CRC

func (*SendMessageCancelAction) ImplementsSendMessageAction

func (*SendMessageCancelAction) ImplementsSendMessageAction()

type SendMessageChooseContactAction

type SendMessageChooseContactAction struct{}

User is selecting a contact to share.

func (*SendMessageChooseContactAction) CRC

func (*SendMessageChooseContactAction) ImplementsSendMessageAction

func (*SendMessageChooseContactAction) ImplementsSendMessageAction()

type SendMessageChooseStickerAction

type SendMessageChooseStickerAction struct{}

User is choosing a sticker

func (*SendMessageChooseStickerAction) CRC

func (*SendMessageChooseStickerAction) ImplementsSendMessageAction

func (*SendMessageChooseStickerAction) ImplementsSendMessageAction()

type SendMessageEmojiInteraction

type SendMessageEmojiInteraction struct {
	Emoticon    string
	MsgID       int32
	Interaction *DataJson
}

User has clicked on an animated emoji triggering a [reaction, click here for more info »](https://core.telegram.org/api/animated-emojis#emoji-reactions).

func (*SendMessageEmojiInteraction) CRC

func (*SendMessageEmojiInteraction) ImplementsSendMessageAction

func (*SendMessageEmojiInteraction) ImplementsSendMessageAction()

type SendMessageEmojiInteractionSeen

type SendMessageEmojiInteractionSeen struct {
	Emoticon string
}

User is watching an animated emoji reaction triggered by another user, [click here for more info »](https://core.telegram.org/api/animated-emojis#emoji-reactions).

func (*SendMessageEmojiInteractionSeen) CRC

func (*SendMessageEmojiInteractionSeen) ImplementsSendMessageAction

func (*SendMessageEmojiInteractionSeen) ImplementsSendMessageAction()

type SendMessageGamePlayAction

type SendMessageGamePlayAction struct{}

User is playing a game

func (*SendMessageGamePlayAction) CRC

func (*SendMessageGamePlayAction) ImplementsSendMessageAction

func (*SendMessageGamePlayAction) ImplementsSendMessageAction()

type SendMessageGeoLocationAction

type SendMessageGeoLocationAction struct{}

User is selecting a location to share.

func (*SendMessageGeoLocationAction) CRC

func (*SendMessageGeoLocationAction) ImplementsSendMessageAction

func (*SendMessageGeoLocationAction) ImplementsSendMessageAction()

type SendMessageHistoryImportAction

type SendMessageHistoryImportAction struct {
	Progress int32
}

Chat history is being imported

func (*SendMessageHistoryImportAction) CRC

func (*SendMessageHistoryImportAction) ImplementsSendMessageAction

func (*SendMessageHistoryImportAction) ImplementsSendMessageAction()

type SendMessageRecordAudioAction

type SendMessageRecordAudioAction struct{}

User is recording a voice message.

func (*SendMessageRecordAudioAction) CRC

func (*SendMessageRecordAudioAction) ImplementsSendMessageAction

func (*SendMessageRecordAudioAction) ImplementsSendMessageAction()

type SendMessageRecordRoundAction

type SendMessageRecordRoundAction struct{}

User is recording a round video to share

func (*SendMessageRecordRoundAction) CRC

func (*SendMessageRecordRoundAction) ImplementsSendMessageAction

func (*SendMessageRecordRoundAction) ImplementsSendMessageAction()

type SendMessageRecordVideoAction

type SendMessageRecordVideoAction struct{}

User is recording a video.

func (*SendMessageRecordVideoAction) CRC

func (*SendMessageRecordVideoAction) ImplementsSendMessageAction

func (*SendMessageRecordVideoAction) ImplementsSendMessageAction()

type SendMessageTypingAction

type SendMessageTypingAction struct{}

User is typing.

func (*SendMessageTypingAction) CRC

func (*SendMessageTypingAction) ImplementsSendMessageAction

func (*SendMessageTypingAction) ImplementsSendMessageAction()

type SendMessageUploadAudioAction

type SendMessageUploadAudioAction struct {
	Progress int32
}

User is uploading a voice message.

func (*SendMessageUploadAudioAction) CRC

func (*SendMessageUploadAudioAction) ImplementsSendMessageAction

func (*SendMessageUploadAudioAction) ImplementsSendMessageAction()

type SendMessageUploadDocumentAction

type SendMessageUploadDocumentAction struct {
	Progress int32
}

User is uploading a file.

func (*SendMessageUploadDocumentAction) CRC

func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction

func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction()

type SendMessageUploadPhotoAction

type SendMessageUploadPhotoAction struct {
	Progress int32
}

User is uploading a photo.

func (*SendMessageUploadPhotoAction) CRC

func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction

func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction()

type SendMessageUploadRoundAction

type SendMessageUploadRoundAction struct {
	Progress int32
}

User is uploading a round video

func (*SendMessageUploadRoundAction) CRC

func (*SendMessageUploadRoundAction) ImplementsSendMessageAction

func (*SendMessageUploadRoundAction) ImplementsSendMessageAction()

type SendMessageUploadVideoAction

type SendMessageUploadVideoAction struct {
	Progress int32
}

User is uploading a video.

func (*SendMessageUploadVideoAction) CRC

func (*SendMessageUploadVideoAction) ImplementsSendMessageAction

func (*SendMessageUploadVideoAction) ImplementsSendMessageAction()

type SendOptions

type SendOptions struct {
	Attributes       []DocumentAttribute `json:"attributes,omitempty"`
	MimeType         string              `json:"mime_type,omitempty"`
	Caption          interface{}         `json:"caption,omitempty"`
	ClearDraft       bool                `json:"clear_draft,omitempty"`
	Entites          []MessageEntity     `json:"entites,omitempty"`
	FileName         string              `json:"file_name,omitempty"`
	ForceDocument    bool                `json:"force_document,omitempty"`
	InvertMedia      bool                `json:"invert_media,omitempty"`
	LinkPreview      bool                `json:"link_preview,omitempty"`
	Media            interface{}         `json:"media,omitempty"`
	NoForwards       bool                `json:"no_forwards,omitempty"`
	ParseMode        string              `json:"parse_mode,omitempty"`
	ReplyID          int32               `json:"reply_id,omitempty"`
	ReplyMarkup      ReplyMarkup         `json:"reply_markup,omitempty"`
	ScheduleDate     int32               `json:"schedule_date,omitempty"`
	SendAs           interface{}         `json:"send_as,omitempty"`
	Silent           bool                `json:"silent,omitempty"`
	Thumb            interface{}         `json:"thumb,omitempty"`
	TTL              int32               `json:"ttl,omitempty"`
	Spoiler          bool                `json:"spoiler,omitempty"`
	ProgressCallback func(int32, int32)  `json:"-"`
	UploadThreads    int                 `json:"-"`
	Effect           int64               `json:"effect,omitempty"`
	Timeouts         int32               `json:"timeouts,omitempty"`
}

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

type Session

type Session struct {
	Key      []byte `json:"key,omitempty"`
	Hash     []byte `json:"hash,omitempty"`
	Salt     int64  `json:"salt,omitempty"`
	Hostname string `json:"hostname,omitempty"`
	AppID    int32  `json:"app_id,omitempty"`
}

func (*Session) Encode

func (s *Session) Encode() string

type ShippingOption

type ShippingOption struct {
	ID     string
	Title  string
	Prices []*LabeledPrice
}

Shipping option

func (*ShippingOption) CRC

func (*ShippingOption) CRC() uint32

type SmsJob

type SmsJob struct {
	JobID       string
	PhoneNumber string
	Text        string
}

func (*SmsJob) CRC

func (*SmsJob) CRC() uint32

type SmsjobsEligibleToJoin

type SmsjobsEligibleToJoin struct {
	TermsURL       string
	MonthlySentSms int32
}

func (*SmsjobsEligibleToJoin) CRC

type SmsjobsFinishJobParams

type SmsjobsFinishJobParams struct {
	JobID string
	Error string `tl:"flag:0"`
}

func (*SmsjobsFinishJobParams) CRC

func (*SmsjobsFinishJobParams) FlagIndex

func (*SmsjobsFinishJobParams) FlagIndex() int

type SmsjobsGetSmsJobParams

type SmsjobsGetSmsJobParams struct {
	JobID string
}

func (*SmsjobsGetSmsJobParams) CRC

type SmsjobsGetStatusParams

type SmsjobsGetStatusParams struct{}

func (*SmsjobsGetStatusParams) CRC

type SmsjobsIsEligibleToJoinParams

type SmsjobsIsEligibleToJoinParams struct{}

func (*SmsjobsIsEligibleToJoinParams) CRC

type SmsjobsJoinParams

type SmsjobsJoinParams struct{}

func (*SmsjobsJoinParams) CRC

func (*SmsjobsJoinParams) CRC() uint32

type SmsjobsLeaveParams

type SmsjobsLeaveParams struct{}

func (*SmsjobsLeaveParams) CRC

func (*SmsjobsLeaveParams) CRC() uint32

type SmsjobsStatus

type SmsjobsStatus struct {
	AllowInternational bool `tl:"flag:0,encoded_in_bitflags"`
	RecentSent         int32
	RecentSince        int32
	RecentRemains      int32
	TotalSent          int32
	TotalSince         int32
	LastGiftSlug       string `tl:"flag:1"`
	TermsURL           string
}

func (*SmsjobsStatus) CRC

func (*SmsjobsStatus) CRC() uint32

func (*SmsjobsStatus) FlagIndex

func (*SmsjobsStatus) FlagIndex() int

type SmsjobsUpdateSettingsParams

type SmsjobsUpdateSettingsParams struct {
	AllowInternational bool `tl:"flag:0,encoded_in_bitflags"`
}

func (*SmsjobsUpdateSettingsParams) CRC

func (*SmsjobsUpdateSettingsParams) FlagIndex

func (*SmsjobsUpdateSettingsParams) FlagIndex() int

type Source

type Source struct {
	Source interface{}
}

func (*Source) GetName

func (s *Source) GetName() string

func (*Source) GetReader

func (s *Source) GetReader() io.Reader

func (*Source) GetSizeAndName

func (s *Source) GetSizeAndName() (int64, string)

type SpeakingInGroupCallAction

type SpeakingInGroupCallAction struct{}

User is currently speaking in the group call

func (*SpeakingInGroupCallAction) CRC

func (*SpeakingInGroupCallAction) ImplementsSendMessageAction

func (*SpeakingInGroupCallAction) ImplementsSendMessageAction()

type SponsoredMessage

type SponsoredMessage struct {
	Recommended    bool `tl:"flag:5,encoded_in_bitflags"`
	CanReport      bool `tl:"flag:12,encoded_in_bitflags"`
	RandomID       []byte
	URL            string
	Title          string
	Message        string
	Entities       []MessageEntity `tl:"flag:1"`
	Photo          Photo           `tl:"flag:6"`
	Color          *PeerColor      `tl:"flag:13"`
	Media          MessageMedia    `tl:"flag:14"`
	ButtonText     string
	SponsorInfo    string `tl:"flag:7"`
	AdditionalInfo string `tl:"flag:8"`
}

A [sponsored message](https://core.telegram.orghttps://core.telegram.org/api/sponsored-messages).

func (*SponsoredMessage) CRC

func (*SponsoredMessage) CRC() uint32

func (*SponsoredMessage) FlagIndex

func (*SponsoredMessage) FlagIndex() int

type SponsoredMessageReportOption

type SponsoredMessageReportOption struct {
	Text   string
	Option []byte
}

func (*SponsoredMessageReportOption) CRC

type StarsGiftOption

type StarsGiftOption struct {
	Extended     bool `tl:"flag:1,encoded_in_bitflags"`
	Stars        int64
	StoreProduct string `tl:"flag:0"`
	Currency     string
	Amount       int64
}

func (*StarsGiftOption) CRC

func (*StarsGiftOption) CRC() uint32

func (*StarsGiftOption) FlagIndex

func (*StarsGiftOption) FlagIndex() int

type StarsRevenueStatus

type StarsRevenueStatus struct {
	WithdrawalEnabled bool `tl:"flag:0,encoded_in_bitflags"`
	CurrentBalance    int64
	AvailableBalance  int64
	OverallRevenue    int64
	NextWithdrawalAt  int32 `tl:"flag:1"`
}

func (*StarsRevenueStatus) CRC

func (*StarsRevenueStatus) CRC() uint32

func (*StarsRevenueStatus) FlagIndex

func (*StarsRevenueStatus) FlagIndex() int

type StarsSubscription

type StarsSubscription struct {
	Canceled       bool `tl:"flag:0,encoded_in_bitflags"`
	CanRefulfill   bool `tl:"flag:1,encoded_in_bitflags"`
	MissingBalance bool `tl:"flag:2,encoded_in_bitflags"`
	ID             string
	Peer           Peer
	UntilDate      int32
	Pricing        *StarsSubscriptionPricing
	ChatInviteHash string `tl:"flag:3"`
}

func (*StarsSubscription) CRC

func (*StarsSubscription) CRC() uint32

func (*StarsSubscription) FlagIndex

func (*StarsSubscription) FlagIndex() int

type StarsSubscriptionPricing

type StarsSubscriptionPricing struct {
	Period int32
	Amount int64
}

func (*StarsSubscriptionPricing) CRC

type StarsTopupOption

type StarsTopupOption struct {
	Extended     bool `tl:"flag:1,encoded_in_bitflags"`
	Stars        int64
	StoreProduct string `tl:"flag:0"`
	Currency     string
	Amount       int64
}

func (*StarsTopupOption) CRC

func (*StarsTopupOption) CRC() uint32

func (*StarsTopupOption) FlagIndex

func (*StarsTopupOption) FlagIndex() int

type StarsTransaction

type StarsTransaction struct {
	Refund             bool `tl:"flag:3,encoded_in_bitflags"`
	Pending            bool `tl:"flag:4,encoded_in_bitflags"`
	Failed             bool `tl:"flag:6,encoded_in_bitflags"`
	Gift               bool `tl:"flag:10,encoded_in_bitflags"`
	ID                 string
	Reaction           bool `tl:"flag:11,encoded_in_bitflags"`
	Stars              int64
	Subscription       bool `tl:"flag:12,encoded_in_bitflags"`
	Date               int32
	Peer               StarsTransactionPeer
	Title              string         `tl:"flag:0"`
	Description        string         `tl:"flag:1"`
	Photo              WebDocument    `tl:"flag:2"`
	TransactionDate    int32          `tl:"flag:5"`
	TransactionURL     string         `tl:"flag:5"`
	BotPayload         []byte         `tl:"flag:7"`
	MsgID              int32          `tl:"flag:8"`
	ExtendedMedia      []MessageMedia `tl:"flag:9"`
	SubscriptionPeriod int32          `tl:"flag:12"`
}

func (*StarsTransaction) CRC

func (*StarsTransaction) CRC() uint32

func (*StarsTransaction) FlagIndex

func (*StarsTransaction) FlagIndex() int

type StarsTransactionPeer

type StarsTransactionPeer interface {
	tl.Object
	ImplementsStarsTransactionPeer()
}

type StarsTransactionPeerAds

type StarsTransactionPeerAds struct{}

func (*StarsTransactionPeerAds) CRC

func (*StarsTransactionPeerAds) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerAds) ImplementsStarsTransactionPeer()

type StarsTransactionPeerAppStore

type StarsTransactionPeerAppStore struct{}

func (*StarsTransactionPeerAppStore) CRC

func (*StarsTransactionPeerAppStore) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerAppStore) ImplementsStarsTransactionPeer()

type StarsTransactionPeerFragment

type StarsTransactionPeerFragment struct{}

func (*StarsTransactionPeerFragment) CRC

func (*StarsTransactionPeerFragment) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerFragment) ImplementsStarsTransactionPeer()

type StarsTransactionPeerObj

type StarsTransactionPeerObj struct {
	Peer Peer
}

func (*StarsTransactionPeerObj) CRC

func (*StarsTransactionPeerObj) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerObj) ImplementsStarsTransactionPeer()

type StarsTransactionPeerPlayMarket

type StarsTransactionPeerPlayMarket struct{}

func (*StarsTransactionPeerPlayMarket) CRC

func (*StarsTransactionPeerPlayMarket) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerPlayMarket) ImplementsStarsTransactionPeer()

type StarsTransactionPeerPremiumBot

type StarsTransactionPeerPremiumBot struct{}

func (*StarsTransactionPeerPremiumBot) CRC

func (*StarsTransactionPeerPremiumBot) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerPremiumBot) ImplementsStarsTransactionPeer()

type StarsTransactionPeerUnsupported

type StarsTransactionPeerUnsupported struct{}

func (*StarsTransactionPeerUnsupported) CRC

func (*StarsTransactionPeerUnsupported) ImplementsStarsTransactionPeer

func (*StarsTransactionPeerUnsupported) ImplementsStarsTransactionPeer()

type StatsAbsValueAndPrev

type StatsAbsValueAndPrev struct {
	Current  float64
	Previous float64
}

Statistics value couple; initial and final value for period of time currently in consideration

func (*StatsAbsValueAndPrev) CRC

type StatsBroadcastRevenueStats

type StatsBroadcastRevenueStats struct {
	TopHoursGraph StatsGraph
	RevenueGraph  StatsGraph
	Balances      *BroadcastRevenueBalances
	UsdRate       float64
}

func (*StatsBroadcastRevenueStats) CRC

type StatsBroadcastRevenueTransactions

type StatsBroadcastRevenueTransactions struct {
	Count        int32
	Transactions []BroadcastRevenueTransaction
}

func (*StatsBroadcastRevenueTransactions) CRC

type StatsBroadcastRevenueWithdrawalURL

type StatsBroadcastRevenueWithdrawalURL struct {
	URL string
}

func (*StatsBroadcastRevenueWithdrawalURL) CRC

type StatsBroadcastStats

type StatsBroadcastStats struct {
	Period                       *StatsDateRangeDays
	Followers                    *StatsAbsValueAndPrev
	ViewsPerPost                 *StatsAbsValueAndPrev
	SharesPerPost                *StatsAbsValueAndPrev
	ReactionsPerPost             *StatsAbsValueAndPrev
	ViewsPerStory                *StatsAbsValueAndPrev
	SharesPerStory               *StatsAbsValueAndPrev
	ReactionsPerStory            *StatsAbsValueAndPrev
	EnabledNotifications         *StatsPercentValue
	GrowthGraph                  StatsGraph
	FollowersGraph               StatsGraph
	MuteGraph                    StatsGraph
	TopHoursGraph                StatsGraph
	InteractionsGraph            StatsGraph
	IvInteractionsGraph          StatsGraph
	ViewsBySourceGraph           StatsGraph
	NewFollowersBySourceGraph    StatsGraph
	LanguagesGraph               StatsGraph
	ReactionsByEmotionGraph      StatsGraph
	StoryInteractionsGraph       StatsGraph
	StoryReactionsByEmotionGraph StatsGraph
	RecentPostsInteractions      []PostInteractionCounters
}

[Channel statistics](https://core.telegram.org/api/stats).

func (*StatsBroadcastStats) CRC

func (*StatsBroadcastStats) CRC() uint32

type StatsDateRangeDays

type StatsDateRangeDays struct {
	MinDate int32
	MaxDate int32
}

[Channel statistics](https://core.telegram.org/api/stats) date range

func (*StatsDateRangeDays) CRC

func (*StatsDateRangeDays) CRC() uint32

type StatsGetBroadcastRevenueStatsParams

type StatsGetBroadcastRevenueStatsParams struct {
	Dark    bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
}

func (*StatsGetBroadcastRevenueStatsParams) CRC

func (*StatsGetBroadcastRevenueStatsParams) FlagIndex

type StatsGetBroadcastRevenueTransactionsParams

type StatsGetBroadcastRevenueTransactionsParams struct {
	Channel InputChannel
	Offset  int32
	Limit   int32
}

func (*StatsGetBroadcastRevenueTransactionsParams) CRC

type StatsGetBroadcastRevenueWithdrawalURLParams

type StatsGetBroadcastRevenueWithdrawalURLParams struct {
	Channel  InputChannel
	Password InputCheckPasswordSRP
}

func (*StatsGetBroadcastRevenueWithdrawalURLParams) CRC

type StatsGetBroadcastStatsParams

type StatsGetBroadcastStatsParams struct {
	Dark    bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
}

func (*StatsGetBroadcastStatsParams) CRC

func (*StatsGetBroadcastStatsParams) FlagIndex

func (*StatsGetBroadcastStatsParams) FlagIndex() int

type StatsGetMegagroupStatsParams

type StatsGetMegagroupStatsParams struct {
	Dark    bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
}

func (*StatsGetMegagroupStatsParams) CRC

func (*StatsGetMegagroupStatsParams) FlagIndex

func (*StatsGetMegagroupStatsParams) FlagIndex() int

type StatsGetMessagePublicForwardsParams

type StatsGetMessagePublicForwardsParams struct {
	Channel InputChannel
	MsgID   int32
	Offset  string
	Limit   int32
}

func (*StatsGetMessagePublicForwardsParams) CRC

type StatsGetMessageStatsParams

type StatsGetMessageStatsParams struct {
	Dark    bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
	MsgID   int32
}

func (*StatsGetMessageStatsParams) CRC

func (*StatsGetMessageStatsParams) FlagIndex

func (*StatsGetMessageStatsParams) FlagIndex() int

type StatsGetStoryPublicForwardsParams

type StatsGetStoryPublicForwardsParams struct {
	Peer   InputPeer
	ID     int32
	Offset string
	Limit  int32
}

func (*StatsGetStoryPublicForwardsParams) CRC

type StatsGetStoryStatsParams

type StatsGetStoryStatsParams struct {
	Dark bool `tl:"flag:0,encoded_in_bitflags"`
	Peer InputPeer
	ID   int32
}

func (*StatsGetStoryStatsParams) CRC

func (*StatsGetStoryStatsParams) FlagIndex

func (*StatsGetStoryStatsParams) FlagIndex() int

type StatsGraph

type StatsGraph interface {
	tl.Object
	ImplementsStatsGraph()
}

type StatsGraphAsync

type StatsGraphAsync struct {
	Token string
}

This [channel statistics graph](https://core.telegram.org/api/stats) must be generated asynchronously using [stats.loadAsyncGraph](https://core.telegram.org/method/stats.loadAsyncGraph) to reduce server load

func (*StatsGraphAsync) CRC

func (*StatsGraphAsync) CRC() uint32

func (*StatsGraphAsync) ImplementsStatsGraph

func (*StatsGraphAsync) ImplementsStatsGraph()

type StatsGraphError

type StatsGraphError struct {
	Error string
}

An error occurred while generating the [statistics graph](https://core.telegram.org/api/stats)

func (*StatsGraphError) CRC

func (*StatsGraphError) CRC() uint32

func (*StatsGraphError) ImplementsStatsGraph

func (*StatsGraphError) ImplementsStatsGraph()

type StatsGraphObj

type StatsGraphObj struct {
	Json      *DataJson
	ZoomToken string `tl:"flag:0"`
}

[Channel statistics graph](https://core.telegram.org/api/stats)

func (*StatsGraphObj) CRC

func (*StatsGraphObj) CRC() uint32

func (*StatsGraphObj) FlagIndex

func (*StatsGraphObj) FlagIndex() int

func (*StatsGraphObj) ImplementsStatsGraph

func (*StatsGraphObj) ImplementsStatsGraph()

type StatsGroupTopAdmin

type StatsGroupTopAdmin struct {
	UserID  int64
	Deleted int32
	Kicked  int32
	Banned  int32
}

Information about an active admin in a supergroup

func (*StatsGroupTopAdmin) CRC

func (*StatsGroupTopAdmin) CRC() uint32

type StatsGroupTopInviter

type StatsGroupTopInviter struct {
	UserID      int64
	Invitations int32
}

Information about an active supergroup inviter

func (*StatsGroupTopInviter) CRC

type StatsGroupTopPoster

type StatsGroupTopPoster struct {
	UserID   int64
	Messages int32
	AvgChars int32
}

Information about an active user in a supergroup

func (*StatsGroupTopPoster) CRC

func (*StatsGroupTopPoster) CRC() uint32

type StatsLoadAsyncGraphParams

type StatsLoadAsyncGraphParams struct {
	Token string
	X     int64 `tl:"flag:0"`
}

func (*StatsLoadAsyncGraphParams) CRC

func (*StatsLoadAsyncGraphParams) FlagIndex

func (*StatsLoadAsyncGraphParams) FlagIndex() int

type StatsMegagroupStats

type StatsMegagroupStats struct {
	Period                  *StatsDateRangeDays
	Members                 *StatsAbsValueAndPrev
	Messages                *StatsAbsValueAndPrev
	Viewers                 *StatsAbsValueAndPrev
	Posters                 *StatsAbsValueAndPrev
	GrowthGraph             StatsGraph
	MembersGraph            StatsGraph
	NewMembersBySourceGraph StatsGraph
	LanguagesGraph          StatsGraph
	MessagesGraph           StatsGraph
	ActionsGraph            StatsGraph
	TopHoursGraph           StatsGraph
	WeekdaysGraph           StatsGraph
	TopPosters              []*StatsGroupTopPoster
	TopAdmins               []*StatsGroupTopAdmin
	TopInviters             []*StatsGroupTopInviter
	Users                   []User
}

Supergroup [statistics](https://core.telegram.org/api/stats)

func (*StatsMegagroupStats) CRC

func (*StatsMegagroupStats) CRC() uint32

type StatsMessageStats

type StatsMessageStats struct {
	ViewsGraph              StatsGraph
	ReactionsByEmotionGraph StatsGraph
}

Message statistics

func (*StatsMessageStats) CRC

func (*StatsMessageStats) CRC() uint32

type StatsPercentValue

type StatsPercentValue struct {
	Part  float64
	Total float64
}

[Channel statistics percentage](https://core.telegram.org/api/stats).<br> Compute the percentage simply by doing `part * total / 100`

func (*StatsPercentValue) CRC

func (*StatsPercentValue) CRC() uint32

type StatsPublicForwards

type StatsPublicForwards struct {
	Count      int32
	Forwards   []PublicForward
	NextOffset string `tl:"flag:0"`
	Chats      []Chat
	Users      []User
}

Contains info about the forwards of a [story](https://core.telegram.org/api/stories) as a message to public chats and reposts by public channels.

func (*StatsPublicForwards) CRC

func (*StatsPublicForwards) CRC() uint32

func (*StatsPublicForwards) FlagIndex

func (*StatsPublicForwards) FlagIndex() int

type StatsStoryStats

type StatsStoryStats struct {
	ViewsGraph              StatsGraph
	ReactionsByEmotionGraph StatsGraph
}

Contains [statistics](https://core.telegram.org/api/stats) about a [story](https://core.telegram.org/api/stories).

func (*StatsStoryStats) CRC

func (*StatsStoryStats) CRC() uint32

type StatsURL

type StatsURL struct {
	URL string
}

URL with chat statistics

func (*StatsURL) CRC

func (*StatsURL) CRC() uint32

type StickerKeyword

type StickerKeyword struct {
	DocumentID int64
	Keyword    []string
}

Keywords for a certain sticker

func (*StickerKeyword) CRC

func (*StickerKeyword) CRC() uint32

type StickerPack

type StickerPack struct {
	Emoticon  string
	Documents []int64
}

A stickerpack is a group of stickers associated to the same emoji.<br> It is <strong>not</strong> a sticker pack the way it is usually intended, you may be looking for a StickerSet(https://core.telegram.org/type/StickerSet).

func (*StickerPack) CRC

func (*StickerPack) CRC() uint32

type StickerSet

type StickerSet struct {
	Archived           bool  `tl:"flag:1,encoded_in_bitflags"`
	Official           bool  `tl:"flag:2,encoded_in_bitflags"`
	Masks              bool  `tl:"flag:3,encoded_in_bitflags"`
	Emojis             bool  `tl:"flag:7,encoded_in_bitflags"`
	TextColor          bool  `tl:"flag:9,encoded_in_bitflags"`
	ChannelEmojiStatus bool  `tl:"flag:10,encoded_in_bitflags"`
	Creator            bool  `tl:"flag:11,encoded_in_bitflags"`
	InstalledDate      int32 `tl:"flag:0"`
	ID                 int64
	AccessHash         int64
	Title              string
	ShortName          string
	Thumbs             []PhotoSize `tl:"flag:4"`
	ThumbDcID          int32       `tl:"flag:4"`
	ThumbVersion       int32       `tl:"flag:4"`
	ThumbDocumentID    int64       `tl:"flag:8"`
	Count              int32
	Hash               int32
}

Represents a stickerset (stickerpack)

func (*StickerSet) CRC

func (*StickerSet) CRC() uint32

func (*StickerSet) FlagIndex

func (*StickerSet) FlagIndex() int

type StickerSetCovered

type StickerSetCovered interface {
	tl.Object
	ImplementsStickerSetCovered()
}

type StickerSetCoveredObj

type StickerSetCoveredObj struct {
	Set   *StickerSet
	Cover Document
}

Stickerset with a single sticker as preview

func (*StickerSetCoveredObj) CRC

func (*StickerSetCoveredObj) ImplementsStickerSetCovered

func (*StickerSetCoveredObj) ImplementsStickerSetCovered()

type StickerSetFullCovered

type StickerSetFullCovered struct {
	Set       *StickerSet
	Packs     []*StickerPack
	Keywords  []*StickerKeyword
	Documents []Document
}

Stickerset preview with all stickers of the stickerset included.<br> Currently used only for [custom emoji stickersets](https://core.telegram.org/api/custom-emoji), to avoid a further call to [messages.getStickerSet](https://core.telegram.org/method/messages.getStickerSet).

func (*StickerSetFullCovered) CRC

func (*StickerSetFullCovered) ImplementsStickerSetCovered

func (*StickerSetFullCovered) ImplementsStickerSetCovered()

type StickerSetMultiCovered

type StickerSetMultiCovered struct {
	Set    *StickerSet
	Covers []Document
}

Stickerset, with multiple stickers as preview

func (*StickerSetMultiCovered) CRC

func (*StickerSetMultiCovered) ImplementsStickerSetCovered

func (*StickerSetMultiCovered) ImplementsStickerSetCovered()

type StickerSetNoCovered

type StickerSetNoCovered struct {
	Set *StickerSet
}

Just the stickerset information, with no previews.

func (*StickerSetNoCovered) CRC

func (*StickerSetNoCovered) CRC() uint32

func (*StickerSetNoCovered) ImplementsStickerSetCovered

func (*StickerSetNoCovered) ImplementsStickerSetCovered()

type StickersAddStickerToSetParams

type StickersAddStickerToSetParams struct {
	Stickerset InputStickerSet
	Sticker    *InputStickerSetItem
}

func (*StickersAddStickerToSetParams) CRC

type StickersChangeStickerParams

type StickersChangeStickerParams struct {
	Sticker    InputDocument
	Emoji      string      `tl:"flag:0"`
	MaskCoords *MaskCoords `tl:"flag:1"`
	Keywords   string      `tl:"flag:2"`
}

func (*StickersChangeStickerParams) CRC

func (*StickersChangeStickerParams) FlagIndex

func (*StickersChangeStickerParams) FlagIndex() int

type StickersChangeStickerPositionParams

type StickersChangeStickerPositionParams struct {
	Sticker  InputDocument
	Position int32
}

func (*StickersChangeStickerPositionParams) CRC

type StickersCheckShortNameParams

type StickersCheckShortNameParams struct {
	ShortName string
}

func (*StickersCheckShortNameParams) CRC

type StickersCreateStickerSetParams

type StickersCreateStickerSetParams struct {
	Masks     bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis    bool `tl:"flag:5,encoded_in_bitflags"`
	TextColor bool `tl:"flag:6,encoded_in_bitflags"`
	UserID    InputUser
	Title     string
	ShortName string
	Thumb     InputDocument `tl:"flag:2"`
	Stickers  []*InputStickerSetItem
	Software  string `tl:"flag:3"`
}

func (*StickersCreateStickerSetParams) CRC

func (*StickersCreateStickerSetParams) FlagIndex

func (*StickersCreateStickerSetParams) FlagIndex() int

type StickersDeleteStickerSetParams

type StickersDeleteStickerSetParams struct {
	Stickerset InputStickerSet
}

func (*StickersDeleteStickerSetParams) CRC

type StickersRemoveStickerFromSetParams

type StickersRemoveStickerFromSetParams struct {
	Sticker InputDocument
}

func (*StickersRemoveStickerFromSetParams) CRC

type StickersRenameStickerSetParams

type StickersRenameStickerSetParams struct {
	Stickerset InputStickerSet
	Title      string
}

func (*StickersRenameStickerSetParams) CRC

type StickersReplaceStickerParams

type StickersReplaceStickerParams struct {
	Sticker    InputDocument
	NewSticker *InputStickerSetItem
}

func (*StickersReplaceStickerParams) CRC

type StickersSetStickerSetThumbParams

type StickersSetStickerSetThumbParams struct {
	Stickerset      InputStickerSet
	Thumb           InputDocument `tl:"flag:0"`
	ThumbDocumentID int64         `tl:"flag:1"`
}

func (*StickersSetStickerSetThumbParams) CRC

func (*StickersSetStickerSetThumbParams) FlagIndex

type StickersSuggestShortNameParams

type StickersSuggestShortNameParams struct {
	Title string
}

func (*StickersSuggestShortNameParams) CRC

type StickersSuggestedShortName

type StickersSuggestedShortName struct {
	ShortName string
}

A suggested short name for a stickerpack

func (*StickersSuggestedShortName) CRC

type StorageFileType

type StorageFileType uint32
const (
	StorageFileGif     StorageFileType = 0xcae1aadf
	StorageFileJpeg    StorageFileType = 0x7efe0e
	StorageFileMov     StorageFileType = 0x4b09ebbc
	StorageFileMp3     StorageFileType = 0x528a0677
	StorageFileMp4     StorageFileType = 0xb3cea0e4
	StorageFilePartial StorageFileType = 0x40bc6f52
	StorageFilePdf     StorageFileType = 0xae1e508d
	StorageFilePng     StorageFileType = 0xa4f63c0
	StorageFileUnknown StorageFileType = 0xaa963b05
	StorageFileWebp    StorageFileType = 0x1081464c
)

func (StorageFileType) CRC

func (e StorageFileType) CRC() uint32

func (StorageFileType) String

func (e StorageFileType) String() string

type StoriesActivateStealthModeParams

type StoriesActivateStealthModeParams struct {
	Past   bool `tl:"flag:0,encoded_in_bitflags"`
	Future bool `tl:"flag:1,encoded_in_bitflags"`
}

func (*StoriesActivateStealthModeParams) CRC

func (*StoriesActivateStealthModeParams) FlagIndex

type StoriesAllStories

type StoriesAllStories interface {
	tl.Object
	ImplementsStoriesAllStories()
}

type StoriesAllStoriesNotModified

type StoriesAllStoriesNotModified struct {
	State       string
	StealthMode *StoriesStealthMode
}

The list of active (or active and hidden) [stories](https://core.telegram.org/api/stories#watching-stories) has not changed.

func (*StoriesAllStoriesNotModified) CRC

func (*StoriesAllStoriesNotModified) ImplementsStoriesAllStories

func (*StoriesAllStoriesNotModified) ImplementsStoriesAllStories()

type StoriesAllStoriesObj

type StoriesAllStoriesObj struct {
	HasMore     bool `tl:"flag:0,encoded_in_bitflags"`
	Count       int32
	State       string
	PeerStories []*PeerStories
	Chats       []Chat
	Users       []User
	StealthMode *StoriesStealthMode
}

Full list of active (or active and hidden) [stories](https://core.telegram.org/api/stories#watching-stories).

func (*StoriesAllStoriesObj) CRC

func (*StoriesAllStoriesObj) FlagIndex

func (*StoriesAllStoriesObj) FlagIndex() int

func (*StoriesAllStoriesObj) ImplementsStoriesAllStories

func (*StoriesAllStoriesObj) ImplementsStoriesAllStories()

type StoriesCanSendStoryParams

type StoriesCanSendStoryParams struct {
	Peer InputPeer
}

func (*StoriesCanSendStoryParams) CRC

type StoriesDeleteStoriesParams

type StoriesDeleteStoriesParams struct {
	Peer InputPeer
	ID   []int32
}

func (*StoriesDeleteStoriesParams) CRC

type StoriesEditStoryParams

type StoriesEditStoryParams struct {
	Peer         InputPeer
	ID           int32
	Media        InputMedia         `tl:"flag:0"`
	MediaAreas   []MediaArea        `tl:"flag:3"`
	Caption      string             `tl:"flag:1"`
	Entities     []MessageEntity    `tl:"flag:1"`
	PrivacyRules []InputPrivacyRule `tl:"flag:2"`
}

func (*StoriesEditStoryParams) CRC

func (*StoriesEditStoryParams) FlagIndex

func (*StoriesEditStoryParams) FlagIndex() int

type StoriesExportStoryLinkParams

type StoriesExportStoryLinkParams struct {
	Peer InputPeer
	ID   int32
}

func (*StoriesExportStoryLinkParams) CRC

type StoriesFoundStories

type StoriesFoundStories struct {
	Count      int32
	Stories    []*FoundStory
	NextOffset string `tl:"flag:0"`
	Chats      []Chat
	Users      []User
}

func (*StoriesFoundStories) CRC

func (*StoriesFoundStories) CRC() uint32

func (*StoriesFoundStories) FlagIndex

func (*StoriesFoundStories) FlagIndex() int

type StoriesGetAllReadPeerStoriesParams

type StoriesGetAllReadPeerStoriesParams struct{}

func (*StoriesGetAllReadPeerStoriesParams) CRC

type StoriesGetAllStoriesParams

type StoriesGetAllStoriesParams struct {
	Next   bool   `tl:"flag:1,encoded_in_bitflags"`
	Hidden bool   `tl:"flag:2,encoded_in_bitflags"`
	State  string `tl:"flag:0"`
}

func (*StoriesGetAllStoriesParams) CRC

func (*StoriesGetAllStoriesParams) FlagIndex

func (*StoriesGetAllStoriesParams) FlagIndex() int

type StoriesGetChatsToSendParams

type StoriesGetChatsToSendParams struct{}

func (*StoriesGetChatsToSendParams) CRC

type StoriesGetPeerMaxIDsParams

type StoriesGetPeerMaxIDsParams struct {
	ID []InputPeer
}

func (*StoriesGetPeerMaxIDsParams) CRC

type StoriesGetPeerStoriesParams

type StoriesGetPeerStoriesParams struct {
	Peer InputPeer
}

func (*StoriesGetPeerStoriesParams) CRC

type StoriesGetPinnedStoriesParams

type StoriesGetPinnedStoriesParams struct {
	Peer     InputPeer
	OffsetID int32
	Limit    int32
}

func (*StoriesGetPinnedStoriesParams) CRC

type StoriesGetStoriesArchiveParams

type StoriesGetStoriesArchiveParams struct {
	Peer     InputPeer
	OffsetID int32
	Limit    int32
}

func (*StoriesGetStoriesArchiveParams) CRC

type StoriesGetStoriesByIDParams

type StoriesGetStoriesByIDParams struct {
	Peer InputPeer
	ID   []int32
}

func (*StoriesGetStoriesByIDParams) CRC

type StoriesGetStoriesViewsParams

type StoriesGetStoriesViewsParams struct {
	Peer InputPeer
	ID   []int32
}

func (*StoriesGetStoriesViewsParams) CRC

type StoriesGetStoryReactionsListParams

type StoriesGetStoryReactionsListParams struct {
	ForwardsFirst bool `tl:"flag:2,encoded_in_bitflags"`
	Peer          InputPeer
	ID            int32
	Reaction      Reaction `tl:"flag:0"`
	Offset        string   `tl:"flag:1"`
	Limit         int32
}

func (*StoriesGetStoryReactionsListParams) CRC

func (*StoriesGetStoryReactionsListParams) FlagIndex

type StoriesGetStoryViewsListParams

type StoriesGetStoryViewsListParams struct {
	JustContacts   bool `tl:"flag:0,encoded_in_bitflags"`
	ReactionsFirst bool `tl:"flag:2,encoded_in_bitflags"`
	ForwardsFirst  bool `tl:"flag:3,encoded_in_bitflags"`
	Peer           InputPeer
	Q              string `tl:"flag:1"`
	ID             int32
	Offset         string
	Limit          int32
}

func (*StoriesGetStoryViewsListParams) CRC

func (*StoriesGetStoryViewsListParams) FlagIndex

func (*StoriesGetStoryViewsListParams) FlagIndex() int

type StoriesIncrementStoryViewsParams

type StoriesIncrementStoryViewsParams struct {
	Peer InputPeer
	ID   []int32
}

func (*StoriesIncrementStoryViewsParams) CRC

type StoriesPeerStories

type StoriesPeerStories struct {
	Stories *PeerStories
	Chats   []Chat
	Users   []User
}

[Active story list](https://core.telegram.org/api/stories#watching-stories) of a specific peer.

func (*StoriesPeerStories) CRC

func (*StoriesPeerStories) CRC() uint32

type StoriesReadStoriesParams

type StoriesReadStoriesParams struct {
	Peer  InputPeer
	MaxID int32
}

func (*StoriesReadStoriesParams) CRC

type StoriesReportParams

type StoriesReportParams struct {
	Peer    InputPeer
	ID      []int32
	Reason  ReportReason
	Message string
}

func (*StoriesReportParams) CRC

func (*StoriesReportParams) CRC() uint32

type StoriesSearchPostsParams

type StoriesSearchPostsParams struct {
	Hashtag string    `tl:"flag:0"`
	Area    MediaArea `tl:"flag:1"`
	Offset  string
	Limit   int32
}

func (*StoriesSearchPostsParams) CRC

func (*StoriesSearchPostsParams) FlagIndex

func (*StoriesSearchPostsParams) FlagIndex() int

type StoriesSendReactionParams

type StoriesSendReactionParams struct {
	AddToRecent bool `tl:"flag:0,encoded_in_bitflags"`
	Peer        InputPeer
	StoryID     int32
	Reaction    Reaction
}

func (*StoriesSendReactionParams) CRC

func (*StoriesSendReactionParams) FlagIndex

func (*StoriesSendReactionParams) FlagIndex() int

type StoriesSendStoryParams

type StoriesSendStoryParams struct {
	Pinned       bool `tl:"flag:2,encoded_in_bitflags"`
	Noforwards   bool `tl:"flag:4,encoded_in_bitflags"`
	FwdModified  bool `tl:"flag:7,encoded_in_bitflags"`
	Peer         InputPeer
	Media        InputMedia
	MediaAreas   []MediaArea     `tl:"flag:5"`
	Caption      string          `tl:"flag:0"`
	Entities     []MessageEntity `tl:"flag:1"`
	PrivacyRules []InputPrivacyRule
	RandomID     int64
	Period       int32     `tl:"flag:3"`
	FwdFromID    InputPeer `tl:"flag:6"`
	FwdFromStory int32     `tl:"flag:6"`
}

func (*StoriesSendStoryParams) CRC

func (*StoriesSendStoryParams) FlagIndex

func (*StoriesSendStoryParams) FlagIndex() int

type StoriesStealthMode

type StoriesStealthMode struct {
	ActiveUntilDate   int32 `tl:"flag:0"`
	CooldownUntilDate int32 `tl:"flag:1"`
}

Information about the current [stealth mode](https://core.telegram.org/api/stories#stealth-mode) session.

func (*StoriesStealthMode) CRC

func (*StoriesStealthMode) CRC() uint32

func (*StoriesStealthMode) FlagIndex

func (*StoriesStealthMode) FlagIndex() int

type StoriesStories

type StoriesStories struct {
	Count       int32
	Stories     []StoryItem
	PinnedToTop []int32 `tl:"flag:0"`
	Chats       []Chat
	Users       []User
}

List of [stories](https://core.telegram.org/api/stories#pinned-or-archived-stories)

func (*StoriesStories) CRC

func (*StoriesStories) CRC() uint32

func (*StoriesStories) FlagIndex

func (*StoriesStories) FlagIndex() int

type StoriesStoryReactionsList

type StoriesStoryReactionsList struct {
	Count      int32
	Reactions  []StoryReaction
	Chats      []Chat
	Users      []User
	NextOffset string `tl:"flag:0"`
}

List of peers that reacted to or intercated with a specific [story](https://core.telegram.org/api/stories)

func (*StoriesStoryReactionsList) CRC

func (*StoriesStoryReactionsList) FlagIndex

func (*StoriesStoryReactionsList) FlagIndex() int

type StoriesStoryViews

type StoriesStoryViews struct {
	Views []*StoryViews
	Users []User
}

Reaction and view counters for a list of [stories](https://core.telegram.org/api/stories)

func (*StoriesStoryViews) CRC

func (*StoriesStoryViews) CRC() uint32

type StoriesStoryViewsList

type StoriesStoryViewsList struct {
	Count          int32
	ViewsCount     int32
	ForwardsCount  int32
	ReactionsCount int32
	Views          []StoryView
	Chats          []Chat
	Users          []User
	NextOffset     string `tl:"flag:0"`
}

Reaction and view counters for a [story](https://core.telegram.org/api/stories)

func (*StoriesStoryViewsList) CRC

func (*StoriesStoryViewsList) FlagIndex

func (*StoriesStoryViewsList) FlagIndex() int

type StoriesToggleAllStoriesHiddenParams

type StoriesToggleAllStoriesHiddenParams struct {
	Hidden bool
}

func (*StoriesToggleAllStoriesHiddenParams) CRC

type StoriesTogglePeerStoriesHiddenParams

type StoriesTogglePeerStoriesHiddenParams struct {
	Peer   InputPeer
	Hidden bool
}

func (*StoriesTogglePeerStoriesHiddenParams) CRC

type StoriesTogglePinnedParams

type StoriesTogglePinnedParams struct {
	Peer   InputPeer
	ID     []int32
	Pinned bool
}

func (*StoriesTogglePinnedParams) CRC

type StoriesTogglePinnedToTopParams

type StoriesTogglePinnedToTopParams struct {
	Peer InputPeer
	ID   []int32
}

func (*StoriesTogglePinnedToTopParams) CRC

type StoryFwdHeader

type StoryFwdHeader struct {
	Modified bool   `tl:"flag:3,encoded_in_bitflags"`
	From     Peer   `tl:"flag:0"`
	FromName string `tl:"flag:1"`
	StoryID  int32  `tl:"flag:2"`
}

Contains info about the original poster of a reposted story.

func (*StoryFwdHeader) CRC

func (*StoryFwdHeader) CRC() uint32

func (*StoryFwdHeader) FlagIndex

func (*StoryFwdHeader) FlagIndex() int

type StoryItem

type StoryItem interface {
	tl.Object
	ImplementsStoryItem()
}

type StoryItemDeleted

type StoryItemDeleted struct {
	ID int32
}

Represents a previously active story, that was deleted

func (*StoryItemDeleted) CRC

func (*StoryItemDeleted) CRC() uint32

func (*StoryItemDeleted) ImplementsStoryItem

func (*StoryItemDeleted) ImplementsStoryItem()

type StoryItemObj

type StoryItemObj struct {
	Pinned           bool `tl:"flag:5,encoded_in_bitflags"`
	Public           bool `tl:"flag:7,encoded_in_bitflags"`
	CloseFriends     bool `tl:"flag:8,encoded_in_bitflags"`
	Min              bool `tl:"flag:9,encoded_in_bitflags"`
	Noforwards       bool `tl:"flag:10,encoded_in_bitflags"`
	Edited           bool `tl:"flag:11,encoded_in_bitflags"`
	Contacts         bool `tl:"flag:12,encoded_in_bitflags"`
	SelectedContacts bool `tl:"flag:13,encoded_in_bitflags"`
	Out              bool `tl:"flag:16,encoded_in_bitflags"`
	ID               int32
	Date             int32
	FromID           Peer            `tl:"flag:18"`
	FwdFrom          *StoryFwdHeader `tl:"flag:17"`
	ExpireDate       int32
	Caption          string          `tl:"flag:0"`
	Entities         []MessageEntity `tl:"flag:1"`
	Media            MessageMedia
	MediaAreas       []MediaArea   `tl:"flag:14"`
	Privacy          []PrivacyRule `tl:"flag:2"`
	Views            *StoryViews   `tl:"flag:3"`
	SentReaction     Reaction      `tl:"flag:15"`
}

Represents a [story](https://core.telegram.org/api/stories).

func (*StoryItemObj) CRC

func (*StoryItemObj) CRC() uint32

func (*StoryItemObj) FlagIndex

func (*StoryItemObj) FlagIndex() int

func (*StoryItemObj) ImplementsStoryItem

func (*StoryItemObj) ImplementsStoryItem()

type StoryItemSkipped

type StoryItemSkipped struct {
	CloseFriends bool `tl:"flag:8,encoded_in_bitflags"`
	ID           int32
	Date         int32
	ExpireDate   int32
}

Represents an active story, whose full information was omitted for space and performance reasons; use [stories.getStoriesByID](https://core.telegram.org/method/stories.getStoriesByID) to fetch full info about the skipped story when and if needed.

func (*StoryItemSkipped) CRC

func (*StoryItemSkipped) CRC() uint32

func (*StoryItemSkipped) FlagIndex

func (*StoryItemSkipped) FlagIndex() int

func (*StoryItemSkipped) ImplementsStoryItem

func (*StoryItemSkipped) ImplementsStoryItem()

type StoryReaction

type StoryReaction interface {
	tl.Object
	ImplementsStoryReaction()
}

type StoryReactionObj

type StoryReactionObj struct {
	PeerID   Peer
	Date     int32
	Reaction Reaction
}

How a certain peer reacted to a story

func (*StoryReactionObj) CRC

func (*StoryReactionObj) CRC() uint32

func (*StoryReactionObj) ImplementsStoryReaction

func (*StoryReactionObj) ImplementsStoryReaction()

type StoryReactionPublicForward

type StoryReactionPublicForward struct {
	Message Message
}

A certain peer has forwarded the story as a message to a public chat or channel.

func (*StoryReactionPublicForward) CRC

func (*StoryReactionPublicForward) ImplementsStoryReaction

func (*StoryReactionPublicForward) ImplementsStoryReaction()

type StoryReactionPublicRepost

type StoryReactionPublicRepost struct {
	PeerID Peer
	Story  StoryItem
}

A certain peer has reposted the story.

func (*StoryReactionPublicRepost) CRC

func (*StoryReactionPublicRepost) ImplementsStoryReaction

func (*StoryReactionPublicRepost) ImplementsStoryReaction()

type StoryView

type StoryView interface {
	tl.Object
	ImplementsStoryView()
}

type StoryViewObj

type StoryViewObj struct {
	Blocked              bool `tl:"flag:0,encoded_in_bitflags"`
	BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"`
	UserID               int64
	Date                 int32
	Reaction             Reaction `tl:"flag:2"`
}

[Story](https://core.telegram.org/api/stories) view date and reaction information

func (*StoryViewObj) CRC

func (*StoryViewObj) CRC() uint32

func (*StoryViewObj) FlagIndex

func (*StoryViewObj) FlagIndex() int

func (*StoryViewObj) ImplementsStoryView

func (*StoryViewObj) ImplementsStoryView()

type StoryViewPublicForward

type StoryViewPublicForward struct {
	Blocked              bool `tl:"flag:0,encoded_in_bitflags"`
	BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"`
	Message              Message
}

A certain peer has forwarded the story as a message to a public chat or channel.

func (*StoryViewPublicForward) CRC

func (*StoryViewPublicForward) FlagIndex

func (*StoryViewPublicForward) FlagIndex() int

func (*StoryViewPublicForward) ImplementsStoryView

func (*StoryViewPublicForward) ImplementsStoryView()

type StoryViewPublicRepost

type StoryViewPublicRepost struct {
	Blocked              bool `tl:"flag:0,encoded_in_bitflags"`
	BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"`
	PeerID               Peer
	Story                StoryItem
}

A certain peer has reposted the story.

func (*StoryViewPublicRepost) CRC

func (*StoryViewPublicRepost) FlagIndex

func (*StoryViewPublicRepost) FlagIndex() int

func (*StoryViewPublicRepost) ImplementsStoryView

func (*StoryViewPublicRepost) ImplementsStoryView()

type StoryViews

type StoryViews struct {
	HasViewers     bool `tl:"flag:1,encoded_in_bitflags"`
	ViewsCount     int32
	ForwardsCount  int32            `tl:"flag:2"`
	Reactions      []*ReactionCount `tl:"flag:3"`
	ReactionsCount int32            `tl:"flag:4"`
	RecentViewers  []int64          `tl:"flag:0"`
}

Aggregated view and reaction information of a [story](https://core.telegram.org/api/stories).

func (*StoryViews) CRC

func (*StoryViews) CRC() uint32

func (*StoryViews) FlagIndex

func (*StoryViews) FlagIndex() int

type Tag

type Tag struct {
	Type   string `json:"type"`
	Length int32  `json:"length"`
	Offset int32  `json:"offset"`

	Attrs map[string]string
	// contains filtered or unexported fields
}

Tag represents a tag in the HTML string, including its type, length, and offset and whether it has nested tags, and its attrs

type TextAnchor

type TextAnchor struct {
	Text RichText
	Name string
}

Text linking to another section of the page

func (*TextAnchor) CRC

func (*TextAnchor) CRC() uint32

func (*TextAnchor) ImplementsRichText

func (*TextAnchor) ImplementsRichText()

type TextBold

type TextBold struct {
	Text RichText
}

<strong>Bold</strong> text

func (*TextBold) CRC

func (*TextBold) CRC() uint32

func (*TextBold) ImplementsRichText

func (*TextBold) ImplementsRichText()

type TextConcat

type TextConcat struct {
	Texts []RichText
}

Concatenation of rich texts

func (*TextConcat) CRC

func (*TextConcat) CRC() uint32

func (*TextConcat) ImplementsRichText

func (*TextConcat) ImplementsRichText()

type TextEmail

type TextEmail struct {
	Text  RichText
	Email string
}

Rich text email link

func (*TextEmail) CRC

func (*TextEmail) CRC() uint32

func (*TextEmail) ImplementsRichText

func (*TextEmail) ImplementsRichText()

type TextEmpty

type TextEmpty struct{}

Empty rich text element

func (*TextEmpty) CRC

func (*TextEmpty) CRC() uint32

func (*TextEmpty) ImplementsRichText

func (*TextEmpty) ImplementsRichText()

type TextFixed

type TextFixed struct {
	Text RichText
}

`fixed-width` rich text

func (*TextFixed) CRC

func (*TextFixed) CRC() uint32

func (*TextFixed) ImplementsRichText

func (*TextFixed) ImplementsRichText()

type TextImage

type TextImage struct {
	DocumentID int64
	W          int32
	H          int32
}

Inline image

func (*TextImage) CRC

func (*TextImage) CRC() uint32

func (*TextImage) ImplementsRichText

func (*TextImage) ImplementsRichText()

type TextItalic

type TextItalic struct {
	Text RichText
}

<em>Italic</em> text

func (*TextItalic) CRC

func (*TextItalic) CRC() uint32

func (*TextItalic) ImplementsRichText

func (*TextItalic) ImplementsRichText()

type TextMarked

type TextMarked struct {
	Text RichText
}

Highlighted text

func (*TextMarked) CRC

func (*TextMarked) CRC() uint32

func (*TextMarked) ImplementsRichText

func (*TextMarked) ImplementsRichText()

type TextPhone

type TextPhone struct {
	Text  RichText
	Phone string
}

Rich text linked to a phone number

func (*TextPhone) CRC

func (*TextPhone) CRC() uint32

func (*TextPhone) ImplementsRichText

func (*TextPhone) ImplementsRichText()

type TextPlain

type TextPlain struct {
	Text string
}

Plain text

func (*TextPlain) CRC

func (*TextPlain) CRC() uint32

func (*TextPlain) ImplementsRichText

func (*TextPlain) ImplementsRichText()

type TextStrike

type TextStrike struct {
	Text RichText
}

<del>Strikethrough</del> text

func (*TextStrike) CRC

func (*TextStrike) CRC() uint32

func (*TextStrike) ImplementsRichText

func (*TextStrike) ImplementsRichText()

type TextSubscript

type TextSubscript struct {
	Text RichText
}

Subscript text

func (*TextSubscript) CRC

func (*TextSubscript) CRC() uint32

func (*TextSubscript) ImplementsRichText

func (*TextSubscript) ImplementsRichText()

type TextSuperscript

type TextSuperscript struct {
	Text RichText
}

Superscript text

func (*TextSuperscript) CRC

func (*TextSuperscript) CRC() uint32

func (*TextSuperscript) ImplementsRichText

func (*TextSuperscript) ImplementsRichText()

type TextURL

type TextURL struct {
	Text      RichText
	URL       string
	WebpageID int64
}

Link

func (*TextURL) CRC

func (*TextURL) CRC() uint32

func (*TextURL) ImplementsRichText

func (*TextURL) ImplementsRichText()

type TextUnderline

type TextUnderline struct {
	Text RichText
}

Underlined text

func (*TextUnderline) CRC

func (*TextUnderline) CRC() uint32

func (*TextUnderline) ImplementsRichText

func (*TextUnderline) ImplementsRichText()

type TextWithEntities

type TextWithEntities struct {
	Text     string
	Entities []MessageEntity
}

Styled text with [message entities](https://core.telegram.org/api/entities)

func (*TextWithEntities) CRC

func (*TextWithEntities) CRC() uint32

type Theme

type Theme struct {
	Creator       bool `tl:"flag:0,encoded_in_bitflags"`
	Default       bool `tl:"flag:1,encoded_in_bitflags"`
	ForChat       bool `tl:"flag:5,encoded_in_bitflags"`
	ID            int64
	AccessHash    int64
	Slug          string
	Title         string
	Document      Document         `tl:"flag:2"`
	Settings      []*ThemeSettings `tl:"flag:3"`
	Emoticon      string           `tl:"flag:6"`
	InstallsCount int32            `tl:"flag:4"`
}

Theme

func (*Theme) CRC

func (*Theme) CRC() uint32

func (*Theme) FlagIndex

func (*Theme) FlagIndex() int

type ThemeSettings

type ThemeSettings struct {
	MessageColorsAnimated bool `tl:"flag:2,encoded_in_bitflags"`
	BaseTheme             BaseTheme
	AccentColor           int32
	OutboxAccentColor     int32     `tl:"flag:3"`
	MessageColors         []int32   `tl:"flag:0"`
	Wallpaper             WallPaper `tl:"flag:1"`
}

Theme settings

func (*ThemeSettings) CRC

func (*ThemeSettings) CRC() uint32

func (*ThemeSettings) FlagIndex

func (*ThemeSettings) FlagIndex() int

type Timezone

type Timezone struct {
	ID        string
	Name      string
	UtcOffset int32
}

func (*Timezone) CRC

func (*Timezone) CRC() uint32

type TitleOptions

type TitleOptions struct {
	LastName string `json:"last_name,omitempty"`
	About    string `json:"about,omitempty"`
}

type TopPeer

type TopPeer struct {
	Peer   Peer
	Rating float64
}

Top peer

func (*TopPeer) CRC

func (*TopPeer) CRC() uint32

type TopPeerCategory

type TopPeerCategory uint32
const (
	TopPeerCategoryBotsApp        TopPeerCategory = 0xfd9e7bec
	TopPeerCategoryBotsInline     TopPeerCategory = 0x148677e2
	TopPeerCategoryBotsPm         TopPeerCategory = 0xab661b5b
	TopPeerCategoryChannels       TopPeerCategory = 0x161d9628
	TopPeerCategoryCorrespondents TopPeerCategory = 0x637b7ed
	TopPeerCategoryForwardChats   TopPeerCategory = 0xfbeec0f0
	TopPeerCategoryForwardUsers   TopPeerCategory = 0xa8406ca9
	TopPeerCategoryGroups         TopPeerCategory = 0xbd17a14a
	TopPeerCategoryPhoneCalls     TopPeerCategory = 0x1e76a78c
)

func (TopPeerCategory) CRC

func (e TopPeerCategory) CRC() uint32

func (TopPeerCategory) String

func (e TopPeerCategory) String() string

type TopPeerCategoryPeers

type TopPeerCategoryPeers struct {
	Category TopPeerCategory
	Count    int32
	Peers    []*TopPeer
}

Top peer category

func (*TopPeerCategoryPeers) CRC

type URLAuthResult

type URLAuthResult interface {
	tl.Object
	ImplementsURLAuthResult()
}

type URLAuthResultAccepted

type URLAuthResultAccepted struct {
	URL string
}

Details about an accepted authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)

func (*URLAuthResultAccepted) CRC

func (*URLAuthResultAccepted) ImplementsURLAuthResult

func (*URLAuthResultAccepted) ImplementsURLAuthResult()

type URLAuthResultDefault

type URLAuthResultDefault struct{}

Details about an accepted authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)

func (*URLAuthResultDefault) CRC

func (*URLAuthResultDefault) ImplementsURLAuthResult

func (*URLAuthResultDefault) ImplementsURLAuthResult()

type URLAuthResultRequest

type URLAuthResultRequest struct {
	RequestWriteAccess bool `tl:"flag:0,encoded_in_bitflags"`
	Bot                User
	Domain             string
}

Details about the authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)

func (*URLAuthResultRequest) CRC

func (*URLAuthResultRequest) FlagIndex

func (*URLAuthResultRequest) FlagIndex() int

func (*URLAuthResultRequest) ImplementsURLAuthResult

func (*URLAuthResultRequest) ImplementsURLAuthResult()

type Update

type Update interface {
	tl.Object
	ImplementsUpdate()
}

type UpdateAttachMenuBots

type UpdateAttachMenuBots struct{}

The list of installed [attachment menu entries »](https://core.telegram.org/api/bots/attach) has changed, use [messages.getAttachMenuBots](https://core.telegram.org/method/messages.getAttachMenuBots) to fetch the updated list.

func (*UpdateAttachMenuBots) CRC

func (*UpdateAttachMenuBots) ImplementsUpdate

func (*UpdateAttachMenuBots) ImplementsUpdate()

type UpdateAutoSaveSettings

type UpdateAutoSaveSettings struct{}

Media autosave settings have changed and must be refetched using [account.getAutoSaveSettings](https://core.telegram.org/method/account.getAutoSaveSettings).

func (*UpdateAutoSaveSettings) CRC

func (*UpdateAutoSaveSettings) ImplementsUpdate

func (*UpdateAutoSaveSettings) ImplementsUpdate()

type UpdateBotBusinessConnect

type UpdateBotBusinessConnect struct {
	Connection *BotBusinessConnection
	Qts        int32
}

func (*UpdateBotBusinessConnect) CRC

func (*UpdateBotBusinessConnect) ImplementsUpdate

func (*UpdateBotBusinessConnect) ImplementsUpdate()

type UpdateBotCallbackQuery

type UpdateBotCallbackQuery struct {
	QueryID       int64
	UserID        int64
	Peer          Peer
	MsgID         int32
	ChatInstance  int64
	Data          []byte `tl:"flag:0"`
	GameShortName string `tl:"flag:1"`
}

A callback button was pressed, and the button data was sent to the bot that created the button

func (*UpdateBotCallbackQuery) CRC

func (*UpdateBotCallbackQuery) FlagIndex

func (*UpdateBotCallbackQuery) FlagIndex() int

func (*UpdateBotCallbackQuery) ImplementsUpdate

func (*UpdateBotCallbackQuery) ImplementsUpdate()

type UpdateBotChatBoost

type UpdateBotChatBoost struct {
	Peer  Peer
	Boost *Boost
	Qts   int32
}

A [channel boost](https://core.telegram.org/api/boost) has changed (bots only)

func (*UpdateBotChatBoost) CRC

func (*UpdateBotChatBoost) CRC() uint32

func (*UpdateBotChatBoost) ImplementsUpdate

func (*UpdateBotChatBoost) ImplementsUpdate()

type UpdateBotChatInviteRequester

type UpdateBotChatInviteRequester struct {
	Peer   Peer
	Date   int32
	UserID int64
	About  string
	Invite ExportedChatInvite
	Qts    int32
}

Someone has requested to join a chat or channel (bots only, users will receive an [updatePendingJoinRequests](https://core.telegram.org/constructor/updatePendingJoinRequests), instead)

func (*UpdateBotChatInviteRequester) CRC

func (*UpdateBotChatInviteRequester) ImplementsUpdate

func (*UpdateBotChatInviteRequester) ImplementsUpdate()

type UpdateBotCommands

type UpdateBotCommands struct {
	Peer     Peer
	BotID    int64
	Commands []*BotCommand
}

The [command set](https://core.telegram.org/api/bots/commands) of a certain bot in a certain chat has changed.

func (*UpdateBotCommands) CRC

func (*UpdateBotCommands) CRC() uint32

func (*UpdateBotCommands) ImplementsUpdate

func (*UpdateBotCommands) ImplementsUpdate()

type UpdateBotDeleteBusinessMessage

type UpdateBotDeleteBusinessMessage struct {
	ConnectionID string
	Peer         Peer
	Messages     []int32
	Qts          int32
}

func (*UpdateBotDeleteBusinessMessage) CRC

func (*UpdateBotDeleteBusinessMessage) ImplementsUpdate

func (*UpdateBotDeleteBusinessMessage) ImplementsUpdate()

type UpdateBotEditBusinessMessage

type UpdateBotEditBusinessMessage struct {
	ConnectionID   string
	Message        Message
	ReplyToMessage Message `tl:"flag:0"`
	Qts            int32
}

func (*UpdateBotEditBusinessMessage) CRC

func (*UpdateBotEditBusinessMessage) FlagIndex

func (*UpdateBotEditBusinessMessage) FlagIndex() int

func (*UpdateBotEditBusinessMessage) ImplementsUpdate

func (*UpdateBotEditBusinessMessage) ImplementsUpdate()

type UpdateBotInlineQuery

type UpdateBotInlineQuery struct {
	QueryID  int64
	UserID   int64
	Query    string
	Geo      GeoPoint            `tl:"flag:0"`
	PeerType InlineQueryPeerType `tl:"flag:1"`
	Offset   string
}

An incoming inline query

func (*UpdateBotInlineQuery) CRC

func (*UpdateBotInlineQuery) FlagIndex

func (*UpdateBotInlineQuery) FlagIndex() int

func (*UpdateBotInlineQuery) ImplementsUpdate

func (*UpdateBotInlineQuery) ImplementsUpdate()

type UpdateBotInlineSend

type UpdateBotInlineSend struct {
	UserID int64
	Query  string
	Geo    GeoPoint `tl:"flag:0"`
	ID     string
	MsgID  InputBotInlineMessageID `tl:"flag:1"`
}

The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the [feedback collecting](https://core.telegram.orghttps://core.telegram.org/bots/inline#collecting-feedback) for details on how to enable these updates for your bot.

func (*UpdateBotInlineSend) CRC

func (*UpdateBotInlineSend) CRC() uint32

func (*UpdateBotInlineSend) FlagIndex

func (*UpdateBotInlineSend) FlagIndex() int

func (*UpdateBotInlineSend) ImplementsUpdate

func (*UpdateBotInlineSend) ImplementsUpdate()

type UpdateBotMenuButton

type UpdateBotMenuButton struct {
	BotID  int64
	Button BotMenuButton
}

The menu button behavior for the specified bot has changed

func (*UpdateBotMenuButton) CRC

func (*UpdateBotMenuButton) CRC() uint32

func (*UpdateBotMenuButton) ImplementsUpdate

func (*UpdateBotMenuButton) ImplementsUpdate()

type UpdateBotMessageReaction

type UpdateBotMessageReaction struct {
	Peer         Peer
	MsgID        int32
	Date         int32
	Actor        Peer
	OldReactions []Reaction
	NewReactions []Reaction
	Qts          int32
}

Bots only: a user has changed their reactions on a message with public reactions.

func (*UpdateBotMessageReaction) CRC

func (*UpdateBotMessageReaction) ImplementsUpdate

func (*UpdateBotMessageReaction) ImplementsUpdate()

type UpdateBotMessageReactions

type UpdateBotMessageReactions struct {
	Peer      Peer
	MsgID     int32
	Date      int32
	Reactions []*ReactionCount
	Qts       int32
}

Bots only: the number of reactions on a message with anonymous reactions has changed.

func (*UpdateBotMessageReactions) CRC

func (*UpdateBotMessageReactions) ImplementsUpdate

func (*UpdateBotMessageReactions) ImplementsUpdate()

type UpdateBotNewBusinessMessage

type UpdateBotNewBusinessMessage struct {
	ConnectionID   string
	Message        Message
	ReplyToMessage Message `tl:"flag:0"`
	Qts            int32
}

func (*UpdateBotNewBusinessMessage) CRC

func (*UpdateBotNewBusinessMessage) FlagIndex

func (*UpdateBotNewBusinessMessage) FlagIndex() int

func (*UpdateBotNewBusinessMessage) ImplementsUpdate

func (*UpdateBotNewBusinessMessage) ImplementsUpdate()

type UpdateBotPrecheckoutQuery

type UpdateBotPrecheckoutQuery struct {
	QueryID          int64
	UserID           int64
	Payload          []byte
	Info             *PaymentRequestedInfo `tl:"flag:0"`
	ShippingOptionID string                `tl:"flag:1"`
	Currency         string
	TotalAmount      int64
}

This object contains information about an incoming pre-checkout query.

func (*UpdateBotPrecheckoutQuery) CRC

func (*UpdateBotPrecheckoutQuery) FlagIndex

func (*UpdateBotPrecheckoutQuery) FlagIndex() int

func (*UpdateBotPrecheckoutQuery) ImplementsUpdate

func (*UpdateBotPrecheckoutQuery) ImplementsUpdate()

type UpdateBotShippingQuery

type UpdateBotShippingQuery struct {
	QueryID         int64
	UserID          int64
	Payload         []byte
	ShippingAddress *PostAddress
}

This object contains information about an incoming shipping query.

func (*UpdateBotShippingQuery) CRC

func (*UpdateBotShippingQuery) ImplementsUpdate

func (*UpdateBotShippingQuery) ImplementsUpdate()

type UpdateBotStopped

type UpdateBotStopped struct {
	UserID  int64
	Date    int32
	Stopped bool
	Qts     int32
}

A bot was stopped or re-started.

func (*UpdateBotStopped) CRC

func (*UpdateBotStopped) CRC() uint32

func (*UpdateBotStopped) ImplementsUpdate

func (*UpdateBotStopped) ImplementsUpdate()

type UpdateBotWebhookJson

type UpdateBotWebhookJson struct {
	Data *DataJson
}

A new incoming event; for bots only

func (*UpdateBotWebhookJson) CRC

func (*UpdateBotWebhookJson) ImplementsUpdate

func (*UpdateBotWebhookJson) ImplementsUpdate()

type UpdateBotWebhookJsonQuery

type UpdateBotWebhookJsonQuery struct {
	QueryID int64
	Data    *DataJson
	Timeout int32
}

A new incoming query; for bots only

func (*UpdateBotWebhookJsonQuery) CRC

func (*UpdateBotWebhookJsonQuery) ImplementsUpdate

func (*UpdateBotWebhookJsonQuery) ImplementsUpdate()

type UpdateBroadcastRevenueTransactions

type UpdateBroadcastRevenueTransactions struct {
	Peer     Peer
	Balances *BroadcastRevenueBalances
}

func (*UpdateBroadcastRevenueTransactions) CRC

func (*UpdateBroadcastRevenueTransactions) ImplementsUpdate

func (*UpdateBroadcastRevenueTransactions) ImplementsUpdate()

type UpdateBusinessBotCallbackQuery

type UpdateBusinessBotCallbackQuery struct {
	QueryID        int64
	UserID         int64
	ConnectionID   string
	Message        Message
	ReplyToMessage Message `tl:"flag:2"`
	ChatInstance   int64
	Data           []byte `tl:"flag:0"`
}

func (*UpdateBusinessBotCallbackQuery) CRC

func (*UpdateBusinessBotCallbackQuery) FlagIndex

func (*UpdateBusinessBotCallbackQuery) FlagIndex() int

func (*UpdateBusinessBotCallbackQuery) ImplementsUpdate

func (*UpdateBusinessBotCallbackQuery) ImplementsUpdate()

type UpdateChannel

type UpdateChannel struct {
	ChannelID int64
}

A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched.

func (*UpdateChannel) CRC

func (*UpdateChannel) CRC() uint32

func (*UpdateChannel) ImplementsUpdate

func (*UpdateChannel) ImplementsUpdate()

type UpdateChannelAvailableMessages

type UpdateChannelAvailableMessages struct {
	ChannelID      int64
	AvailableMinID int32
}

The history of a channel/supergroup(https://core.telegram.org/api/channel) was hidden.

func (*UpdateChannelAvailableMessages) CRC

func (*UpdateChannelAvailableMessages) ImplementsUpdate

func (*UpdateChannelAvailableMessages) ImplementsUpdate()

type UpdateChannelMessageForwards

type UpdateChannelMessageForwards struct {
	ChannelID int64
	ID        int32
	Forwards  int32
}

The forward counter of a message in a channel has changed

func (*UpdateChannelMessageForwards) CRC

func (*UpdateChannelMessageForwards) ImplementsUpdate

func (*UpdateChannelMessageForwards) ImplementsUpdate()

type UpdateChannelMessageViews

type UpdateChannelMessageViews struct {
	ChannelID int64
	ID        int32
	Views     int32
}

The view counter of a message in a channel has changed

func (*UpdateChannelMessageViews) CRC

func (*UpdateChannelMessageViews) ImplementsUpdate

func (*UpdateChannelMessageViews) ImplementsUpdate()

type UpdateChannelParticipant

type UpdateChannelParticipant struct {
	ViaChatlist     bool `tl:"flag:3,encoded_in_bitflags"`
	ChannelID       int64
	Date            int32
	ActorID         int64
	UserID          int64
	PrevParticipant ChannelParticipant `tl:"flag:0"`
	NewParticipant  ChannelParticipant `tl:"flag:1"`
	Invite          ExportedChatInvite `tl:"flag:2"`
	Qts             int32
}

A participant has left, joined, was banned or admined in a [channel or supergroup](https://core.telegram.org/api/channel).

func (*UpdateChannelParticipant) CRC

func (*UpdateChannelParticipant) FlagIndex

func (*UpdateChannelParticipant) FlagIndex() int

func (*UpdateChannelParticipant) ImplementsUpdate

func (*UpdateChannelParticipant) ImplementsUpdate()

type UpdateChannelPinnedTopic

type UpdateChannelPinnedTopic struct {
	Pinned    bool `tl:"flag:0,encoded_in_bitflags"`
	ChannelID int64
	TopicID   int32
}

A [forum topic »](https://core.telegram.org/api/forum#forum-topics) was pinned or unpinned.

func (*UpdateChannelPinnedTopic) CRC

func (*UpdateChannelPinnedTopic) FlagIndex

func (*UpdateChannelPinnedTopic) FlagIndex() int

func (*UpdateChannelPinnedTopic) ImplementsUpdate

func (*UpdateChannelPinnedTopic) ImplementsUpdate()

type UpdateChannelPinnedTopics

type UpdateChannelPinnedTopics struct {
	ChannelID int64
	Order     []int32 `tl:"flag:0"`
}

The [pinned topics](https://core.telegram.org/api/forum#forum-topics) of a forum have changed.

func (*UpdateChannelPinnedTopics) CRC

func (*UpdateChannelPinnedTopics) FlagIndex

func (*UpdateChannelPinnedTopics) FlagIndex() int

func (*UpdateChannelPinnedTopics) ImplementsUpdate

func (*UpdateChannelPinnedTopics) ImplementsUpdate()

type UpdateChannelReadMessagesContents

type UpdateChannelReadMessagesContents struct {
	ChannelID int64
	TopMsgID  int32 `tl:"flag:0"`
	Messages  []int32
}

The specified channel/supergroup(https://core.telegram.org/api/channel) messages were read

func (*UpdateChannelReadMessagesContents) CRC

func (*UpdateChannelReadMessagesContents) FlagIndex

func (*UpdateChannelReadMessagesContents) ImplementsUpdate

func (*UpdateChannelReadMessagesContents) ImplementsUpdate()

type UpdateChannelTooLong

type UpdateChannelTooLong struct {
	ChannelID int64
	Pts       int32 `tl:"flag:0"`
}

There are new updates in the specified channel, the client must fetch them.<br> If the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts.

func (*UpdateChannelTooLong) CRC

func (*UpdateChannelTooLong) FlagIndex

func (*UpdateChannelTooLong) FlagIndex() int

func (*UpdateChannelTooLong) ImplementsUpdate

func (*UpdateChannelTooLong) ImplementsUpdate()

type UpdateChannelUserTyping

type UpdateChannelUserTyping struct {
	ChannelID int64
	TopMsgID  int32 `tl:"flag:0"`
	FromID    Peer
	Action    SendMessageAction
}

A user is typing in a [supergroup, channel](https://core.telegram.org/api/channel) or [message thread](https://core.telegram.org/api/threads)

func (*UpdateChannelUserTyping) CRC

func (*UpdateChannelUserTyping) FlagIndex

func (*UpdateChannelUserTyping) FlagIndex() int

func (*UpdateChannelUserTyping) ImplementsUpdate

func (*UpdateChannelUserTyping) ImplementsUpdate()

type UpdateChannelViewForumAsMessages

type UpdateChannelViewForumAsMessages struct {
	ChannelID int64
	Enabled   bool
}

Users may also choose to display messages from all topics as if they were sent to a normal group, using a "View as messages" setting in the local client.<br> This setting only affects the current account, and is synced to other logged in sessions using the [channels.toggleViewForumAsMessages](https://core.telegram.org/method/channels.toggleViewForumAsMessages) method; invoking this method will update the value of the `view_forum_as_messages` flag of [channelFull](https://core.telegram.org/constructor/channelFull) or [dialog](https://core.telegram.org/constructor/dialog) and emit an [updateChannelViewForumAsMessages](https://core.telegram.org/constructor/updateChannelViewForumAsMessages).

func (*UpdateChannelViewForumAsMessages) CRC

func (*UpdateChannelViewForumAsMessages) ImplementsUpdate

func (*UpdateChannelViewForumAsMessages) ImplementsUpdate()

type UpdateChannelWebPage

type UpdateChannelWebPage struct {
	ChannelID int64
	Webpage   WebPage
	Pts       int32
	PtsCount  int32
}

A webpage preview of a link in a channel/supergroup(https://core.telegram.org/api/channel) message was generated

func (*UpdateChannelWebPage) CRC

func (*UpdateChannelWebPage) ImplementsUpdate

func (*UpdateChannelWebPage) ImplementsUpdate()

type UpdateChat

type UpdateChat struct {
	ChatID int64
}

A new chat is available

func (*UpdateChat) CRC

func (*UpdateChat) CRC() uint32

func (*UpdateChat) ImplementsUpdate

func (*UpdateChat) ImplementsUpdate()

type UpdateChatDefaultBannedRights

type UpdateChatDefaultBannedRights struct {
	Peer                Peer
	DefaultBannedRights *ChatBannedRights
	Version             int32
}

Default banned rights in a [normal chat](https://core.telegram.org/api/channel) were updated

func (*UpdateChatDefaultBannedRights) CRC

func (*UpdateChatDefaultBannedRights) ImplementsUpdate

func (*UpdateChatDefaultBannedRights) ImplementsUpdate()

type UpdateChatParticipant

type UpdateChatParticipant struct {
	ChatID          int64
	Date            int32
	ActorID         int64
	UserID          int64
	PrevParticipant ChatParticipant    `tl:"flag:0"`
	NewParticipant  ChatParticipant    `tl:"flag:1"`
	Invite          ExportedChatInvite `tl:"flag:2"`
	Qts             int32
}

A user has joined or left a specific chat

func (*UpdateChatParticipant) CRC

func (*UpdateChatParticipant) FlagIndex

func (*UpdateChatParticipant) FlagIndex() int

func (*UpdateChatParticipant) ImplementsUpdate

func (*UpdateChatParticipant) ImplementsUpdate()

type UpdateChatParticipantAdd

type UpdateChatParticipantAdd struct {
	ChatID    int64
	UserID    int64
	InviterID int64
	Date      int32
	Version   int32
}

New group member.

func (*UpdateChatParticipantAdd) CRC

func (*UpdateChatParticipantAdd) ImplementsUpdate

func (*UpdateChatParticipantAdd) ImplementsUpdate()

type UpdateChatParticipantAdmin

type UpdateChatParticipantAdmin struct {
	ChatID  int64
	UserID  int64
	IsAdmin bool
	Version int32
}

Admin permissions of a user in a [basic group](https://core.telegram.org/api/channel#basic-groups) were changed

func (*UpdateChatParticipantAdmin) CRC

func (*UpdateChatParticipantAdmin) ImplementsUpdate

func (*UpdateChatParticipantAdmin) ImplementsUpdate()

type UpdateChatParticipantDelete

type UpdateChatParticipantDelete struct {
	ChatID  int64
	UserID  int64
	Version int32
}

A member has left the group.

func (*UpdateChatParticipantDelete) CRC

func (*UpdateChatParticipantDelete) ImplementsUpdate

func (*UpdateChatParticipantDelete) ImplementsUpdate()

type UpdateChatParticipants

type UpdateChatParticipants struct {
	Participants ChatParticipants
}

Composition of chat participants changed.

func (*UpdateChatParticipants) CRC

func (*UpdateChatParticipants) ImplementsUpdate

func (*UpdateChatParticipants) ImplementsUpdate()

type UpdateChatUserTyping

type UpdateChatUserTyping struct {
	ChatID int64
	FromID Peer
	Action SendMessageAction
}

The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing

func (*UpdateChatUserTyping) CRC

func (*UpdateChatUserTyping) ImplementsUpdate

func (*UpdateChatUserTyping) ImplementsUpdate()

type UpdateConfig

type UpdateConfig struct{}

The server-side configuration has changed; the client should re-fetch the config using [help.getConfig](https://core.telegram.org/method/help.getConfig)

func (*UpdateConfig) CRC

func (*UpdateConfig) CRC() uint32

func (*UpdateConfig) ImplementsUpdate

func (*UpdateConfig) ImplementsUpdate()

type UpdateContactsReset

type UpdateContactsReset struct{}

All contacts were deleted

func (*UpdateContactsReset) CRC

func (*UpdateContactsReset) CRC() uint32

func (*UpdateContactsReset) ImplementsUpdate

func (*UpdateContactsReset) ImplementsUpdate()

type UpdateDcOptions

type UpdateDcOptions struct {
	DcOptions []*DcOption
}

Changes in the data center configuration options.

func (*UpdateDcOptions) CRC

func (*UpdateDcOptions) CRC() uint32

func (*UpdateDcOptions) ImplementsUpdate

func (*UpdateDcOptions) ImplementsUpdate()

type UpdateDeleteChannelMessages

type UpdateDeleteChannelMessages struct {
	ChannelID int64
	Messages  []int32
	Pts       int32
	PtsCount  int32
}

Some messages in a supergroup/channel(https://core.telegram.org/api/channel) were deleted

func (*UpdateDeleteChannelMessages) CRC

func (*UpdateDeleteChannelMessages) ImplementsUpdate

func (*UpdateDeleteChannelMessages) ImplementsUpdate()

type UpdateDeleteMessages

type UpdateDeleteMessages struct {
	Messages []int32
	Pts      int32
	PtsCount int32
}

Messages were deleted.

func (*UpdateDeleteMessages) CRC

func (*UpdateDeleteMessages) ImplementsUpdate

func (*UpdateDeleteMessages) ImplementsUpdate()

type UpdateDeleteQuickReply

type UpdateDeleteQuickReply struct {
	ShortcutID int32
}

func (*UpdateDeleteQuickReply) CRC

func (*UpdateDeleteQuickReply) ImplementsUpdate

func (*UpdateDeleteQuickReply) ImplementsUpdate()

type UpdateDeleteQuickReplyMessages

type UpdateDeleteQuickReplyMessages struct {
	ShortcutID int32
	Messages   []int32
}

func (*UpdateDeleteQuickReplyMessages) CRC

func (*UpdateDeleteQuickReplyMessages) ImplementsUpdate

func (*UpdateDeleteQuickReplyMessages) ImplementsUpdate()

type UpdateDeleteScheduledMessages

type UpdateDeleteScheduledMessages struct {
	Peer     Peer
	Messages []int32
}

Some [scheduled messages](https://core.telegram.org/api/scheduled-messages) were deleted from the schedule queue of a chat

func (*UpdateDeleteScheduledMessages) CRC

func (*UpdateDeleteScheduledMessages) ImplementsUpdate

func (*UpdateDeleteScheduledMessages) ImplementsUpdate()

type UpdateDialogFilter

type UpdateDialogFilter struct {
	ID     int32
	Filter DialogFilter `tl:"flag:0"`
}

A new [folder](https://core.telegram.org/api/folders) was added

func (*UpdateDialogFilter) CRC

func (*UpdateDialogFilter) CRC() uint32

func (*UpdateDialogFilter) FlagIndex

func (*UpdateDialogFilter) FlagIndex() int

func (*UpdateDialogFilter) ImplementsUpdate

func (*UpdateDialogFilter) ImplementsUpdate()

type UpdateDialogFilterOrder

type UpdateDialogFilterOrder struct {
	Order []int32
}

New [folder](https://core.telegram.org/api/folders) order

func (*UpdateDialogFilterOrder) CRC

func (*UpdateDialogFilterOrder) ImplementsUpdate

func (*UpdateDialogFilterOrder) ImplementsUpdate()

type UpdateDialogFilters

type UpdateDialogFilters struct{}

Clients should update [folder](https://core.telegram.org/api/folders) info

func (*UpdateDialogFilters) CRC

func (*UpdateDialogFilters) CRC() uint32

func (*UpdateDialogFilters) ImplementsUpdate

func (*UpdateDialogFilters) ImplementsUpdate()

type UpdateDialogPinned

type UpdateDialogPinned struct {
	Pinned   bool  `tl:"flag:0,encoded_in_bitflags"`
	FolderID int32 `tl:"flag:1"`
	Peer     DialogPeer
}

A dialog was pinned/unpinned

func (*UpdateDialogPinned) CRC

func (*UpdateDialogPinned) CRC() uint32

func (*UpdateDialogPinned) FlagIndex

func (*UpdateDialogPinned) FlagIndex() int

func (*UpdateDialogPinned) ImplementsUpdate

func (*UpdateDialogPinned) ImplementsUpdate()

type UpdateDialogUnreadMark

type UpdateDialogUnreadMark struct {
	Unread bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   DialogPeer
}

The manual unread mark of a chat was changed

func (*UpdateDialogUnreadMark) CRC

func (*UpdateDialogUnreadMark) FlagIndex

func (*UpdateDialogUnreadMark) FlagIndex() int

func (*UpdateDialogUnreadMark) ImplementsUpdate

func (*UpdateDialogUnreadMark) ImplementsUpdate()

type UpdateDispatcher

type UpdateDispatcher struct {
	// contains filtered or unexported fields
}

func (*UpdateDispatcher) SortTrigger

func (d *UpdateDispatcher) SortTrigger()

type UpdateDraftMessage

type UpdateDraftMessage struct {
	Peer     Peer
	TopMsgID int32 `tl:"flag:0"`
	Draft    DraftMessage
}

Notifies a change of a message [draft](https://core.telegram.org/api/drafts).

func (*UpdateDraftMessage) CRC

func (*UpdateDraftMessage) CRC() uint32

func (*UpdateDraftMessage) FlagIndex

func (*UpdateDraftMessage) FlagIndex() int

func (*UpdateDraftMessage) ImplementsUpdate

func (*UpdateDraftMessage) ImplementsUpdate()

type UpdateEditChannelMessage

type UpdateEditChannelMessage struct {
	Message  Message
	Pts      int32
	PtsCount int32
}

A message was edited in a channel/supergroup(https://core.telegram.org/api/channel)

func (*UpdateEditChannelMessage) CRC

func (*UpdateEditChannelMessage) ImplementsUpdate

func (*UpdateEditChannelMessage) ImplementsUpdate()

type UpdateEditMessage

type UpdateEditMessage struct {
	Message  Message
	Pts      int32
	PtsCount int32
}

A message was edited

func (*UpdateEditMessage) CRC

func (*UpdateEditMessage) CRC() uint32

func (*UpdateEditMessage) ImplementsUpdate

func (*UpdateEditMessage) ImplementsUpdate()

type UpdateEncryptedChatTyping

type UpdateEncryptedChatTyping struct {
	ChatID int32
}

Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.

func (*UpdateEncryptedChatTyping) CRC

func (*UpdateEncryptedChatTyping) ImplementsUpdate

func (*UpdateEncryptedChatTyping) ImplementsUpdate()

type UpdateEncryptedMessagesRead

type UpdateEncryptedMessagesRead struct {
	ChatID  int32
	MaxDate int32
	Date    int32
}

Communication history in an encrypted chat was marked as read.

func (*UpdateEncryptedMessagesRead) CRC

func (*UpdateEncryptedMessagesRead) ImplementsUpdate

func (*UpdateEncryptedMessagesRead) ImplementsUpdate()

type UpdateEncryption

type UpdateEncryption struct {
	Chat EncryptedChat
	Date int32
}

Change of state in an encrypted chat.

func (*UpdateEncryption) CRC

func (*UpdateEncryption) CRC() uint32

func (*UpdateEncryption) ImplementsUpdate

func (*UpdateEncryption) ImplementsUpdate()

type UpdateFavedStickers

type UpdateFavedStickers struct{}

The list of favorited stickers was changed, the client should call [messages.getFavedStickers](https://core.telegram.org/method/messages.getFavedStickers) to refetch the new list

func (*UpdateFavedStickers) CRC

func (*UpdateFavedStickers) CRC() uint32

func (*UpdateFavedStickers) ImplementsUpdate

func (*UpdateFavedStickers) ImplementsUpdate()

type UpdateFolderPeers

type UpdateFolderPeers struct {
	FolderPeers []*FolderPeer
	Pts         int32
	PtsCount    int32
}

The peer list of a [peer folder](https://core.telegram.org/api/folders#peer-folders) was updated

func (*UpdateFolderPeers) CRC

func (*UpdateFolderPeers) CRC() uint32

func (*UpdateFolderPeers) ImplementsUpdate

func (*UpdateFolderPeers) ImplementsUpdate()

type UpdateGeoLiveViewed

type UpdateGeoLiveViewed struct {
	Peer  Peer
	MsgID int32
}

Live geoposition message was viewed

func (*UpdateGeoLiveViewed) CRC

func (*UpdateGeoLiveViewed) CRC() uint32

func (*UpdateGeoLiveViewed) ImplementsUpdate

func (*UpdateGeoLiveViewed) ImplementsUpdate()

type UpdateGroupCall

type UpdateGroupCall struct {
	ChatID int64
	Call   GroupCall
}

A new groupcall was started

func (*UpdateGroupCall) CRC

func (*UpdateGroupCall) CRC() uint32

func (*UpdateGroupCall) ImplementsUpdate

func (*UpdateGroupCall) ImplementsUpdate()

type UpdateGroupCallConnection

type UpdateGroupCallConnection struct {
	Presentation bool `tl:"flag:0,encoded_in_bitflags"`
	Params       *DataJson
}

New WebRTC parameters

func (*UpdateGroupCallConnection) CRC

func (*UpdateGroupCallConnection) FlagIndex

func (*UpdateGroupCallConnection) FlagIndex() int

func (*UpdateGroupCallConnection) ImplementsUpdate

func (*UpdateGroupCallConnection) ImplementsUpdate()

type UpdateGroupCallParticipants

type UpdateGroupCallParticipants struct {
	Call         *InputGroupCall
	Participants []*GroupCallParticipant
	Version      int32
}

The participant list of a certain group call has changed

func (*UpdateGroupCallParticipants) CRC

func (*UpdateGroupCallParticipants) ImplementsUpdate

func (*UpdateGroupCallParticipants) ImplementsUpdate()

type UpdateInlineBotCallbackQuery

type UpdateInlineBotCallbackQuery struct {
	QueryID       int64
	UserID        int64
	MsgID         InputBotInlineMessageID
	ChatInstance  int64
	Data          []byte `tl:"flag:0"`
	GameShortName string `tl:"flag:1"`
}

This notification is received by bots when a button is pressed

func (*UpdateInlineBotCallbackQuery) CRC

func (*UpdateInlineBotCallbackQuery) FlagIndex

func (*UpdateInlineBotCallbackQuery) FlagIndex() int

func (*UpdateInlineBotCallbackQuery) ImplementsUpdate

func (*UpdateInlineBotCallbackQuery) ImplementsUpdate()

type UpdateLangPack

type UpdateLangPack struct {
	Difference *LangPackDifference
}

Language pack updated

func (*UpdateLangPack) CRC

func (*UpdateLangPack) CRC() uint32

func (*UpdateLangPack) ImplementsUpdate

func (*UpdateLangPack) ImplementsUpdate()

type UpdateLangPackTooLong

type UpdateLangPackTooLong struct {
	LangCode string
}

A language pack has changed, the client should manually fetch the changed strings using [langpack.getDifference](https://core.telegram.org/method/langpack.getDifference)

func (*UpdateLangPackTooLong) CRC

func (*UpdateLangPackTooLong) ImplementsUpdate

func (*UpdateLangPackTooLong) ImplementsUpdate()

type UpdateLoginToken

type UpdateLoginToken struct{}

A login token (for login via QR code) was accepted.

func (*UpdateLoginToken) CRC

func (*UpdateLoginToken) CRC() uint32

func (*UpdateLoginToken) ImplementsUpdate

func (*UpdateLoginToken) ImplementsUpdate()

type UpdateMessageExtendedMedia

type UpdateMessageExtendedMedia struct {
	Peer          Peer
	MsgID         int32
	ExtendedMedia []MessageExtendedMedia
}

Extended media update

func (*UpdateMessageExtendedMedia) CRC

func (*UpdateMessageExtendedMedia) ImplementsUpdate

func (*UpdateMessageExtendedMedia) ImplementsUpdate()

type UpdateMessageID

type UpdateMessageID struct {
	ID       int32
	RandomID int64
}

Sent message with <strong>random_id</strong> client identifier was assigned an identifier.

func (*UpdateMessageID) CRC

func (*UpdateMessageID) CRC() uint32

func (*UpdateMessageID) ImplementsUpdate

func (*UpdateMessageID) ImplementsUpdate()

type UpdateMessagePoll

type UpdateMessagePoll struct {
	PollID  int64
	Poll    *Poll `tl:"flag:0"`
	Results *PollResults
}

The results of a poll have changed

func (*UpdateMessagePoll) CRC

func (*UpdateMessagePoll) CRC() uint32

func (*UpdateMessagePoll) FlagIndex

func (*UpdateMessagePoll) FlagIndex() int

func (*UpdateMessagePoll) ImplementsUpdate

func (*UpdateMessagePoll) ImplementsUpdate()

type UpdateMessagePollVote

type UpdateMessagePollVote struct {
	PollID  int64
	Peer    Peer
	Options [][]byte
	Qts     int32
}

A specific peer has voted in a poll

func (*UpdateMessagePollVote) CRC

func (*UpdateMessagePollVote) ImplementsUpdate

func (*UpdateMessagePollVote) ImplementsUpdate()

type UpdateMessageReactions

type UpdateMessageReactions struct {
	Peer      Peer
	MsgID     int32
	TopMsgID  int32 `tl:"flag:0"`
	Reactions *MessageReactions
}

New [message reactions »](https://core.telegram.org/api/reactions) are available

func (*UpdateMessageReactions) CRC

func (*UpdateMessageReactions) FlagIndex

func (*UpdateMessageReactions) FlagIndex() int

func (*UpdateMessageReactions) ImplementsUpdate

func (*UpdateMessageReactions) ImplementsUpdate()

type UpdateMoveStickerSetToTop

type UpdateMoveStickerSetToTop struct {
	Masks      bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis     bool `tl:"flag:1,encoded_in_bitflags"`
	Stickerset int64
}

A stickerset was just moved to top, [see here for more info »](https://core.telegram.org/api/stickers#recent-stickersets)

func (*UpdateMoveStickerSetToTop) CRC

func (*UpdateMoveStickerSetToTop) FlagIndex

func (*UpdateMoveStickerSetToTop) FlagIndex() int

func (*UpdateMoveStickerSetToTop) ImplementsUpdate

func (*UpdateMoveStickerSetToTop) ImplementsUpdate()

type UpdateNewAuthorization

type UpdateNewAuthorization struct {
	Unconfirmed bool `tl:"flag:0,encoded_in_bitflags"`
	Hash        int64
	Date        int32  `tl:"flag:0"`
	Device      string `tl:"flag:0"`
	Location    string `tl:"flag:0"`
}

A new session logged into the current user's account through an unknown device.

func (*UpdateNewAuthorization) CRC

func (*UpdateNewAuthorization) FlagIndex

func (*UpdateNewAuthorization) FlagIndex() int

func (*UpdateNewAuthorization) ImplementsUpdate

func (*UpdateNewAuthorization) ImplementsUpdate()

type UpdateNewChannelMessage

type UpdateNewChannelMessage struct {
	Message  Message
	Pts      int32
	PtsCount int32
}

A new message was sent in a channel/supergroup(https://core.telegram.org/api/channel)

func (*UpdateNewChannelMessage) CRC

func (*UpdateNewChannelMessage) ImplementsUpdate

func (*UpdateNewChannelMessage) ImplementsUpdate()

type UpdateNewEncryptedMessage

type UpdateNewEncryptedMessage struct {
	Message EncryptedMessage
	Qts     int32
}

New encrypted message.

func (*UpdateNewEncryptedMessage) CRC

func (*UpdateNewEncryptedMessage) ImplementsUpdate

func (*UpdateNewEncryptedMessage) ImplementsUpdate()

type UpdateNewMessage

type UpdateNewMessage struct {
	Message  Message
	Pts      int32
	PtsCount int32
}

New message in a private chat or in a [basic group](https://core.telegram.orghttps://core.telegram.org/api/channel#basic-groups).

func (*UpdateNewMessage) CRC

func (*UpdateNewMessage) CRC() uint32

func (*UpdateNewMessage) ImplementsUpdate

func (*UpdateNewMessage) ImplementsUpdate()

type UpdateNewQuickReply

type UpdateNewQuickReply struct {
	QuickReply *QuickReply
}

func (*UpdateNewQuickReply) CRC

func (*UpdateNewQuickReply) CRC() uint32

func (*UpdateNewQuickReply) ImplementsUpdate

func (*UpdateNewQuickReply) ImplementsUpdate()

type UpdateNewScheduledMessage

type UpdateNewScheduledMessage struct {
	Message Message
}

A message was added to the [schedule queue of a chat](https://core.telegram.org/api/scheduled-messages)

func (*UpdateNewScheduledMessage) CRC

func (*UpdateNewScheduledMessage) ImplementsUpdate

func (*UpdateNewScheduledMessage) ImplementsUpdate()

type UpdateNewStickerSet

type UpdateNewStickerSet struct {
	Stickerset MessagesStickerSet
}

A new stickerset was installed

func (*UpdateNewStickerSet) CRC

func (*UpdateNewStickerSet) CRC() uint32

func (*UpdateNewStickerSet) ImplementsUpdate

func (*UpdateNewStickerSet) ImplementsUpdate()

type UpdateNewStoryReaction

type UpdateNewStoryReaction struct {
	StoryID  int32
	Peer     Peer
	Reaction Reaction
}

func (*UpdateNewStoryReaction) CRC

func (*UpdateNewStoryReaction) ImplementsUpdate

func (*UpdateNewStoryReaction) ImplementsUpdate()

type UpdateNotifySettings

type UpdateNotifySettings struct {
	Peer           NotifyPeer
	NotifySettings *PeerNotifySettings
}

Changes in notification settings.

func (*UpdateNotifySettings) CRC

func (*UpdateNotifySettings) ImplementsUpdate

func (*UpdateNotifySettings) ImplementsUpdate()

type UpdatePeerBlocked

type UpdatePeerBlocked struct {
	Blocked              bool `tl:"flag:0,encoded_in_bitflags"`
	BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"`
	PeerID               Peer
}

We blocked a peer, see [here »](https://core.telegram.org/api/block) for more info on blocklists.

func (*UpdatePeerBlocked) CRC

func (*UpdatePeerBlocked) CRC() uint32

func (*UpdatePeerBlocked) FlagIndex

func (*UpdatePeerBlocked) FlagIndex() int

func (*UpdatePeerBlocked) ImplementsUpdate

func (*UpdatePeerBlocked) ImplementsUpdate()

type UpdatePeerHistoryTtl

type UpdatePeerHistoryTtl struct {
	Peer      Peer
	TtlPeriod int32 `tl:"flag:0"`
}

The Time-To-Live for messages sent by the current user in a specific chat has changed

func (*UpdatePeerHistoryTtl) CRC

func (*UpdatePeerHistoryTtl) FlagIndex

func (*UpdatePeerHistoryTtl) FlagIndex() int

func (*UpdatePeerHistoryTtl) ImplementsUpdate

func (*UpdatePeerHistoryTtl) ImplementsUpdate()

type UpdatePeerLocated

type UpdatePeerLocated struct {
	Peers []PeerLocated
}

List of peers near you was updated

func (*UpdatePeerLocated) CRC

func (*UpdatePeerLocated) CRC() uint32

func (*UpdatePeerLocated) ImplementsUpdate

func (*UpdatePeerLocated) ImplementsUpdate()

type UpdatePeerSettings

type UpdatePeerSettings struct {
	Peer     Peer
	Settings *PeerSettings
}

Settings of a certain peer have changed

func (*UpdatePeerSettings) CRC

func (*UpdatePeerSettings) CRC() uint32

func (*UpdatePeerSettings) ImplementsUpdate

func (*UpdatePeerSettings) ImplementsUpdate()

type UpdatePeerWallpaper

type UpdatePeerWallpaper struct {
	WallpaperOverridden bool `tl:"flag:1,encoded_in_bitflags"`
	Peer                Peer
	Wallpaper           WallPaper `tl:"flag:0"`
}

The [wallpaper »](https://core.telegram.org/api/wallpapers) of a given peer has changed.

func (*UpdatePeerWallpaper) CRC

func (*UpdatePeerWallpaper) CRC() uint32

func (*UpdatePeerWallpaper) FlagIndex

func (*UpdatePeerWallpaper) FlagIndex() int

func (*UpdatePeerWallpaper) ImplementsUpdate

func (*UpdatePeerWallpaper) ImplementsUpdate()

type UpdatePendingJoinRequests

type UpdatePendingJoinRequests struct {
	Peer             Peer
	RequestsPending  int32
	RecentRequesters []int64
}

Someone has requested to join a chat or channel

func (*UpdatePendingJoinRequests) CRC

func (*UpdatePendingJoinRequests) ImplementsUpdate

func (*UpdatePendingJoinRequests) ImplementsUpdate()

type UpdatePhoneCall

type UpdatePhoneCall struct {
	PhoneCall PhoneCall
}

An incoming phone call

func (*UpdatePhoneCall) CRC

func (*UpdatePhoneCall) CRC() uint32

func (*UpdatePhoneCall) ImplementsUpdate

func (*UpdatePhoneCall) ImplementsUpdate()

type UpdatePhoneCallSignalingData

type UpdatePhoneCallSignalingData struct {
	PhoneCallID int64
	Data        []byte
}

Incoming phone call signaling payload

func (*UpdatePhoneCallSignalingData) CRC

func (*UpdatePhoneCallSignalingData) ImplementsUpdate

func (*UpdatePhoneCallSignalingData) ImplementsUpdate()

type UpdatePinnedChannelMessages

type UpdatePinnedChannelMessages struct {
	Pinned    bool `tl:"flag:0,encoded_in_bitflags"`
	ChannelID int64
	Messages  []int32
	Pts       int32
	PtsCount  int32
}

Messages were pinned/unpinned in a channel/supergroup(https://core.telegram.org/api/channel)

func (*UpdatePinnedChannelMessages) CRC

func (*UpdatePinnedChannelMessages) FlagIndex

func (*UpdatePinnedChannelMessages) FlagIndex() int

func (*UpdatePinnedChannelMessages) ImplementsUpdate

func (*UpdatePinnedChannelMessages) ImplementsUpdate()

type UpdatePinnedDialogs

type UpdatePinnedDialogs struct {
	FolderID int32        `tl:"flag:1"`
	Order    []DialogPeer `tl:"flag:0"`
}

Pinned dialogs were updated

func (*UpdatePinnedDialogs) CRC

func (*UpdatePinnedDialogs) CRC() uint32

func (*UpdatePinnedDialogs) FlagIndex

func (*UpdatePinnedDialogs) FlagIndex() int

func (*UpdatePinnedDialogs) ImplementsUpdate

func (*UpdatePinnedDialogs) ImplementsUpdate()

type UpdatePinnedMessages

type UpdatePinnedMessages struct {
	Pinned   bool `tl:"flag:0,encoded_in_bitflags"`
	Peer     Peer
	Messages []int32
	Pts      int32
	PtsCount int32
}

Some messages were pinned in a chat

func (*UpdatePinnedMessages) CRC

func (*UpdatePinnedMessages) FlagIndex

func (*UpdatePinnedMessages) FlagIndex() int

func (*UpdatePinnedMessages) ImplementsUpdate

func (*UpdatePinnedMessages) ImplementsUpdate()

type UpdatePinnedSavedDialogs

type UpdatePinnedSavedDialogs struct {
	Order []DialogPeer `tl:"flag:0"`
}

[Pinned saved dialogs »](https://core.telegram.org/api/saved-messages) were updated

func (*UpdatePinnedSavedDialogs) CRC

func (*UpdatePinnedSavedDialogs) FlagIndex

func (*UpdatePinnedSavedDialogs) FlagIndex() int

func (*UpdatePinnedSavedDialogs) ImplementsUpdate

func (*UpdatePinnedSavedDialogs) ImplementsUpdate()

type UpdatePrivacy

type UpdatePrivacy struct {
	Key   PrivacyKey
	Rules []PrivacyRule
}

Privacy rules were changed

func (*UpdatePrivacy) CRC

func (*UpdatePrivacy) CRC() uint32

func (*UpdatePrivacy) ImplementsUpdate

func (*UpdatePrivacy) ImplementsUpdate()

type UpdatePtsChanged

type UpdatePtsChanged struct{}

[Common message box sequence PTS](https://core.telegram.org/api/updates) has changed, [state has to be refetched using updates.getState](https://core.telegram.org/api/updates#fetching-state)

func (*UpdatePtsChanged) CRC

func (*UpdatePtsChanged) CRC() uint32

func (*UpdatePtsChanged) ImplementsUpdate

func (*UpdatePtsChanged) ImplementsUpdate()

type UpdateQuickReplies

type UpdateQuickReplies struct {
	QuickReplies []*QuickReply
}

func (*UpdateQuickReplies) CRC

func (*UpdateQuickReplies) CRC() uint32

func (*UpdateQuickReplies) ImplementsUpdate

func (*UpdateQuickReplies) ImplementsUpdate()

type UpdateQuickReplyMessage

type UpdateQuickReplyMessage struct {
	Message Message
}

func (*UpdateQuickReplyMessage) CRC

func (*UpdateQuickReplyMessage) ImplementsUpdate

func (*UpdateQuickReplyMessage) ImplementsUpdate()

type UpdateReadChannelDiscussionInbox

type UpdateReadChannelDiscussionInbox struct {
	ChannelID     int64
	TopMsgID      int32
	ReadMaxID     int32
	BroadcastID   int64 `tl:"flag:0"`
	BroadcastPost int32 `tl:"flag:0"`
}

Incoming comments in a [discussion thread](https://core.telegram.org/api/threads) were marked as read

func (*UpdateReadChannelDiscussionInbox) CRC

func (*UpdateReadChannelDiscussionInbox) FlagIndex

func (*UpdateReadChannelDiscussionInbox) ImplementsUpdate

func (*UpdateReadChannelDiscussionInbox) ImplementsUpdate()

type UpdateReadChannelDiscussionOutbox

type UpdateReadChannelDiscussionOutbox struct {
	ChannelID int64
	TopMsgID  int32
	ReadMaxID int32
}

Outgoing comments in a [discussion thread](https://core.telegram.org/api/threads) were marked as read

func (*UpdateReadChannelDiscussionOutbox) CRC

func (*UpdateReadChannelDiscussionOutbox) ImplementsUpdate

func (*UpdateReadChannelDiscussionOutbox) ImplementsUpdate()

type UpdateReadChannelInbox

type UpdateReadChannelInbox struct {
	FolderID         int32 `tl:"flag:0"`
	ChannelID        int64
	MaxID            int32
	StillUnreadCount int32
	Pts              int32
}

Incoming messages in a channel/supergroup(https://core.telegram.org/api/channel) were read

func (*UpdateReadChannelInbox) CRC

func (*UpdateReadChannelInbox) FlagIndex

func (*UpdateReadChannelInbox) FlagIndex() int

func (*UpdateReadChannelInbox) ImplementsUpdate

func (*UpdateReadChannelInbox) ImplementsUpdate()

type UpdateReadChannelOutbox

type UpdateReadChannelOutbox struct {
	ChannelID int64
	MaxID     int32
}

Outgoing messages in a channel/supergroup(https://core.telegram.org/api/channel) were read

func (*UpdateReadChannelOutbox) CRC

func (*UpdateReadChannelOutbox) ImplementsUpdate

func (*UpdateReadChannelOutbox) ImplementsUpdate()

type UpdateReadFeaturedEmojiStickers

type UpdateReadFeaturedEmojiStickers struct{}

Some featured [custom emoji stickers](https://core.telegram.org/api/custom-emoji) were marked as read

func (*UpdateReadFeaturedEmojiStickers) CRC

func (*UpdateReadFeaturedEmojiStickers) ImplementsUpdate

func (*UpdateReadFeaturedEmojiStickers) ImplementsUpdate()

type UpdateReadFeaturedStickers

type UpdateReadFeaturedStickers struct{}

Some featured stickers were marked as read

func (*UpdateReadFeaturedStickers) CRC

func (*UpdateReadFeaturedStickers) ImplementsUpdate

func (*UpdateReadFeaturedStickers) ImplementsUpdate()

type UpdateReadHistoryInbox

type UpdateReadHistoryInbox struct {
	FolderID         int32 `tl:"flag:0"`
	Peer             Peer
	MaxID            int32
	StillUnreadCount int32
	Pts              int32
	PtsCount         int32
}

Incoming messages were read

func (*UpdateReadHistoryInbox) CRC

func (*UpdateReadHistoryInbox) FlagIndex

func (*UpdateReadHistoryInbox) FlagIndex() int

func (*UpdateReadHistoryInbox) ImplementsUpdate

func (*UpdateReadHistoryInbox) ImplementsUpdate()

type UpdateReadHistoryOutbox

type UpdateReadHistoryOutbox struct {
	Peer     Peer
	MaxID    int32
	Pts      int32
	PtsCount int32
}

Outgoing messages were read

func (*UpdateReadHistoryOutbox) CRC

func (*UpdateReadHistoryOutbox) ImplementsUpdate

func (*UpdateReadHistoryOutbox) ImplementsUpdate()

type UpdateReadMessagesContents

type UpdateReadMessagesContents struct {
	Messages []int32
	Pts      int32
	PtsCount int32
	Date     int32 `tl:"flag:0"`
}

Contents of messages in the common [message box](https://core.telegram.org/api/updates) were read

func (*UpdateReadMessagesContents) CRC

func (*UpdateReadMessagesContents) FlagIndex

func (*UpdateReadMessagesContents) FlagIndex() int

func (*UpdateReadMessagesContents) ImplementsUpdate

func (*UpdateReadMessagesContents) ImplementsUpdate()

type UpdateReadStories

type UpdateReadStories struct {
	Peer  Peer
	MaxID int32
}

Stories of a specific peer were marked as read.

func (*UpdateReadStories) CRC

func (*UpdateReadStories) CRC() uint32

func (*UpdateReadStories) ImplementsUpdate

func (*UpdateReadStories) ImplementsUpdate()

type UpdateRecentEmojiStatuses

type UpdateRecentEmojiStatuses struct{}

The list of recent [emoji statuses](https://core.telegram.org/api/emoji-status) has changed

func (*UpdateRecentEmojiStatuses) CRC

func (*UpdateRecentEmojiStatuses) ImplementsUpdate

func (*UpdateRecentEmojiStatuses) ImplementsUpdate()

type UpdateRecentReactions

type UpdateRecentReactions struct{}

The list of recent [message reactions](https://core.telegram.org/api/reactions) has changed

func (*UpdateRecentReactions) CRC

func (*UpdateRecentReactions) ImplementsUpdate

func (*UpdateRecentReactions) ImplementsUpdate()

type UpdateRecentStickers

type UpdateRecentStickers struct{}

The recent sticker list was updated

func (*UpdateRecentStickers) CRC

func (*UpdateRecentStickers) ImplementsUpdate

func (*UpdateRecentStickers) ImplementsUpdate()

type UpdateSavedDialogPinned

type UpdateSavedDialogPinned struct {
	Pinned bool `tl:"flag:0,encoded_in_bitflags"`
	Peer   DialogPeer
}

A [saved message dialog](https://core.telegram.org/api/saved-messages) was pinned/unpinned

func (*UpdateSavedDialogPinned) CRC

func (*UpdateSavedDialogPinned) FlagIndex

func (*UpdateSavedDialogPinned) FlagIndex() int

func (*UpdateSavedDialogPinned) ImplementsUpdate

func (*UpdateSavedDialogPinned) ImplementsUpdate()

type UpdateSavedGifs

type UpdateSavedGifs struct{}

The saved gif list has changed, the client should refetch it using [messages.getSavedGifs](https://core.telegram.orghttps://core.telegram.org/method/messages.getSavedGifs)

func (*UpdateSavedGifs) CRC

func (*UpdateSavedGifs) CRC() uint32

func (*UpdateSavedGifs) ImplementsUpdate

func (*UpdateSavedGifs) ImplementsUpdate()

type UpdateSavedReactionTags

type UpdateSavedReactionTags struct{}

func (*UpdateSavedReactionTags) CRC

func (*UpdateSavedReactionTags) ImplementsUpdate

func (*UpdateSavedReactionTags) ImplementsUpdate()

type UpdateSavedRingtones

type UpdateSavedRingtones struct{}

The list of saved notification sounds has changed, use [account.getSavedRingtones](https://core.telegram.org/method/account.getSavedRingtones) to fetch the new list.

func (*UpdateSavedRingtones) CRC

func (*UpdateSavedRingtones) ImplementsUpdate

func (*UpdateSavedRingtones) ImplementsUpdate()

type UpdateSentStoryReaction

type UpdateSentStoryReaction struct {
	Peer     Peer
	StoryID  int32
	Reaction Reaction
}

Indicates we [reacted to a story »](https://core.telegram.org/api/stories#reactions).

func (*UpdateSentStoryReaction) CRC

func (*UpdateSentStoryReaction) ImplementsUpdate

func (*UpdateSentStoryReaction) ImplementsUpdate()

type UpdateServiceNotification

type UpdateServiceNotification struct {
	Popup       bool  `tl:"flag:0,encoded_in_bitflags"`
	InvertMedia bool  `tl:"flag:2,encoded_in_bitflags"`
	InboxDate   int32 `tl:"flag:1"`
	Type        string
	Message     string
	Media       MessageMedia
	Entities    []MessageEntity
}

A service message for the user.

func (*UpdateServiceNotification) CRC

func (*UpdateServiceNotification) FlagIndex

func (*UpdateServiceNotification) FlagIndex() int

func (*UpdateServiceNotification) ImplementsUpdate

func (*UpdateServiceNotification) ImplementsUpdate()

type UpdateShort

type UpdateShort struct {
	Update Update
	Date   int32
}

Shortened constructor containing info on one update not requiring auxiliary data

func (*UpdateShort) CRC

func (*UpdateShort) CRC() uint32

func (*UpdateShort) ImplementsUpdates

func (*UpdateShort) ImplementsUpdates()

type UpdateShortChatMessage

type UpdateShortChatMessage struct {
	Out         bool `tl:"flag:1,encoded_in_bitflags"`
	Mentioned   bool `tl:"flag:4,encoded_in_bitflags"`
	MediaUnread bool `tl:"flag:5,encoded_in_bitflags"`
	Silent      bool `tl:"flag:13,encoded_in_bitflags"`
	ID          int32
	FromID      int64
	ChatID      int64
	Message     string
	Pts         int32
	PtsCount    int32
	Date        int32
	FwdFrom     *MessageFwdHeader  `tl:"flag:2"`
	ViaBotID    int64              `tl:"flag:11"`
	ReplyTo     MessageReplyHeader `tl:"flag:3"`
	Entities    []MessageEntity    `tl:"flag:7"`
	TtlPeriod   int32              `tl:"flag:25"`
}

Shortened constructor containing info on one new incoming text message from a chat

func (*UpdateShortChatMessage) CRC

func (*UpdateShortChatMessage) FlagIndex

func (*UpdateShortChatMessage) FlagIndex() int

func (*UpdateShortChatMessage) ImplementsUpdates

func (*UpdateShortChatMessage) ImplementsUpdates()

type UpdateShortMessage

type UpdateShortMessage struct {
	Out         bool `tl:"flag:1,encoded_in_bitflags"`
	Mentioned   bool `tl:"flag:4,encoded_in_bitflags"`
	MediaUnread bool `tl:"flag:5,encoded_in_bitflags"`
	Silent      bool `tl:"flag:13,encoded_in_bitflags"`
	ID          int32
	UserID      int64
	Message     string
	Pts         int32
	PtsCount    int32
	Date        int32
	FwdFrom     *MessageFwdHeader  `tl:"flag:2"`
	ViaBotID    int64              `tl:"flag:11"`
	ReplyTo     MessageReplyHeader `tl:"flag:3"`
	Entities    []MessageEntity    `tl:"flag:7"`
	TtlPeriod   int32              `tl:"flag:25"`
}

Info about a message sent to (received from) another user

func (*UpdateShortMessage) CRC

func (*UpdateShortMessage) CRC() uint32

func (*UpdateShortMessage) FlagIndex

func (*UpdateShortMessage) FlagIndex() int

func (*UpdateShortMessage) ImplementsUpdates

func (*UpdateShortMessage) ImplementsUpdates()

type UpdateShortSentMessage

type UpdateShortSentMessage struct {
	Out       bool `tl:"flag:1,encoded_in_bitflags"`
	ID        int32
	Pts       int32
	PtsCount  int32
	Date      int32
	Media     MessageMedia    `tl:"flag:9"`
	Entities  []MessageEntity `tl:"flag:7"`
	TtlPeriod int32           `tl:"flag:25"`
}

Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).

func (*UpdateShortSentMessage) CRC

func (*UpdateShortSentMessage) FlagIndex

func (*UpdateShortSentMessage) FlagIndex() int

func (*UpdateShortSentMessage) ImplementsUpdates

func (*UpdateShortSentMessage) ImplementsUpdates()

type UpdateSmsJob

type UpdateSmsJob struct {
	JobID string
}

func (*UpdateSmsJob) CRC

func (*UpdateSmsJob) CRC() uint32

func (*UpdateSmsJob) ImplementsUpdate

func (*UpdateSmsJob) ImplementsUpdate()

type UpdateStarsBalance

type UpdateStarsBalance struct {
	Balance int64
}

func (*UpdateStarsBalance) CRC

func (*UpdateStarsBalance) CRC() uint32

func (*UpdateStarsBalance) ImplementsUpdate

func (*UpdateStarsBalance) ImplementsUpdate()

type UpdateStarsRevenueStatus

type UpdateStarsRevenueStatus struct {
	Peer   Peer
	Status *StarsRevenueStatus
}

func (*UpdateStarsRevenueStatus) CRC

func (*UpdateStarsRevenueStatus) ImplementsUpdate

func (*UpdateStarsRevenueStatus) ImplementsUpdate()

type UpdateStickerSets

type UpdateStickerSets struct {
	Masks  bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis bool `tl:"flag:1,encoded_in_bitflags"`
}

Installed stickersets have changed, the client should refetch them as [described in the docs](https://core.telegram.org/api/stickers#installing-stickersets).

func (*UpdateStickerSets) CRC

func (*UpdateStickerSets) CRC() uint32

func (*UpdateStickerSets) FlagIndex

func (*UpdateStickerSets) FlagIndex() int

func (*UpdateStickerSets) ImplementsUpdate

func (*UpdateStickerSets) ImplementsUpdate()

type UpdateStickerSetsOrder

type UpdateStickerSetsOrder struct {
	Masks  bool `tl:"flag:0,encoded_in_bitflags"`
	Emojis bool `tl:"flag:1,encoded_in_bitflags"`
	Order  []int64
}

The order of stickersets was changed

func (*UpdateStickerSetsOrder) CRC

func (*UpdateStickerSetsOrder) FlagIndex

func (*UpdateStickerSetsOrder) FlagIndex() int

func (*UpdateStickerSetsOrder) ImplementsUpdate

func (*UpdateStickerSetsOrder) ImplementsUpdate()

type UpdateStoriesStealthMode

type UpdateStoriesStealthMode struct {
	StealthMode *StoriesStealthMode
}

Indicates that [stories stealth mode](https://core.telegram.org/api/stories#stealth-mode) was activated.

func (*UpdateStoriesStealthMode) CRC

func (*UpdateStoriesStealthMode) ImplementsUpdate

func (*UpdateStoriesStealthMode) ImplementsUpdate()

type UpdateStory

type UpdateStory struct {
	Peer  Peer
	Story StoryItem
}

A new story was posted.

func (*UpdateStory) CRC

func (*UpdateStory) CRC() uint32

func (*UpdateStory) ImplementsUpdate

func (*UpdateStory) ImplementsUpdate()

type UpdateStoryID

type UpdateStoryID struct {
	ID       int32
	RandomID int64
}

A story was successfully uploaded.

func (*UpdateStoryID) CRC

func (*UpdateStoryID) CRC() uint32

func (*UpdateStoryID) ImplementsUpdate

func (*UpdateStoryID) ImplementsUpdate()

type UpdateTheme

type UpdateTheme struct {
	Theme *Theme
}

A cloud theme was updated

func (*UpdateTheme) CRC

func (*UpdateTheme) CRC() uint32

func (*UpdateTheme) ImplementsUpdate

func (*UpdateTheme) ImplementsUpdate()

type UpdateTranscribedAudio

type UpdateTranscribedAudio struct {
	Pending         bool `tl:"flag:0,encoded_in_bitflags"`
	Peer            Peer
	MsgID           int32
	TranscriptionID int64
	Text            string
}

A pending [voice message transcription »](https://core.telegram.org/api/transcribe) initiated with [messages.transcribeAudio](https://core.telegram.org/method/messages.transcribeAudio) was updated.

func (*UpdateTranscribedAudio) CRC

func (*UpdateTranscribedAudio) FlagIndex

func (*UpdateTranscribedAudio) FlagIndex() int

func (*UpdateTranscribedAudio) ImplementsUpdate

func (*UpdateTranscribedAudio) ImplementsUpdate()

type UpdateUser

type UpdateUser struct {
	UserID int64
}

User information was updated, it must be refetched using [users.getFullUser](https://core.telegram.org/method/users.getFullUser).

func (*UpdateUser) CRC

func (*UpdateUser) CRC() uint32

func (*UpdateUser) ImplementsUpdate

func (*UpdateUser) ImplementsUpdate()

type UpdateUserEmojiStatus

type UpdateUserEmojiStatus struct {
	UserID      int64
	EmojiStatus EmojiStatus
}

The [emoji status](https://core.telegram.org/api/emoji-status) of a certain user has changed

func (*UpdateUserEmojiStatus) CRC

func (*UpdateUserEmojiStatus) ImplementsUpdate

func (*UpdateUserEmojiStatus) ImplementsUpdate()

type UpdateUserName

type UpdateUserName struct {
	UserID    int64
	FirstName string
	LastName  string
	Usernames []*Username
}

Changes the user's first name, last name and username.

func (*UpdateUserName) CRC

func (*UpdateUserName) CRC() uint32

func (*UpdateUserName) ImplementsUpdate

func (*UpdateUserName) ImplementsUpdate()

type UpdateUserPhone

type UpdateUserPhone struct {
	UserID int64
	Phone  string
}

A user's phone number was changed

func (*UpdateUserPhone) CRC

func (*UpdateUserPhone) CRC() uint32

func (*UpdateUserPhone) ImplementsUpdate

func (*UpdateUserPhone) ImplementsUpdate()

type UpdateUserStatus

type UpdateUserStatus struct {
	UserID int64
	Status UserStatus
}

Contact status update.

func (*UpdateUserStatus) CRC

func (*UpdateUserStatus) CRC() uint32

func (*UpdateUserStatus) ImplementsUpdate

func (*UpdateUserStatus) ImplementsUpdate()

type UpdateUserTyping

type UpdateUserTyping struct {
	UserID int64
	Action SendMessageAction
}

The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing

func (*UpdateUserTyping) CRC

func (*UpdateUserTyping) CRC() uint32

func (*UpdateUserTyping) ImplementsUpdate

func (*UpdateUserTyping) ImplementsUpdate()

type UpdateWebPage

type UpdateWebPage struct {
	Webpage  WebPage
	Pts      int32
	PtsCount int32
}

An [instant view](https://core.telegram.orghttps://instantview.telegram.org) webpage preview was generated

func (*UpdateWebPage) CRC

func (*UpdateWebPage) CRC() uint32

func (*UpdateWebPage) ImplementsUpdate

func (*UpdateWebPage) ImplementsUpdate()

type UpdateWebViewResultSent

type UpdateWebViewResultSent struct {
	QueryID int64
}

Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using [messages.sendWebViewResultMessage](https://core.telegram.org/method/messages.sendWebViewResultMessage)

func (*UpdateWebViewResultSent) CRC

func (*UpdateWebViewResultSent) ImplementsUpdate

func (*UpdateWebViewResultSent) ImplementsUpdate()

type Updates

type Updates interface {
	tl.Object
	ImplementsUpdates()
}

type UpdatesChannelDifference

type UpdatesChannelDifference interface {
	tl.Object
	ImplementsUpdatesChannelDifference()
}

type UpdatesChannelDifferenceEmpty

type UpdatesChannelDifferenceEmpty struct {
	Final   bool `tl:"flag:0,encoded_in_bitflags"`
	Pts     int32
	Timeout int32 `tl:"flag:1"`
}

There are no new updates

func (*UpdatesChannelDifferenceEmpty) CRC

func (*UpdatesChannelDifferenceEmpty) FlagIndex

func (*UpdatesChannelDifferenceEmpty) FlagIndex() int

func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference()

type UpdatesChannelDifferenceObj

type UpdatesChannelDifferenceObj struct {
	Final        bool `tl:"flag:0,encoded_in_bitflags"`
	Pts          int32
	Timeout      int32 `tl:"flag:1"`
	NewMessages  []Message
	OtherUpdates []Update
	Chats        []Chat
	Users        []User
}

The new updates

func (*UpdatesChannelDifferenceObj) CRC

func (*UpdatesChannelDifferenceObj) FlagIndex

func (*UpdatesChannelDifferenceObj) FlagIndex() int

func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference()

type UpdatesChannelDifferenceTooLong

type UpdatesChannelDifferenceTooLong struct {
	Final    bool  `tl:"flag:0,encoded_in_bitflags"`
	Timeout  int32 `tl:"flag:1"`
	Dialog   Dialog
	Messages []Message
	Chats    []Chat
	Users    []User
}

The provided `pts + limit &lt; remote pts`. Simply, there are too many updates to be fetched (more than `limit`), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):

func (*UpdatesChannelDifferenceTooLong) CRC

func (*UpdatesChannelDifferenceTooLong) FlagIndex

func (*UpdatesChannelDifferenceTooLong) FlagIndex() int

func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference()

type UpdatesCombined

type UpdatesCombined struct {
	Updates  []Update
	Users    []User
	Chats    []Chat
	Date     int32
	SeqStart int32
	Seq      int32
}

Constructor for a group of updates.

func (*UpdatesCombined) CRC

func (*UpdatesCombined) CRC() uint32

func (*UpdatesCombined) ImplementsUpdates

func (*UpdatesCombined) ImplementsUpdates()

type UpdatesDifference

type UpdatesDifference interface {
	tl.Object
	ImplementsUpdatesDifference()
}

type UpdatesDifferenceEmpty

type UpdatesDifferenceEmpty struct {
	Date int32
	Seq  int32
}

No events.

func (*UpdatesDifferenceEmpty) CRC

func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference

func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference()

type UpdatesDifferenceObj

type UpdatesDifferenceObj struct {
	NewMessages          []Message
	NewEncryptedMessages []EncryptedMessage
	OtherUpdates         []Update
	Chats                []Chat
	Users                []User
	State                *UpdatesState
}

Full list of occurred events.

func (*UpdatesDifferenceObj) CRC

func (*UpdatesDifferenceObj) ImplementsUpdatesDifference

func (*UpdatesDifferenceObj) ImplementsUpdatesDifference()

type UpdatesDifferenceSlice

type UpdatesDifferenceSlice struct {
	NewMessages          []Message
	NewEncryptedMessages []EncryptedMessage
	OtherUpdates         []Update
	Chats                []Chat
	Users                []User
	IntermediateState    *UpdatesState
}

Incomplete list of occurred events.

func (*UpdatesDifferenceSlice) CRC

func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference

func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference()

type UpdatesDifferenceTooLong

type UpdatesDifferenceTooLong struct {
	Pts int32
}

The difference is [too long](https://core.telegram.org/api/updates#recovering-gaps), and the specified state must be used to refetch updates.

func (*UpdatesDifferenceTooLong) CRC

func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference

func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference()

type UpdatesGetChannelDifferenceParams

type UpdatesGetChannelDifferenceParams struct {
	Force   bool `tl:"flag:0,encoded_in_bitflags"`
	Channel InputChannel
	Filter  ChannelMessagesFilter
	Pts     int32
	Limit   int32
}

func (*UpdatesGetChannelDifferenceParams) CRC

func (*UpdatesGetChannelDifferenceParams) FlagIndex

type UpdatesGetDifferenceParams

type UpdatesGetDifferenceParams struct {
	Pts           int32
	PtsLimit      int32 `tl:"flag:1"`
	PtsTotalLimit int32 `tl:"flag:0"`
	Date          int32
	Qts           int32
	QtsLimit      int32 `tl:"flag:2"`
}

func (*UpdatesGetDifferenceParams) CRC

func (*UpdatesGetDifferenceParams) FlagIndex

func (*UpdatesGetDifferenceParams) FlagIndex() int

type UpdatesGetStateParams

type UpdatesGetStateParams struct{}

func (*UpdatesGetStateParams) CRC

type UpdatesObj

type UpdatesObj struct {
	Updates []Update
	Users   []User
	Chats   []Chat
	Date    int32
	Seq     int32
}

Full constructor of updates

func (*UpdatesObj) CRC

func (*UpdatesObj) CRC() uint32

func (*UpdatesObj) ImplementsUpdates

func (*UpdatesObj) ImplementsUpdates()

type UpdatesState

type UpdatesState struct {
	Pts         int32
	Qts         int32
	Date        int32
	Seq         int32
	UnreadCount int32
}

Updates state.

func (*UpdatesState) CRC

func (*UpdatesState) CRC() uint32

type UpdatesTooLong

type UpdatesTooLong struct{}

Too many updates, it is necessary to execute [updates.getDifference](https://core.telegram.org/method/updates.getDifference).

func (*UpdatesTooLong) CRC

func (*UpdatesTooLong) CRC() uint32

func (*UpdatesTooLong) ImplementsUpdates

func (*UpdatesTooLong) ImplementsUpdates()

type UploadCdnFile

type UploadCdnFile interface {
	tl.Object
	ImplementsUploadCdnFile()
}

type UploadCdnFileObj

type UploadCdnFileObj struct {
	Bytes []byte
}

Represent a chunk of a [CDN](https://core.telegram.org/cdn) file.

func (*UploadCdnFileObj) CRC

func (*UploadCdnFileObj) CRC() uint32

func (*UploadCdnFileObj) ImplementsUploadCdnFile

func (*UploadCdnFileObj) ImplementsUploadCdnFile()

type UploadCdnFileReuploadNeeded

type UploadCdnFileReuploadNeeded struct {
	RequestToken []byte
}

The file was cleared from the temporary RAM cache of the [CDN](https://core.telegram.org/cdn) and has to be re-uploaded.

func (*UploadCdnFileReuploadNeeded) CRC

func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile

func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile()

type UploadFile

type UploadFile interface {
	tl.Object
	ImplementsUploadFile()
}

type UploadFileCdnRedirect

type UploadFileCdnRedirect struct {
	DcID          int32
	FileToken     []byte
	EncryptionKey []byte
	EncryptionIv  []byte
	FileHashes    []*FileHash
}

The file must be downloaded from a [CDN DC](https://core.telegram.org/cdn).

func (*UploadFileCdnRedirect) CRC

func (*UploadFileCdnRedirect) ImplementsUploadFile

func (*UploadFileCdnRedirect) ImplementsUploadFile()

type UploadFileObj

type UploadFileObj struct {
	Type  StorageFileType
	Mtime int32
	Bytes []byte
}

File content.

func (*UploadFileObj) CRC

func (*UploadFileObj) CRC() uint32

func (*UploadFileObj) ImplementsUploadFile

func (*UploadFileObj) ImplementsUploadFile()

type UploadGetCdnFileHashesParams

type UploadGetCdnFileHashesParams struct {
	FileToken []byte
	Offset    int64
}

func (*UploadGetCdnFileHashesParams) CRC

type UploadGetCdnFileParams

type UploadGetCdnFileParams struct {
	FileToken []byte
	Offset    int64
	Limit     int32
}

func (*UploadGetCdnFileParams) CRC

type UploadGetFileHashesParams

type UploadGetFileHashesParams struct {
	Location InputFileLocation
	Offset   int64
}

func (*UploadGetFileHashesParams) CRC

type UploadGetFileParams

type UploadGetFileParams struct {
	Precise      bool `tl:"flag:0,encoded_in_bitflags"`
	CdnSupported bool `tl:"flag:1,encoded_in_bitflags"`
	Location     InputFileLocation
	Offset       int64
	Limit        int32
}

func (*UploadGetFileParams) CRC

func (*UploadGetFileParams) CRC() uint32

func (*UploadGetFileParams) FlagIndex

func (*UploadGetFileParams) FlagIndex() int

type UploadGetWebFileParams

type UploadGetWebFileParams struct {
	Location InputWebFileLocation
	Offset   int32
	Limit    int32
}

func (*UploadGetWebFileParams) CRC

type UploadOptions

type UploadOptions struct {
	// Worker count for upload file.
	Threads int `json:"threads,omitempty"`
	//  Chunk size for upload file.
	ChunkSize int32 `json:"chunk_size,omitempty"`
	// File name for upload file.
	FileName string `json:"file_name,omitempty"`
	// output Callback for upload progress, total parts and uploaded parts.
	ProgressCallback func(totalParts int32, uploadedParts int32) `json:"-"`
}

type UploadReuploadCdnFileParams

type UploadReuploadCdnFileParams struct {
	FileToken    []byte
	RequestToken []byte
}

func (*UploadReuploadCdnFileParams) CRC

type UploadSaveBigFilePartParams

type UploadSaveBigFilePartParams struct {
	FileID         int64
	FilePart       int32
	FileTotalParts int32
	Bytes          []byte
}

func (*UploadSaveBigFilePartParams) CRC

type UploadSaveFilePartParams

type UploadSaveFilePartParams struct {
	FileID   int64
	FilePart int32
	Bytes    []byte
}

func (*UploadSaveFilePartParams) CRC

type UploadWebFile

type UploadWebFile struct {
	Size     int32
	MimeType string
	FileType StorageFileType
	Mtime    int32
	Bytes    []byte
}

Represents a chunk of an [HTTP webfile](https://core.telegram.org/api/files) downloaded through telegram's secure MTProto servers

func (*UploadWebFile) CRC

func (*UploadWebFile) CRC() uint32

type User

type User interface {
	tl.Object
	ImplementsUser()
}

type UserEmpty

type UserEmpty struct {
	ID int64
}

Empty constructor, non-existent user.

func (*UserEmpty) CRC

func (*UserEmpty) CRC() uint32

func (*UserEmpty) ImplementsUser

func (*UserEmpty) ImplementsUser()

type UserFull

type UserFull struct {
	Blocked                 bool `tl:"flag:0,encoded_in_bitflags"`
	PhoneCallsAvailable     bool `tl:"flag:4,encoded_in_bitflags"`
	PhoneCallsPrivate       bool `tl:"flag:5,encoded_in_bitflags"`
	CanPinMessage           bool `tl:"flag:7,encoded_in_bitflags"`
	HasScheduled            bool `tl:"flag:12,encoded_in_bitflags"`
	VideoCallsAvailable     bool `tl:"flag:13,encoded_in_bitflags"`
	VoiceMessagesForbidden  bool `tl:"flag:20,encoded_in_bitflags"`
	TranslationsDisabled    bool `tl:"flag:23,encoded_in_bitflags"`
	StoriesPinnedAvailable  bool `tl:"flag:26,encoded_in_bitflags"`
	BlockedMyStoriesFrom    bool `tl:"flag:27,encoded_in_bitflags"`
	WallpaperOverridden     bool `tl:"flag:28,encoded_in_bitflags"`
	ContactRequirePremium   bool `tl:"flag:29,encoded_in_bitflags"`
	ReadDatesPrivate        bool `tl:"flag:30,encoded_in_bitflags"`
	SponsoredEnabled        bool `tl:"flag2:7,encoded_in_bitflags"`
	ID                      int64
	About                   string `tl:"flag:1"`
	Settings                *PeerSettings
	PersonalPhoto           Photo `tl:"flag:21"`
	ProfilePhoto            Photo `tl:"flag:2"`
	FallbackPhoto           Photo `tl:"flag:22"`
	NotifySettings          *PeerNotifySettings
	BotInfo                 *BotInfo `tl:"flag:3"`
	PinnedMsgID             int32    `tl:"flag:6"`
	CommonChatsCount        int32
	FolderID                int32                    `tl:"flag:11"`
	TtlPeriod               int32                    `tl:"flag:14"`
	ThemeEmoticon           string                   `tl:"flag:15"`
	PrivateForwardName      string                   `tl:"flag:16"`
	BotGroupAdminRights     *ChatAdminRights         `tl:"flag:17"`
	BotBroadcastAdminRights *ChatAdminRights         `tl:"flag:18"`
	PremiumGifts            []*PremiumGiftOption     `tl:"flag:19"`
	Wallpaper               WallPaper                `tl:"flag:24"`
	Stories                 *PeerStories             `tl:"flag:25"`
	BusinessWorkHours       *BusinessWorkHours       `tl:"flag2:0"`
	BusinessLocation        *BusinessLocation        `tl:"flag2:1"`
	BusinessGreetingMessage *BusinessGreetingMessage `tl:"flag2:2"`
	BusinessAwayMessage     *BusinessAwayMessage     `tl:"flag2:3"`
	BusinessIntro           *BusinessIntro           `tl:"flag2:4"`
	Birthday                *Birthday                `tl:"flag2:5"`
	PersonalChannelID       int64                    `tl:"flag2:6"`
	PersonalChannelMessage  int32                    `tl:"flag2:6"`
}

Extended user info

func (*UserFull) CRC

func (*UserFull) CRC() uint32

func (*UserFull) FlagIndex

func (*UserFull) FlagIndex() int

type UserObj

type UserObj struct {
	Self                  bool `tl:"flag:10,encoded_in_bitflags"`
	Contact               bool `tl:"flag:11,encoded_in_bitflags"`
	MutualContact         bool `tl:"flag:12,encoded_in_bitflags"`
	Deleted               bool `tl:"flag:13,encoded_in_bitflags"`
	Bot                   bool `tl:"flag:14,encoded_in_bitflags"`
	BotChatHistory        bool `tl:"flag:15,encoded_in_bitflags"`
	BotNochats            bool `tl:"flag:16,encoded_in_bitflags"`
	Verified              bool `tl:"flag:17,encoded_in_bitflags"`
	Restricted            bool `tl:"flag:18,encoded_in_bitflags"`
	Min                   bool `tl:"flag:20,encoded_in_bitflags"`
	BotInlineGeo          bool `tl:"flag:21,encoded_in_bitflags"`
	Support               bool `tl:"flag:23,encoded_in_bitflags"`
	Scam                  bool `tl:"flag:24,encoded_in_bitflags"`
	ApplyMinPhoto         bool `tl:"flag:25,encoded_in_bitflags"`
	Fake                  bool `tl:"flag:26,encoded_in_bitflags"`
	BotAttachMenu         bool `tl:"flag:27,encoded_in_bitflags"`
	Premium               bool `tl:"flag:28,encoded_in_bitflags"`
	AttachMenuEnabled     bool `tl:"flag:29,encoded_in_bitflags"`
	BotCanEdit            bool `tl:"flag2:1,encoded_in_bitflags"`
	CloseFriend           bool `tl:"flag2:2,encoded_in_bitflags"`
	StoriesHidden         bool `tl:"flag2:3,encoded_in_bitflags"`
	StoriesUnavailable    bool `tl:"flag2:4,encoded_in_bitflags"`
	ContactRequirePremium bool `tl:"flag2:10,encoded_in_bitflags"`
	BotBusiness           bool `tl:"flag2:11,encoded_in_bitflags"`
	BotHasMainApp         bool `tl:"flag2:13,encoded_in_bitflags"`
	ID                    int64
	AccessHash            int64                `tl:"flag:0"`
	FirstName             string               `tl:"flag:1"`
	LastName              string               `tl:"flag:2"`
	Username              string               `tl:"flag:3"`
	Phone                 string               `tl:"flag:4"`
	Photo                 UserProfilePhoto     `tl:"flag:5"`
	Status                UserStatus           `tl:"flag:6"`
	BotInfoVersion        int32                `tl:"flag:14"`
	RestrictionReason     []*RestrictionReason `tl:"flag:18"`
	BotInlinePlaceholder  string               `tl:"flag:19"`
	LangCode              string               `tl:"flag:22"`
	EmojiStatus           EmojiStatus          `tl:"flag:30"`
	Usernames             []*Username          `tl:"flag2:0"`
	StoriesMaxID          int32                `tl:"flag2:5"`
	Color                 *PeerColor           `tl:"flag2:8"`
	ProfileColor          *PeerColor           `tl:"flag2:9"`
	BotActiveUsers        int32                `tl:"flag2:12"`
}

Indicates info about a certain user

func (*UserObj) CRC

func (*UserObj) CRC() uint32

func (*UserObj) FlagIndex

func (*UserObj) FlagIndex() int

func (*UserObj) ImplementsUser

func (*UserObj) ImplementsUser()

type UserPhoto

type UserPhoto struct {
	Photo Photo
}

func (*UserPhoto) DcID

func (p *UserPhoto) DcID() int32

func (*UserPhoto) FileID

func (p *UserPhoto) FileID() string

func (*UserPhoto) FileSize

func (p *UserPhoto) FileSize() int64

func (*UserPhoto) InputLocation

func (p *UserPhoto) InputLocation() (*InputPhotoFileLocation, error)

type UserProfilePhoto

type UserProfilePhoto interface {
	tl.Object
	ImplementsUserProfilePhoto()
}

type UserProfilePhotoEmpty

type UserProfilePhotoEmpty struct{}

Profile photo has not been set, or was hidden.

func (*UserProfilePhotoEmpty) CRC

func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto

func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto()

type UserProfilePhotoObj

type UserProfilePhotoObj struct {
	HasVideo      bool `tl:"flag:0,encoded_in_bitflags"`
	Personal      bool `tl:"flag:2,encoded_in_bitflags"`
	PhotoID       int64
	StrippedThumb []byte `tl:"flag:1"`
	DcID          int32
}

User profile photo.

func (*UserProfilePhotoObj) CRC

func (*UserProfilePhotoObj) CRC() uint32

func (*UserProfilePhotoObj) FlagIndex

func (*UserProfilePhotoObj) FlagIndex() int

func (*UserProfilePhotoObj) ImplementsUserProfilePhoto

func (*UserProfilePhotoObj) ImplementsUserProfilePhoto()

type UserStatus

type UserStatus interface {
	tl.Object
	ImplementsUserStatus()
}

type UserStatusEmpty

type UserStatusEmpty struct{}

User status has not been set yet.

func (*UserStatusEmpty) CRC

func (*UserStatusEmpty) CRC() uint32

func (*UserStatusEmpty) ImplementsUserStatus

func (*UserStatusEmpty) ImplementsUserStatus()

type UserStatusLastMonth

type UserStatusLastMonth struct {
	ByMe bool `tl:"flag:0,encoded_in_bitflags"`
}

Online status: last seen last month

func (*UserStatusLastMonth) CRC

func (*UserStatusLastMonth) CRC() uint32

func (*UserStatusLastMonth) FlagIndex

func (*UserStatusLastMonth) FlagIndex() int

func (*UserStatusLastMonth) ImplementsUserStatus

func (*UserStatusLastMonth) ImplementsUserStatus()

type UserStatusLastWeek

type UserStatusLastWeek struct {
	ByMe bool `tl:"flag:0,encoded_in_bitflags"`
}

Online status: last seen last week

func (*UserStatusLastWeek) CRC

func (*UserStatusLastWeek) CRC() uint32

func (*UserStatusLastWeek) FlagIndex

func (*UserStatusLastWeek) FlagIndex() int

func (*UserStatusLastWeek) ImplementsUserStatus

func (*UserStatusLastWeek) ImplementsUserStatus()

type UserStatusOffline

type UserStatusOffline struct {
	WasOnline int32
}

The user's offline status.

func (*UserStatusOffline) CRC

func (*UserStatusOffline) CRC() uint32

func (*UserStatusOffline) ImplementsUserStatus

func (*UserStatusOffline) ImplementsUserStatus()

type UserStatusOnline

type UserStatusOnline struct {
	Expires int32
}

Online status of the user.

func (*UserStatusOnline) CRC

func (*UserStatusOnline) CRC() uint32

func (*UserStatusOnline) ImplementsUserStatus

func (*UserStatusOnline) ImplementsUserStatus()

type UserStatusRecently

type UserStatusRecently struct {
	ByMe bool `tl:"flag:0,encoded_in_bitflags"`
}

Online status: last seen recently

func (*UserStatusRecently) CRC

func (*UserStatusRecently) CRC() uint32

func (*UserStatusRecently) FlagIndex

func (*UserStatusRecently) FlagIndex() int

func (*UserStatusRecently) ImplementsUserStatus

func (*UserStatusRecently) ImplementsUserStatus()

type Username

type Username struct {
	Editable bool `tl:"flag:0,encoded_in_bitflags"`
	Active   bool `tl:"flag:1,encoded_in_bitflags"`
	Username string
}

Contains information about a username.

func (*Username) CRC

func (*Username) CRC() uint32

func (*Username) FlagIndex

func (*Username) FlagIndex() int

type UsersGetFullUserParams

type UsersGetFullUserParams struct {
	ID InputUser
}

func (*UsersGetFullUserParams) CRC

type UsersGetIsPremiumRequiredToContactParams

type UsersGetIsPremiumRequiredToContactParams struct {
	ID []InputUser
}

func (*UsersGetIsPremiumRequiredToContactParams) CRC

type UsersGetUsersParams

type UsersGetUsersParams struct {
	ID []InputUser
}

func (*UsersGetUsersParams) CRC

func (*UsersGetUsersParams) CRC() uint32

type UsersSetSecureValueErrorsParams

type UsersSetSecureValueErrorsParams struct {
	ID     InputUser
	Errors []SecureValueError
}

func (*UsersSetSecureValueErrorsParams) CRC

type UsersUserFull

type UsersUserFull struct {
	FullUser *UserFull
	Chats    []Chat
	Users    []User
}

Full user information

func (*UsersUserFull) CRC

func (*UsersUserFull) CRC() uint32

type VideoSize

type VideoSize interface {
	tl.Object
	ImplementsVideoSize()
}

type VideoSizeEmojiMarkup

type VideoSizeEmojiMarkup struct {
	EmojiID          int64
	BackgroundColors []int32
}

An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) based on a [custom emoji sticker](https://core.telegram.org/api/custom-emoji).

func (*VideoSizeEmojiMarkup) CRC

func (*VideoSizeEmojiMarkup) ImplementsVideoSize

func (*VideoSizeEmojiMarkup) ImplementsVideoSize()

type VideoSizeObj

type VideoSizeObj struct {
	Type         string
	W            int32
	H            int32
	Size         int32
	VideoStartTs float64 `tl:"flag:0"`
}

An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) in MPEG4 format

func (*VideoSizeObj) CRC

func (*VideoSizeObj) CRC() uint32

func (*VideoSizeObj) FlagIndex

func (*VideoSizeObj) FlagIndex() int

func (*VideoSizeObj) ImplementsVideoSize

func (*VideoSizeObj) ImplementsVideoSize()

type VideoSizeStickerMarkup

type VideoSizeStickerMarkup struct {
	Stickerset       InputStickerSet
	StickerID        int64
	BackgroundColors []int32
}

An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) based on a [sticker](https://core.telegram.org/api/stickers).

func (*VideoSizeStickerMarkup) CRC

func (*VideoSizeStickerMarkup) ImplementsVideoSize

func (*VideoSizeStickerMarkup) ImplementsVideoSize()

type WallPaper

type WallPaper interface {
	tl.Object
	ImplementsWallPaper()
}

type WallPaperNoFile

type WallPaperNoFile struct {
	ID       int64
	Default  bool               `tl:"flag:1,encoded_in_bitflags"`
	Dark     bool               `tl:"flag:4,encoded_in_bitflags"`
	Settings *WallPaperSettings `tl:"flag:2"`
}

Represents a [wallpaper](https://core.telegram.org/api/wallpapers) only based on colors/gradients.

func (*WallPaperNoFile) CRC

func (*WallPaperNoFile) CRC() uint32

func (*WallPaperNoFile) FlagIndex

func (*WallPaperNoFile) FlagIndex() int

func (*WallPaperNoFile) ImplementsWallPaper

func (*WallPaperNoFile) ImplementsWallPaper()

type WallPaperObj

type WallPaperObj struct {
	ID         int64
	Creator    bool `tl:"flag:0,encoded_in_bitflags"`
	Default    bool `tl:"flag:1,encoded_in_bitflags"`
	Pattern    bool `tl:"flag:3,encoded_in_bitflags"`
	Dark       bool `tl:"flag:4,encoded_in_bitflags"`
	AccessHash int64
	Slug       string
	Document   Document
	Settings   *WallPaperSettings `tl:"flag:2"`
}

Represents a [wallpaper](https://core.telegram.org/api/wallpapers) based on an image.

func (*WallPaperObj) CRC

func (*WallPaperObj) CRC() uint32

func (*WallPaperObj) FlagIndex

func (*WallPaperObj) FlagIndex() int

func (*WallPaperObj) ImplementsWallPaper

func (*WallPaperObj) ImplementsWallPaper()

type WallPaperSettings

type WallPaperSettings struct {
	Blur                  bool   `tl:"flag:1,encoded_in_bitflags"`
	Motion                bool   `tl:"flag:2,encoded_in_bitflags"`
	BackgroundColor       int32  `tl:"flag:0"`
	SecondBackgroundColor int32  `tl:"flag:4"`
	ThirdBackgroundColor  int32  `tl:"flag:5"`
	FourthBackgroundColor int32  `tl:"flag:6"`
	Intensity             int32  `tl:"flag:3"`
	Rotation              int32  `tl:"flag:4"`
	Emoticon              string `tl:"flag:7"`
}

[Wallpaper](https://core.telegram.org/api/wallpapers) rendering information.

func (*WallPaperSettings) CRC

func (*WallPaperSettings) CRC() uint32

func (*WallPaperSettings) FlagIndex

func (*WallPaperSettings) FlagIndex() int

type WebAuthorization

type WebAuthorization struct {
	Hash        int64
	BotID       int64
	Domain      string
	Browser     string
	Platform    string
	DateCreated int32
	DateActive  int32
	Ip          string
	Region      string
}

Represents a bot logged in using the [Telegram login widget](https://core.telegram.org/widgets/login)

func (*WebAuthorization) CRC

func (*WebAuthorization) CRC() uint32

type WebDocument

type WebDocument interface {
	tl.Object
	ImplementsWebDocument()
}

type WebDocumentNoProxy

type WebDocumentNoProxy struct {
	URL        string
	Size       int32
	MimeType   string
	Attributes []DocumentAttribute
}

Remote document that can be downloaded without [proxying through telegram](https://core.telegram.org/api/files)

func (*WebDocumentNoProxy) CRC

func (*WebDocumentNoProxy) CRC() uint32

func (*WebDocumentNoProxy) ImplementsWebDocument

func (*WebDocumentNoProxy) ImplementsWebDocument()

type WebDocumentObj

type WebDocumentObj struct {
	URL        string
	AccessHash int64
	Size       int32
	MimeType   string
	Attributes []DocumentAttribute
}

Remote document

func (*WebDocumentObj) CRC

func (*WebDocumentObj) CRC() uint32

func (*WebDocumentObj) ImplementsWebDocument

func (*WebDocumentObj) ImplementsWebDocument()

type WebPage

type WebPage interface {
	tl.Object
	ImplementsWebPage()
}

type WebPageAttribute

type WebPageAttribute interface {
	tl.Object
	ImplementsWebPageAttribute()
}

type WebPageAttributeStickerSet

type WebPageAttributeStickerSet struct {
	Emojis    bool `tl:"flag:0,encoded_in_bitflags"`
	TextColor bool `tl:"flag:1,encoded_in_bitflags"`
	Stickers  []Document
}

func (*WebPageAttributeStickerSet) CRC

func (*WebPageAttributeStickerSet) FlagIndex

func (*WebPageAttributeStickerSet) FlagIndex() int

func (*WebPageAttributeStickerSet) ImplementsWebPageAttribute

func (*WebPageAttributeStickerSet) ImplementsWebPageAttribute()

type WebPageAttributeStory

type WebPageAttributeStory struct {
	Peer  Peer
	ID    int32
	Story StoryItem `tl:"flag:0"`
}

Webpage preview of a Telegram story

func (*WebPageAttributeStory) CRC

func (*WebPageAttributeStory) FlagIndex

func (*WebPageAttributeStory) FlagIndex() int

func (*WebPageAttributeStory) ImplementsWebPageAttribute

func (*WebPageAttributeStory) ImplementsWebPageAttribute()

type WebPageAttributeTheme

type WebPageAttributeTheme struct {
	Documents []Document     `tl:"flag:0"`
	Settings  *ThemeSettings `tl:"flag:1"`
}

Page theme

func (*WebPageAttributeTheme) CRC

func (*WebPageAttributeTheme) FlagIndex

func (*WebPageAttributeTheme) FlagIndex() int

func (*WebPageAttributeTheme) ImplementsWebPageAttribute

func (*WebPageAttributeTheme) ImplementsWebPageAttribute()

type WebPageEmpty

type WebPageEmpty struct {
	ID  int64
	URL string `tl:"flag:0"`
}

No preview is available for the webpage

func (*WebPageEmpty) CRC

func (*WebPageEmpty) CRC() uint32

func (*WebPageEmpty) FlagIndex

func (*WebPageEmpty) FlagIndex() int

func (*WebPageEmpty) ImplementsWebPage

func (*WebPageEmpty) ImplementsWebPage()

type WebPageNotModified

type WebPageNotModified struct {
	CachedPageViews int32 `tl:"flag:0"`
}

The preview of the webpage hasn't changed

func (*WebPageNotModified) CRC

func (*WebPageNotModified) CRC() uint32

func (*WebPageNotModified) FlagIndex

func (*WebPageNotModified) FlagIndex() int

func (*WebPageNotModified) ImplementsWebPage

func (*WebPageNotModified) ImplementsWebPage()

type WebPageObj

type WebPageObj struct {
	HasLargeMedia bool `tl:"flag:13,encoded_in_bitflags"`
	ID            int64
	URL           string
	DisplayURL    string
	Hash          int32
	Type          string             `tl:"flag:0"`
	SiteName      string             `tl:"flag:1"`
	Title         string             `tl:"flag:2"`
	Description   string             `tl:"flag:3"`
	Photo         Photo              `tl:"flag:4"`
	EmbedURL      string             `tl:"flag:5"`
	EmbedType     string             `tl:"flag:5"`
	EmbedWidth    int32              `tl:"flag:6"`
	EmbedHeight   int32              `tl:"flag:6"`
	Duration      int32              `tl:"flag:7"`
	Author        string             `tl:"flag:8"`
	Document      Document           `tl:"flag:9"`
	CachedPage    *Page              `tl:"flag:10"`
	Attributes    []WebPageAttribute `tl:"flag:12"`
}

Webpage preview

func (*WebPageObj) CRC

func (*WebPageObj) CRC() uint32

func (*WebPageObj) FlagIndex

func (*WebPageObj) FlagIndex() int

func (*WebPageObj) ImplementsWebPage

func (*WebPageObj) ImplementsWebPage()

type WebPagePending

type WebPagePending struct {
	ID   int64
	URL  string `tl:"flag:0"`
	Date int32
}

A preview of the webpage is currently being generated

func (*WebPagePending) CRC

func (*WebPagePending) CRC() uint32

func (*WebPagePending) FlagIndex

func (*WebPagePending) FlagIndex() int

func (*WebPagePending) ImplementsWebPage

func (*WebPagePending) ImplementsWebPage()

type WebViewMessageSent

type WebViewMessageSent struct {
	MsgID InputBotInlineMessageID `tl:"flag:0"`
}

Info about a sent inline webview message

func (*WebViewMessageSent) CRC

func (*WebViewMessageSent) CRC() uint32

func (*WebViewMessageSent) FlagIndex

func (*WebViewMessageSent) FlagIndex() int

type WebViewResultURL

type WebViewResultURL struct {
	Fullsize bool  `tl:"flag:1,encoded_in_bitflags"`
	QueryID  int64 `tl:"flag:0"`
	URL      string
}

Contains the webview URL with appropriate theme and user info parameters added

func (*WebViewResultURL) CRC

func (*WebViewResultURL) CRC() uint32

func (*WebViewResultURL) FlagIndex

func (*WebViewResultURL) FlagIndex() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL