Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type CallbackQuery ¶
type GetUpdatesReq ¶
type PsErrorCatching ¶
type PsFixedTxt ¶
type SendMessage ¶
type UpdType ¶
type UpdType string
const ( UtMessage UpdType = "message" UtEditedMessage UpdType = "edited_message" UtChannelPost UpdType = "channel_post" UtEditedChannelPost UpdType = "edited_channel_post" UtInluneQuery UpdType = "inline_query" UtChosenInlineResult UpdType = "chosen_inline_result" UtCallbackQuery UpdType = "callback_query" UtShippingQuery UpdType = "shipping_query" UtPreCheckoutQuery UpdType = "pre_checkout_query" UtPoll UpdType = "poll" UtPollAnswer UpdType = "poll_answer" UtMyChatMember UpdType = "my_chat_member" UtChatMember UpdType = "chat_member" UtChatJoinRequest UpdType = "chat_join_request" )
type Update ¶
type Update struct {
UpdateId int32 `json:"update_id"`
Message Message `json:"message"`
CallbackQuery CallbackQuery `json:"callback_query"`
}
type Updates ¶
type Updates struct {
// contains filtered or unexported fields
}
func UpdatesPolling ¶
func (*Updates) FetchUpdates ¶
func (u *Updates) FetchUpdates(req GetUpdatesReq) ([]Update, error)
func (*Updates) NextUpdate ¶
Click to show internal directories.
Click to hide internal directories.