owpengram-server/internal/store/postgres/sqlcgen/models.go

1727 lines
38 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
package sqlcgen
import (
"github.com/jackc/pgx/v5/pgtype"
)
type AccountPassword struct {
UserID int64
HasRecovery bool
HasSecureValues bool
HasPassword bool
Hint string
EmailUnconfirmedPattern string
LoginEmailPattern string
SecureRandom []byte
UpdatedAt pgtype.Timestamptz
CurrentAlgoSalt1 []byte
CurrentAlgoSalt2 []byte
CurrentAlgoG int32
CurrentAlgoP []byte
SrpID int64
SrpVerifier []byte
SrpBSecret []byte
SrpB []byte
RecoveryEmail string
RecoveryCode string
RecoveryCodeExpiresAt pgtype.Timestamptz
LoginEmail string
}
type AccountPrivacyRule struct {
OwnerUserID int64
PrivacyKey string
Rules []byte
UpdatedAt pgtype.Timestamptz
}
type AccountReactionSetting struct {
UserID int64
MessagesNotifyFrom string
StoriesNotifyFrom string
PollVotesNotifyFrom string
ShowPreviews bool
DefaultReactionType string
DefaultReactionValue string
PaidPrivacyKind string
PaidPrivacyPeerType *string
PaidPrivacyPeerID *int64
UpdatedAt pgtype.Timestamptz
}
type AccountSendRestriction struct {
UserID int64
Frozen bool
Reason string
Actor string
CommandID string
UpdatedAt pgtype.Timestamptz
}
type AccountSetting struct {
UserID int64
ArchiveAndMuteNewNoncontactPeers bool
KeepArchivedUnmuted bool
KeepArchivedFolders bool
HideReadMarks bool
NewNoncontactPeersRequirePremium bool
DisplayGiftsButton bool
NoncontactPeersPaidStars int64
AccountTtlDays int32
SensitiveContentEnabled bool
ContactSignupSilent bool
UpdatedAt pgtype.Timestamptz
}
type AdminAuditLog struct {
ID int64
CommandID string
Actor string
Action string
TargetUserID int64
TargetPeerType string
TargetPeerID int64
DryRun bool
Reason string
Request []byte
Result []byte
Status string
Error string
CreatedAt pgtype.Timestamptz
}
type AdminCommand struct {
CommandID string
Actor string
Action string
TargetUserID int64
TargetPeerType string
TargetPeerID int64
DryRun bool
Reason string
Request []byte
Result []byte
Status string
Error string
CreatedAt pgtype.Timestamptz
CompletedAt pgtype.Timestamptz
}
type AiComposeTone struct {
ID int64
AccessHash int64
OwnerUserID int64
Slug string
Title string
EmojiID int64
Prompt string
DisplayAuthor bool
InstallsCount int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type AiComposeToneSafe struct {
UserID int64
ToneID int64
SavedAt pgtype.Timestamptz
}
type AppConfig struct {
Client string
Hash int32
ConfigJson []byte
UpdatedAt pgtype.Timestamptz
}
type AttachMenuBot struct {
BotUserID int64
AppID *int64
ShortName string
Inactive bool
HasSettings bool
RequestWriteAccess bool
ShowInAttachMenu bool
ShowInSideMenu bool
SideMenuDisclaimerNeeded bool
PeerTypes []string
Icons []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type AttachMenuUserState struct {
UserID int64
BotUserID int64
Enabled bool
WriteAllowed bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type AuthKey struct {
AuthKeyID int64
Body []byte
ServerSalt int64
CreatedAt pgtype.Timestamptz
Layer int32
DeviceModel string
Platform string
SystemVersion string
ApiID int32
AppVersion string
LastUsedAt pgtype.Timestamptz
}
type Authorization struct {
AuthKeyID int64
UserID int64
Hash int64
Layer int32
DeviceModel string
Platform string
SystemVersion string
ApiID int32
AppVersion string
Ip string
CreatedAt pgtype.Timestamptz
ActiveAt pgtype.Timestamptz
PasswordPending bool
}
type AvailableReaction struct {
Reaction string
Title string
Inactive bool
Premium bool
StaticIconID int64
AppearAnimationID int64
SelectAnimationID int64
ActivateAnimationID int64
EffectAnimationID int64
AroundAnimationID int64
CenterIconID int64
SortOrder int32
}
type BootstrapUpdateJob struct {
ID int64
Kind string
UserID int64
AuthKeyID int64
SessionID int64
MessageBoxID int32
Status string
Attempts int32
LastError string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
ReadyAt pgtype.Timestamptz
PublishedAt pgtype.Timestamptz
}
type Bot struct {
BotUserID int64
OwnerUserID int64
TokenSecret string
Description string
Commands []byte
BotChatHistory bool
BotNochats bool
InlinePlaceholder string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
MenuButtonType int16
MenuButtonText string
MenuButtonUrl string
BotInlineGeo bool
}
type BotApiUpdate struct {
ID int64
BotUserID int64
UpdateKind string
PeerType string
PeerID int64
MessageID int32
SourcePts int32
Date int32
CreatedAt pgtype.Timestamptz
}
type BotApiUpdateState struct {
BotUserID int64
ConfirmedUpdateID int64
UpdatedAt pgtype.Timestamptz
}
type BotApp struct {
ID int64
BotUserID int64
ShortName string
Title string
Description string
Url string
PhotoID int64
DocumentID int64
AccessHash int64
Hash int64
Inactive bool
RequestWriteAccess bool
HasSettings bool
IsMain bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BotAppPreviewMedium struct {
ID int64
BotUserID int64
AppID int64
Position int32
PhotoID int64
DocumentID int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BotAppSetting struct {
BotUserID int64
PlaceholderPath []byte
BackgroundColor *int32
BackgroundDarkColor *int32
HeaderColor *int32
HeaderDarkColor *int32
UpdatedAt pgtype.Timestamptz
}
type BotChatState struct {
BotUserID int64
UserID int64
State []byte
UpdatedAt pgtype.Timestamptz
}
type BotEmojiStatusPermission struct {
BotUserID int64
UserID int64
Allowed bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BotUserPermission struct {
BotUserID int64
UserID int64
FromRequest bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BusinessAutomationDelivery struct {
OwnerUserID int64
PeerUserID int64
Kind string
TriggerMessageID int32
ShortcutID int32
SentAt int32
CreatedAt pgtype.Timestamptz
}
type BusinessChatLink struct {
Slug string
OwnerUserID int64
Link string
Message string
Entities []byte
Title string
Views int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BusinessConnectedBot struct {
OwnerUserID int64
BotUserID int64
Recipients []byte
Rights []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BusinessConnectedBotPeerState struct {
OwnerUserID int64
PeerUserID int64
Paused bool
Disabled bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type Channel struct {
ID int64
AccessHash int64
CreatorUserID int64
Title string
About string
Username *string
Broadcast bool
Megagroup bool
Forum bool
ForumTabs bool
Noforwards bool
JoinToSend bool
JoinRequest bool
Signatures bool
PreHistoryHidden bool
ParticipantsHidden bool
Antispam bool
LinkedChatID int64
SlowmodeSeconds int32
DefaultBannedRights []byte
AvailableReactions []byte
ColorSet bool
Color int32
ColorBackgroundEmojiID int64
ProfileColorSet bool
ProfileColor int32
ProfileColorBackgroundEmojiID int64
EmojiStatusDocumentID int64
EmojiStatusUntil int32
ParticipantsCount int32
AdminsCount int32
KickedCount int32
BannedCount int32
TopMessageID int32
Pts int32
AdminLogSeq int64
TtlPeriod int32
Date int32
Deleted bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
PinnedMessageID int32
Autotranslation bool
RestrictedSponsored bool
BroadcastMessagesAllowed bool
SendPaidMessagesStars int64
PhotoID int64
PhotoDcID int32
PhotoStripped []byte
ReadInboxTop1UserID int64
ReadInboxTop1 int32
ReadInboxTop2 int32
ActiveCallID int64
ActiveCallAccessHash int64
ActiveCallNotEmpty bool
BoostsUnrestrict int32
Monoforum bool
LinkedMonoforumID int64
Wallpaper []byte
Verified bool
}
type ChannelAdminLogEvent struct {
ChannelID int64
ID int64
ActorUserID int64
EventDate int32
EventType string
PrevString string
NewString string
PrevBool bool
NewBool bool
PrevInt int32
NewInt int32
PrevParticipant []byte
NewParticipant []byte
Participant []byte
Message []byte
PrevMessage []byte
NewMessage []byte
Query string
CreatedAt pgtype.Timestamptz
}
type ChannelBoostSlot struct {
UserID int64
Slot int32
PeerType string
PeerID int64
AssignedAt int32
ExpiresAt int32
CooldownUntil int32
Multiplier int32
Gift bool
Giveaway bool
Unclaimed bool
GiveawayMsgID int32
UsedGiftSlug string
Stars int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChannelDialog struct {
UserID int64
ChannelID int64
FolderID int32
TopMessageID int32
TopMessageDate int32
ReadInboxMaxID int32
ReadOutboxMaxID int32
UnreadCount int32
UnreadMentionsCount int32
UnreadReactionsCount int32
Pinned bool
PinnedOrder int32
UnreadMark bool
ViewForumAsMessages bool
NotifySettings []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DefaultSendAsPeerType *string
DefaultSendAsPeerID *int64
HasScheduled bool
}
type ChannelForumTopic struct {
ChannelID int64
TopicID int32
CreatorUserID int64
Title string
IconColor int32
IconEmojiID int64
TitleMissing bool
Closed bool
Hidden bool
Pinned bool
PinnedOrder int32
Date int32
TopMessageID int32
ReadInboxMaxID int32
ReadOutboxMaxID int32
UnreadCount int32
UnreadMentionsCount int32
UnreadReactionsCount int32
UnreadPollVotesCount int32
Deleted bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChannelInvite struct {
ChannelID int64
InviteID int64
Hash string
AdminUserID int64
Title string
Permanent bool
Revoked bool
RequestNeeded bool
ExpireDate *int32
UsageLimit *int32
UsageCount int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
RequestedCount int32
}
type ChannelInviteHash struct {
Hash string
ChannelID int64
InviteID int64
UpdatedAt pgtype.Timestamptz
}
type ChannelInviteImporter struct {
ChannelID int64
InviteID int64
UserID int64
Date int32
Requested bool
ApprovedBy int64
ViaChatlist bool
About string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChannelMediaCategoryCount struct {
ChannelID int64
Category int16
MediaCount int32
UpdatedAt pgtype.Timestamptz
}
type ChannelMember struct {
ChannelID int64
UserID int64
InviterUserID int64
Role string
Status string
JoinedAt int32
LeftAt int32
AdminRights []byte
BannedRights []byte
Rank string
AvailableMinID int32
AvailableMinPts int32
ReadInboxMaxID int32
ReadInboxDate int32
ReadOutboxMaxID int32
UnreadMark bool
SlowmodeLastSendDate int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChannelMessage struct {
ChannelID int64
ID int32
RandomID int64
SenderUserID int64
FromPeerType string
FromPeerID int64
SendAsPeerType *string
SendAsPeerID *int64
MessageDate int32
EditDate int32
Post bool
Silent bool
Noforwards bool
Body string
Entities []byte
ReplyTo []byte
ReplyToMsgID int32
ReplyToPeerType string
ReplyToPeerID int64
ReplyToTopID int32
FwdFrom []byte
DiscussionChannelID int64
DiscussionMessageID int32
Action []byte
Pts int32
Deleted bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
ViewsCount int32
Media []byte
TtlPeriod int32
ExpiresAt int32
PostAuthor string
Pinned bool
ViaBotID int64
ReplyMarkup []byte
FromBoostsApplied int32
RichMessage []byte
GroupedID int64
SavedPeerType string
SavedPeerID int64
SendSnapshot []byte
DeletePts int32
DeletePtsCount int32
DeleteDate int32
DeleteMessageIds []byte
}
type ChannelMessageMedium struct {
ChannelID int64
ID int32
Category int16
MessageDate int32
}
type ChannelMessagePaidReaction struct {
ChannelID int64
MessageID int32
ReactorUserID int64
Stars int64
Anonymous bool
ReactionDate int32
}
type ChannelMessageReaction struct {
ChannelID int64
MessageID int32
ReactedUserID int64
SenderUserID int64
ReactionType string
ReactionValue string
Big bool
Unread bool
ChosenOrder int32
ReactionDate int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChannelMessageViewer struct {
ChannelID int64
MessageID int32
ViewerUserID int64
ViewedAt int32
CreatedAt pgtype.Timestamptz
}
type ChannelTopicRead struct {
ChannelID int64
UserID int64
TopicID int32
ReadInboxMaxID int32
ReadOutboxMaxID int32
ReadInboxDate int32
UpdatedAt pgtype.Timestamptz
}
type ChannelUnreadMention struct {
UserID int64
ChannelID int64
MessageID int32
TopMessageID int32
CreatedAt pgtype.Timestamptz
MediaUnread bool
Unread bool
}
type ChannelUnreadMentionIndex struct {
ChannelID int64
MessageID int32
UserID int64
CreatedAt pgtype.Timestamptz
}
type ChannelUpdateCheckpoint struct {
ChannelID int64
RetainedThroughPts int32
LatestEventDate int32
LatestPts int32
UpdatedAt pgtype.Timestamptz
}
type ChannelUpdateEvent struct {
ChannelID int64
Pts int32
PtsCount int32
Date int32
EventType string
MessageID int32
MessageIds []byte
SenderUserID int64
UserIds []byte
Payload []byte
CreatedAt pgtype.Timestamptz
}
type ChatlistInvite struct {
ID int64
OwnerUserID int64
FilterID int32
Slug string
Title string
Peers []byte
Revoked bool
Deleted bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ChatlistMembership struct {
UserID int64
LocalFilterID int32
OwnerUserID int64
OwnerFilterID int32
Slug string
HiddenUpdates bool
JoinedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type Contact struct {
UserID int64
ContactUserID int64
Mutual bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
ContactPhone string
ContactFirstName string
ContactLastName string
Note string
NoteEntities []byte
CloseFriend bool
StoriesHidden bool
PersonalPhotoID int64
PersonalPhotoDate int32
}
type ContactBlock struct {
OwnerUserID int64
BlockedUserID int64
Date int32
CreatedAt pgtype.Timestamptz
}
type Country struct {
Iso2 string
DefaultName string
Name string
Hidden bool
OrderIndex int32
UpdatedAt pgtype.Timestamptz
}
type CountryCode struct {
ID int64
Iso2 string
CountryCode string
Prefixes []string
Patterns []string
OrderIndex int32
}
type Dialog struct {
UserID int64
PeerType string
PeerID int64
TopMessageID int32
TopMessageDate int32
ReadInboxMaxID int32
ReadOutboxMaxID int32
UnreadCount int32
UnreadMentionsCount int32
UnreadReactionsCount int32
Pinned bool
UpdatedAt pgtype.Timestamptz
PinnedOrder int32
UnreadMark bool
HiddenPeerSettingsBar bool
FolderID int32
TtlPeriod int32
HasScheduled bool
ThemeEmoticon string
}
type DialogDraft struct {
UserID int64
PeerType string
PeerID int64
TopMessageID int32
Date int32
Draft []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DialogFilter struct {
UserID int64
FilterID int32
IsChatlist bool
Filter []byte
OrderValue int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DialogFilterSetting struct {
UserID int64
TagsEnabled bool
UpdatedAt pgtype.Timestamptz
ArchivePinned bool
ArchivePinnedOrder int32
}
type DispatchOutbox struct {
ID int64
TargetUserID int64
Pts int32
EventType string
ExcludeSessionID int64
ExcludeAuthKeyID int64
Status string
Attempts int32
NextAttemptAt pgtype.Timestamptz
LastError string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DispatchOutboxUserHead struct {
TargetUserID int64
HeadID int64
HeadPts int32
LogicalShard *int16
Status string
NextAttemptAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type Document struct {
ID int64
AccessHash int64
FileReference []byte
Date int32
MimeType string
Size int64
DcID int32
Attributes []byte
Thumbs []byte
CreatedAt pgtype.Timestamptz
}
type EncryptedFile struct {
ID int64
AccessHash int64
OwnerUserID int64
Size int64
DcID int32
KeyFingerprint int32
CreatedAt pgtype.Timestamptz
}
type EncryptedMessageQueue struct {
ReceiverAuthKeyID int64
Qts int32
ReceiverUserID int64
ChatID int32
RandomID int64
Date int32
IsService bool
Bytes []byte
FileID *int64
FileAccessHash *int64
FileSize *int64
FileDcID *int32
FileKeyFingerprint *int32
Acked bool
CreatedAt pgtype.Timestamptz
}
type EncryptedStateEvent struct {
ID int64
TargetUserID int64
TargetAuthKeyID int64
ChatID int32
EventType int16
MaxDate int32
Date int32
CreatedAt pgtype.Timestamptz
}
type EncryptedStateEventDelivery struct {
EventID int64
AuthKeyID int64
}
type FileBlob struct {
LocationKey string
Backend string
ObjectKey string
Size int64
Sha256 []byte
MimeType string
CreatedAt pgtype.Timestamptz
}
type GroupCall struct {
CallID int64
AccessHash int64
ChannelID int64
CreatorUserID int64
State string
Title string
JoinMuted bool
Version int32
ParticipantsCount int32
CreatedAt int32
DiscardedAt int32
Duration int32
StartedMsgID int32
Kind string
InviteSlug string
InviteLink string
RandomID int64
MigratedFromPhoneCallID int64
RtmpStream bool
ScheduleDate int32
}
type GroupCallChainBlock struct {
CallID int64
SubChainID int32
BlockOffset int32
Block []byte
CreatedAt int32
AuthorUserID int64
}
type GroupCallInvite struct {
CallID int64
InviterUserID int64
InviteeUserID int64
MessageID int32
Status string
Video bool
CreatedAt int32
UpdatedAt int32
}
type GroupCallParticipant struct {
CallID int64
UserID int64
Ssrc int64
JoinDate int32
ActiveDate int32
Muted bool
MutedByAdmin bool
VolumeByAdmin int32
RaiseHandRating int64
VideoJson []byte
PresentationJson []byte
LeftCall bool
LastCheckDate int32
PublicKey []byte
JoinBlock []byte
JoinAsChannelID int64
}
type GroupCallParticipantOverride struct {
CallID int64
SetterUserID int64
TargetUserID int64
MutedByYou bool
Volume int32
}
type GroupCallRtmpKey struct {
ChannelID int64
StreamKey string
UpdatedAt int32
}
type GroupCallScheduleSubscriber struct {
CallID int64
UserID int64
}
type LangPack struct {
LangPack string
LangCode string
Version int32
StringsCount int32
UpdatedAt pgtype.Timestamptz
}
type LangPackString struct {
LangPack string
LangCode string
Key string
Version int32
Pluralized bool
Value string
ZeroValue string
OneValue string
TwoValue string
FewValue string
ManyValue string
OtherValue string
Deleted bool
UpdatedAt pgtype.Timestamptz
}
type MessageBox struct {
OwnerUserID int64
BoxID int32
PrivateMessageID int64
MessageSenderID int64
PeerType string
PeerID int64
FromUserID int64
MessageDate int32
Outgoing bool
Body string
Entities []byte
Pts int32
Deleted bool
CreatedAt pgtype.Timestamptz
EditDate int32
Silent bool
Noforwards bool
ReplyToMsgID int32
ReplyToPeerType string
ReplyToPeerID int64
ReplyToTopID int32
QuoteText string
QuoteEntities []byte
QuoteOffset int32
FwdFromPeerType string
FwdFromPeerID int64
FwdFromName string
FwdDate int32
Media []byte
MediaUnread bool
ReactionUnread bool
TtlPeriod int32
ExpiresAt int32
Pinned bool
SavedPeerType string
SavedPeerID int64
FwdSavedFromPeerType string
FwdSavedFromPeerID int64
FwdSavedFromMsgID int32
ReplyMarkup []byte
ViaBotID int64
RichMessage []byte
GroupedID int64
ReplyToStoryID int32
Effect int64
HideEdited bool
}
type MessageBoxMedium struct {
OwnerUserID int64
BoxID int32
PeerID int64
Category int16
MessageDate int32
}
type NotifySetting struct {
OwnerUserID int64
ScopeKind string
PeerType string
PeerID int64
TopicID int32
ShowPreviews *bool
Silent *bool
MuteUntil *int32
StoriesMuted *bool
StoriesHideSender *bool
UpdatedAt pgtype.Timestamptz
}
type PasskeyCredential struct {
CredentialID []byte
UserID int64
PublicKey []byte
SignCount int64
Aaguid []byte
Name string
Transports []string
CreatedAt pgtype.Timestamptz
LastUsedAt pgtype.Timestamptz
}
type PeerStarGift struct {
ID int64
OwnerPeerID int64
FromUserID int64
GiftID int64
MsgID int32
GiftDate int32
NameHidden bool
Unsaved bool
Converted bool
ConvertStars int64
Message string
OwnerPeerType string
SavedID int64
}
type PeerUsername struct {
UsernameLower string
PeerType string
PeerID int64
UpdatedAt pgtype.Timestamptz
}
type Photo struct {
ID int64
AccessHash int64
FileReference []byte
Date int32
DcID int32
HasStickers bool
Sizes []byte
CreatedAt pgtype.Timestamptz
}
type Poll struct {
PollID int64
CreatorUserID int64
MultipleChoice bool
Quiz bool
PublicVoters bool
RevotingDisabled bool
HideResults bool
Closed bool
ClosePeriod int32
CloseDate int32
Options []byte
CorrectOptions []byte
Solution string
SolutionEntities []byte
CreatedAt pgtype.Timestamptz
}
type PollVote struct {
PollID int64
UserID int64
Options []byte
VoteDate int32
CreatedAt pgtype.Timestamptz
}
type PrivateMediaCategoryCount struct {
OwnerUserID int64
PeerID int64
Category int16
MediaCount int32
UpdatedAt pgtype.Timestamptz
}
type PrivateMessage struct {
ID int64
SenderUserID int64
RecipientUserID int64
RandomID int64
MessageDate int32
Body string
Entities []byte
CreatedAt pgtype.Timestamptz
EditDate int32
Silent bool
Noforwards bool
ReplyToMsgID int32
ReplyToPeerType string
ReplyToPeerID int64
ReplyToTopID int32
QuoteText string
QuoteEntities []byte
QuoteOffset int32
FwdFromPeerType string
FwdFromPeerID int64
FwdFromName string
FwdDate int32
Media []byte
TtlPeriod int32
ExpiresAt int32
ReplyMarkup []byte
ViaBotID int64
RichMessage []byte
GroupedID int64
ReplyToStoryID int32
Effect int64
HideEdited bool
RequestFingerprint []byte
RecipientDelivered bool
SenderBoxID int32
SenderPts int32
RecipientBoxID int32
RecipientPts int32
SenderSnapshot []byte
SenderDeletePts int32
SenderDeletePtsCount int32
SenderDeleteDate int32
SenderDeleteMessageIds []byte
}
type PrivateMessageReaction struct {
MessageSenderID int64
PrivateMessageID int64
UserID int64
ReactionType string
ReactionValue string
Big bool
ReactionDate int32
ChosenOrder int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ProfilePhoto struct {
OwnerPeerType string
OwnerPeerID int64
PhotoID int64
Date int32
Active bool
SortOrder int64
CreatedAt pgtype.Timestamptz
Kind string
}
type QuickReply struct {
OwnerUserID int64
ShortcutID int32
Shortcut string
SortOrder int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type QuickReplyMessage struct {
OwnerUserID int64
ShortcutID int32
MessageID int32
RandomID int64
MessageDate int32
Body string
Entities []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ReadModelVersion struct {
Model string
OwnerUserID int64
PeerType string
PeerID int64
Version int64
UpdatedAt pgtype.Timestamptz
Hash int64
}
type SavedDialogPin struct {
UserID int64
PeerType string
PeerID int64
PinnedOrder int32
CreatedAt pgtype.Timestamptz
}
type SavedMusic struct {
UserID int64
DocumentID int64
SortOrder int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ScheduledMessage struct {
OwnerUserID int64
ScheduledID int32
PeerType string
PeerID int64
RandomID int64
MessageDate int32
Body string
Entities []byte
Media []byte
RichMessage []byte
Silent bool
Noforwards bool
ReplyToMsgID int32
ReplyToPeerType string
ReplyToPeerID int64
ReplyToTopID int32
QuoteText string
QuoteEntities []byte
QuoteOffset int32
FwdFromPeerType string
FwdFromPeerID int64
FwdFromName string
FwdDate int32
SendAsPeerType string
SendAsPeerID int64
ScheduleDate int32
ScheduleRepeatPeriod int32
State string
LeaseUntil int32
SentMessageID int32
LastError string
CreatedAt int32
UpdatedAt int32
}
type SecretChat struct {
ChatID int32
AdminAccessHash int64
ParticipantAccessHash int64
AdminUserID int64
AdminAuthKeyID int64
ParticipantUserID int64
ParticipantAuthKeyID int64
State string
GA []byte
GB []byte
KeyFingerprint int64
Layer int32
FolderID int32
HistoryDeleted bool
RandomID int32
Date int32
CreatedAt pgtype.Timestamptz
}
type SecretQtsWatermark struct {
AuthKeyID int64
ReservedQts int32
ConfirmedQts int32
UpdatedAt pgtype.Timestamptz
}
type SeedState struct {
Key string
ContentHash string
UpdatedAt pgtype.Timestamptz
}
type StarsBalance struct {
UserID int64
Balance int64
Granted bool
UpdatedAt pgtype.Timestamptz
}
type StarsTransaction struct {
ID int64
UserID int64
PeerType string
PeerID int64
Amount int64
Reason string
Title string
Description string
Date int32
}
type StickerSet struct {
ID int64
AccessHash int64
ShortName string
Title string
Count int32
Hash int32
SetKind string
Official bool
Animated bool
Videos bool
Emojis bool
Masks bool
Installed bool
Archived bool
InstalledDate int32
ThumbDocumentID int64
Thumbs []byte
ThumbDcID int32
ThumbVersion int32
DocumentIds []byte
Packs []byte
SortOrder int32
SystemKey string
CreatedAt pgtype.Timestamptz
CreatorUserID int64
TextColor bool
Deleted bool
Software string
Keywords []byte
UpdatedAt pgtype.Timestamptz
}
type Story struct {
OwnerPeerType string
OwnerPeerID int64
StoryID int32
RandomID int64
Date int32
ExpireDate int32
Deleted bool
Pinned bool
Public bool
CloseFriends bool
Contacts bool
SelectedContacts bool
Noforwards bool
Edited bool
PrivacyRules []byte
AllowUserIds []int64
DisallowUserIds []int64
Caption string
Entities []byte
Media []byte
MediaAreas []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
PinnedToTopOrder int32
FwdFrom []byte
}
type StoryExposure struct {
OwnerPeerType string
OwnerPeerID int64
StoryID int32
ViewerUserID int64
Date int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type StoryHiddenPeer struct {
ViewerUserID int64
OwnerPeerType string
OwnerPeerID int64
UpdatedAt pgtype.Timestamptz
}
type StoryReadState struct {
ViewerUserID int64
OwnerPeerType string
OwnerPeerID int64
MaxReadID int32
Date int32
UpdatedAt pgtype.Timestamptz
}
type StoryView struct {
OwnerPeerType string
OwnerPeerID int64
StoryID int32
ViewerUserID int64
Date int32
Reaction []byte
UpdatedAt pgtype.Timestamptz
}
type TempAuthKeyBinding struct {
TempAuthKeyID int64
PermAuthKeyID int64
Nonce int64
ExpiresAt int32
EncryptedMessage []byte
CreatedAt pgtype.Timestamptz
TempSessionID int64
}
type Theme struct {
ID int64
AccessHash int64
CreatorUserID int64
Slug string
Title string
Emoticon string
ForChat bool
DocumentID int64
Settings []byte
InstallsCount int32
CreatedAt pgtype.Timestamptz
}
type ThemeUserInstall struct {
UserID int64
ThemeID int64
Dark bool
InstalledAt pgtype.Timestamptz
}
type UpdateState struct {
AuthKeyID int64
Pts int32
Qts int32
Date int32
Seq int32
UpdatedAt pgtype.Timestamptz
UserID int64
ObservedPts int32
}
type UploadPart struct {
OwnerUserID int64
FileID int64
Part int32
TotalParts int32
IsBig bool
CreatedAt pgtype.Timestamptz
Backend string
ObjectKey string
Size int64
Sha256 []byte
}
type UploadedMediaReceipt struct {
OwnerUserID int64
FileID int64
IntentHash []byte
MediaKind string
MediaID int64
CreatedAt pgtype.Timestamptz
}
type User struct {
ID int64
AccessHash int64
Phone string
FirstName string
LastName string
Username string
CountryCode string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
Verified bool
Support bool
About string
LastSeenAt int64
DefaultHistoryTtlPeriod int32
IsBot bool
BotInfoVersion int32
PremiumExpiresAt pgtype.Timestamptz
EmojiStatusDocumentID int64
EmojiStatusUntil int64
ColorSet bool
Color int32
ColorBackgroundEmojiID int64
ProfileColorSet bool
ProfileColor int32
ProfileColorBackgroundEmojiID int64
BirthdayDay int32
BirthdayMonth int32
BirthdayYear int32
PersonalChannelID int64
}
type UserBusinessProfile struct {
UserID int64
WorkHours []byte
Location []byte
Intro []byte
GreetingMessage []byte
AwayMessage []byte
UpdatedAt pgtype.Timestamptz
}
type UserChannelMemberIndex struct {
UserID int64
ChannelID int64
Status string
Megagroup bool
Broadcast bool
Deleted bool
UpdatedAt pgtype.Timestamptz
Role string
LeftAt int32
Forum bool
PublicUsername bool
CanPinMessages bool
}
type UserRecentReaction struct {
UserID int64
ReactionType string
ReactionValue string
ReactionDate int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type UserSavedReactionTag struct {
UserID int64
ReactionType string
ReactionValue string
Title string
ReactionCount int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type UserStickerCollection struct {
OwnerUserID int64
Kind string
DocumentID int64
UsedAt int32
}
type UserStickerSet struct {
OwnerUserID int64
StickerSetID int64
SetKind string
Archived bool
InstalledDate int32
OrderValue int64
UpdatedAt pgtype.Timestamptz
}
type UserTopReaction struct {
UserID int64
ReactionType string
ReactionValue string
ReactionCount int32
ReactionDate int32
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type UserUpdateEvent struct {
UserID int64
Pts int32
PtsCount int32
Date int32
EventType string
MessageBoxID *int32
PeerType *string
PeerID *int64
MaxID int32
StillUnreadCount int32
CreatedAt pgtype.Timestamptz
EventBool bool
EventPeers []byte
PeerSettings []byte
MessageIds []byte
DialogFilter []byte
FilterOrder []byte
FolderPeers []byte
FilterID int32
TagsEnabled bool
ChannelPts int32
FolderID int32
QuickReplies []byte
QuickReplyMessage []byte
StoryPayload []byte
ReactionPayload []byte
EventPhone string
}
type UserUpdateRetention struct {
UserID int64
RetainedThroughPts int32
RetainedThroughDate int32
UpdatedAt pgtype.Timestamptz
}
type UserUpdateWatermark struct {
UserID int64
ContiguousPts int32
UpdatedAt pgtype.Timestamptz
}
type WebPage struct {
UrlHash int64
WebPageID int64
State string
Snapshot []byte
CreatedAt int64
RefreshedAt int64
}
type WebviewCustomMethodQuery struct {
ID string
BotUserID int64
UserID int64
CustomMethod string
Params []byte
CreatedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
}
type WebviewRequestedButton struct {
WebappReqID string
BotUserID int64
UserID int64
ButtonID int32
Text string
PeerType string
MaxQuantity int32
CreatedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
}