Documentation
¶
Index ¶
- Constants
- func PushEntry(feed *model.Feed, entry *model.Entry, botToken, chatID string, topicID *int64, ...) error
- type BaseResponse
- type Chat
- type Client
- type InlineKeyboard
- type InlineKeyboardButton
- type InlineKeyboardRow
- type Message
- type MessageRequest
- type MessageResponse
- type User
- type UserResponse
Constants ¶
View Source
const ( MarkdownFormatting = "Markdown" MarkdownV2Formatting = "MarkdownV2" HTMLFormatting = "HTML" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseResponse ¶ added in v2.0.48
type Client ¶ added in v2.0.48
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendMessage ¶ added in v2.0.48
func (c *Client) SendMessage(message *MessageRequest) (*Message, error)
type InlineKeyboard ¶ added in v2.0.48
type InlineKeyboard struct {
InlineKeyboard []InlineKeyboardRow `json:"inline_keyboard"`
}
type InlineKeyboardButton ¶ added in v2.0.48
type InlineKeyboardRow ¶ added in v2.0.48
type InlineKeyboardRow []*InlineKeyboardButton
type MessageRequest ¶ added in v2.0.48
type MessageRequest struct { ChatID string `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id,omitempty"` Text string `json:"text"` ParseMode string `json:"parse_mode,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview"` DisableNotification bool `json:"disable_notification"` ReplyMarkup *InlineKeyboard `json:"reply_markup,omitempty"` }
type MessageResponse ¶ added in v2.0.48
type MessageResponse struct { BaseResponse Result Message `json:"result"` }
type User ¶ added in v2.0.48
type User struct { ID int64 `json:"id"` IsBot bool `json:"is_bot"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Username string `json:"username"` LanguageCode string `json:"language_code"` IsPremium bool `json:"is_premium"` CanJoinGroups bool `json:"can_join_groups"` CanReadAllGroupMessages bool `json:"can_read_all_group_messages"` SupportsInlineQueries bool `json:"supports_inline_queries"` }
type UserResponse ¶ added in v2.0.48
type UserResponse struct { BaseResponse Result User `json:"result"` }
Click to show internal directories.
Click to hide internal directories.