Versions in this module Expand all Collapse all v0 v0.0.2 Aug 11, 2024 v0.0.1 Aug 11, 2024 Changes in this version + const APIEndpoint + const ChatFindLocation + const ChatRecordAudio + const ChatRecordVideo + const ChatTyping + const ChatUploadAudio + const ChatUploadDocument + const ChatUploadPhoto + const ChatUploadVideo + const ErrAPIForbidden + const ErrBadFileType + const ErrBadURL + const FileEndpoint + const ModeHTML + const ModeMarkdown + func DeleteMessage(L *lua.LState) int + func EditMessageCaption(L *lua.LState) int + func EditMessageReplyMarkup(L *lua.LState) int + func EditMessageText(L *lua.LState) int + func ForwardMessage(L *lua.LState) int + func GetOffset(L *lua.LState) int + func GetUpdates(L *lua.LState) int + func Loader(L *lua.LState) int + func NewBot(L *lua.LState) int + func Preload(L *lua.LState) + func SendMessage(L *lua.LState) int + func SendPhoto(L *lua.LState) int + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters *ResponseParameters + Result json.RawMessage + type Animation struct + FileID string + FileName string + FileSize int + MimeType string + Thumb PhotoSize + type AnimationConfig struct + Caption string + Duration int + ParseMode string + type Audio struct + Duration int + FileID string + FileSize int + MimeType string + Performer string + Title string + type AudioConfig struct + Caption string + Duration int + ParseMode string + Performer string + Title string + type BaseChat struct + ChatID int64 + DisableNotification bool + ReplyMarkup interface{} + ReplyToMessageID int + UserName string + type BaseEdit struct + ChannelUsername string + ChatID int64 + InlineMessageID string + MessageID int + ReplyMarkup *InlineKeyboardMarkup + type BaseFile struct + File interface{} + FileID string + FileSize int + MimeType string + UseExisting bool + type CallbackConfig struct + CacheTime int + CallbackQueryID string + ShowAlert bool + Text string + URL string + type CallbackGame struct + type CallbackQuery struct + ChatInstance string + Data string + From *User + GameShortName string + ID string + InlineMessageID string + Message *Message + type Chat struct + AllMembersAreAdmins bool + Description string + FirstName string + ID int64 + InviteLink string + LastName string + Photo *ChatPhoto + Title string + Type string + UserName string + func (c Chat) ChatConfig() ChatConfig + func (c Chat) IsChannel() bool + func (c Chat) IsGroup() bool + func (c Chat) IsPrivate() bool + func (c Chat) IsSuperGroup() bool + type ChatActionConfig struct + Action string + type ChatAnimation struct + Duration int + FileID string + FileName string + FileSize int + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type ChatConfig struct + ChatID int64 + SuperGroupUsername string + type ChatConfigWithUser struct + ChatID int64 + SuperGroupUsername string + UserID int + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + Status string + UntilDate int64 + User *User + func (chat ChatMember) HasLeft() bool + func (chat ChatMember) IsAdministrator() bool + func (chat ChatMember) IsCreator() bool + func (chat ChatMember) IsMember() bool + func (chat ChatMember) WasKicked() bool + type ChatMemberConfig struct + ChannelUsername string + ChatID int64 + SuperGroupUsername string + UserID int + type ChatPhoto struct + BigFileID string + SmallFileID string + type Chattable interface + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int + type ContactConfig struct + FirstName string + LastName string + PhoneNumber string + type Credentials struct + Data SecureData + Nonce string + type DataCredentials struct + DataHash string + Secret string + type DeleteChatPhotoConfig struct + ChatID int64 + type DeleteMessageConfig struct + ChatID int64 + MessageID int + type Document struct + FileID string + FileName string + FileSize int + MimeType string + Thumbnail *PhotoSize + type DocumentConfig struct + Caption string + ParseMode string + type EditMessageCaptionConfig struct + Caption string + ParseMode string + type EditMessageReplyMarkupConfig struct + type EditMessageTextConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []PassportFile + FrontSide *PassportFile + PhoneNumber string + ReverseSide *PassportFile + Selfie *PassportFile + Type string + type Error struct + Message string + func (e Error) Error() string + type File struct + FileID string + FilePath string + FileSize int + func (f *File) Link(token string) string + type FileBytes struct + Bytes []byte + Name string + type FileConfig struct + FileID string + type FileCredentials struct + FileHash string + Secret string + type FileReader struct + Name string + Reader io.Reader + Size int64 + type Fileable interface + type ForceReply struct + ForceReply bool + Selective bool + type ForwardConfig struct + FromChannelUsername string + FromChatID int64 + MessageID int + type Game struct + Animation Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameConfig struct + GameShortName string + type GameHighScore struct + Position int + Score int + User User + type GetGameHighScoresConfig struct + ChannelUsername string + ChatID int + InlineMessageID string + MessageID int + UserID int + type GroupChat struct + ID int + Title string + type IDDocumentData struct + DocumentNumber string + ExpiryDate string + type InlineConfig struct + CacheTime int + InlineQueryID string + IsPersonal bool + NextOffset string + Results []interface{} + SwitchPMParameter string + SwitchPMText string + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL *string + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + type InlineQuery struct + From *User + ID string + Location *Location + Offset string + Query string + type InlineQueryResultArticle struct + Description string + HideURL bool + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + type InlineQueryResultAudio struct + Caption string + Duration int + ID string + InputMessageContent interface{} + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + type InlineQueryResultDocument struct + Caption string + Description string + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + type InlineQueryResultGIF struct + Caption string + Duration int + Height int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultGame struct + GameShortName string + ID string + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultLocation struct + ID string + InputMessageContent interface{} + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + type InlineQueryResultMPEG4GIF struct + Caption string + Duration int + Height int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultPhoto struct + Caption string + Description string + Height int + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultVideo struct + Caption string + Description string + Duration int + Height int + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultVoice struct + Caption string + Duration int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + type InputLocationMessageContent struct + Latitude float64 + Longitude float64 + type InputMediaPhoto struct + Caption string + Media string + ParseMode string + Type string + type InputMediaVideo struct + Caption string + Duration int + Height int + Media string + ParseMode string + SupportsStreaming bool + Type string + Width int + type InputTextMessageContent struct + DisableWebPagePreview bool + ParseMode string + Text string + type InputVenueMessageContent struct + Address string + FoursquareID string + Latitude float64 + Longitude float64 + Title string + type Invoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int + type InvoiceConfig struct + Currency string + Description string + IsFlexible bool + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices *[]LabeledPrice + ProviderToken string + StartParameter string + Title string + type KeyboardButton struct + RequestContact bool + RequestLocation bool + Text string + type KickChatMemberConfig struct + UntilDate int64 + type LabeledPrice struct + Amount int + Label string + type Location struct + Latitude float64 + Longitude float64 + type LocationConfig struct + Latitude float64 + Longitude float64 + type MediaGroupConfig struct + InputMedia []interface{} + type Message struct + Animation *ChatAnimation + Audio *Audio + Caption string + ChannelChatCreated bool + Chat *Chat + Contact *Contact + Date int + DeleteChatPhoto bool + Document *Document + EditDate int + Entities *[]MessageEntity + ForwardDate int + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID int + From *User + Game *Game + GroupChatCreated bool + Invoice *Invoice + LeftChatMember *User + Location *Location + MessageID int + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatMembers *[]User + NewChatPhoto *[]PhotoSize + NewChatTitle string + PassportData *PassportData + Photo *[]PhotoSize + PinnedMessage *Message + ReplyToMessage *Message + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + SuperGroupChatCreated bool + Text string + Venue *Venue + Video *Video + VideoNote *VideoNote + Voice *Voice + func (m *Message) Command() string + func (m *Message) CommandArguments() string + func (m *Message) CommandWithAt() string + func (m *Message) IsCommand() bool + func (m *Message) Time() time.Time + type MessageConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + type MessageEntity struct + Length int + Offset int + Type string + URL string + User *User + func (entity MessageEntity) ParseURL() (*url.URL, error) + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress *ShippingAddress + type PassportData struct + Credentials *EncryptedCredentials + Data []EncryptedPassportElement + type PassportElementError interface + type PassportElementErrorDataField struct + DataHash string + FieldName string + Message string + Source string + Type string + type PassportElementErrorFile struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorFiles struct + FileHashes []string + Message string + Source string + Type string + type PassportElementErrorFrontSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorReverseSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorSelfie struct + FileHash string + Message string + Source string + Type string + type PassportFile struct + FileDate int64 + FileID string + FileSize int + type PassportRequestInfoConfig struct + BotID int + Nonce string + PublicKey string + Scope *PassportScope + type PassportScope struct + Data []PassportScopeElement + V int + type PassportScopeElement interface + ScopeType func() string + type PassportScopeElementOne struct + NativeNames bool + Selfie bool + Translation bool + Type string + func (eo *PassportScopeElementOne) ScopeType() string + type PassportScopeElementOneOfSeveral struct + func (eo *PassportScopeElementOneOfSeveral) ScopeType() string + type PersonalDetails struct + BirthDate string + CountryCode string + FirstName string + FirstNameNative string + Gender string + LastName string + LastNameNative string + MiddleName string + MiddleNameNative string + ResidenceCountryCode string + type PhotoConfig struct + Caption string + ParseMode string + type PhotoSize struct + FileID string + FileSize int + Height int + Width int + type PinChatMessageConfig struct + ChatID int64 + DisableNotification bool + MessageID int + type PreCheckoutConfig struct + ErrorMessage string + OK bool + PreCheckoutQueryID string + type PreCheckoutQuery struct + Currency string + From *User + ID string + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID string + TotalAmount int + type PromoteChatMemberConfig struct + CanChangeInfo *bool + CanDeleteMessages *bool + CanEditMessages *bool + CanInviteUsers *bool + CanPinMessages *bool + CanPostMessages *bool + CanPromoteMembers *bool + CanRestrictMembers *bool + type ReplyKeyboardHide struct + HideKeyboard bool + Selective bool + type ReplyKeyboardMarkup struct + Keyboard [][]KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + type ResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type RestrictChatMemberConfig struct + CanAddWebPagePreviews *bool + CanSendMediaMessages *bool + CanSendMessages *bool + CanSendOtherMessages *bool + UntilDate int64 + type SecureData map[string]*SecureValue + type SecureValue struct + Data *DataCredentials + Files []*FileCredentials + FrontSide *FileCredentials + ReverseSide *FileCredentials + Selfie *FileCredentials + Translation []*FileCredentials + type SetChatDescriptionConfig struct + ChatID int64 + Description string + type SetChatPhotoConfig struct + type SetChatTitleConfig struct + ChatID int64 + Title string + type SetGameScoreConfig struct + ChannelUsername string + ChatID int64 + DisableEditMessage bool + Force bool + InlineMessageID string + MessageID int + Score int + UserID int + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingConfig struct + ErrorMessage string + OK bool + ShippingOptions *[]ShippingOption + ShippingQueryID string + type ShippingOption struct + ID string + Prices *[]LabeledPrice + Title string + type ShippingQuery struct + From *User + ID string + InvoicePayload string + ShippingAddress *ShippingAddress + type Sticker struct + Emoji string + FileID string + FileSize int + Height int + SetName string + Thumbnail *PhotoSize + Width int + type StickerConfig struct + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID string + TelegramPaymentChargeID string + TotalAmount int + type UnpinChatMessageConfig struct + ChatID int64 + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + InlineQuery *InlineQuery + Message *Message + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + UpdateID int + type UpdateConfig struct + Limit int + Offset int + Timeout int + type UpdatesChannel <-chan Update + func (ch UpdatesChannel) Clear() + type User struct + FirstName string + ID int + IsBot bool + LanguageCode string + LastName string + UserName string + func (u *User) String() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type UserProfilePhotosConfig struct + Limit int + Offset int + UserID int + type Venue struct + Address string + FoursquareID string + Location Location + Title string + type VenueConfig struct + Address string + FoursquareID string + Latitude float64 + Longitude float64 + Title string + type Video struct + Duration int + FileID string + FileSize int + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type VideoConfig struct + Caption string + Duration int + ParseMode string + type VideoNote struct + Duration int + FileID string + FileSize int + Length int + Thumbnail *PhotoSize + type VideoNoteConfig struct + Duration int + Length int + type Voice struct + Duration int + FileID string + FileSize int + MimeType string + type VoiceConfig struct + Caption string + Duration int + ParseMode string + type WebhookConfig struct + Certificate interface{} + MaxConnections int + URL *url.URL + type WebhookInfo struct + HasCustomCertificate bool + LastErrorDate int + LastErrorMessage string + PendingUpdateCount int + URL string + func (info WebhookInfo) IsSet() bool