Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API represents the Telegram API
func (*API) SendPhotoMessage ¶
func (api *API) SendPhotoMessage(mes *PhotoMessage) error
SendPhotoMessage send PhotoMessage to the Telegram API
func (*API) SendTextMessage ¶
func (api *API) SendTextMessage(mes *TextMessage) error
SendTextMessage send TextMessage to the Telegram API
type PhotoMessage ¶
type PhotoMessage struct { ChatID int64 `json:"chat_id"` Photo string `json:"photo"` Caption string `json:"caption,omitempty"` }
PhotoMessage represents PhotoMessage from Telegram API
func NewPhotoMessage ¶
func NewPhotoMessage(chatID int64, photo, text string) *PhotoMessage
NewPhotoMessage creates new PhotoMessage
type TextMessage ¶
TextMessage represents TextMessage from Telegram API
func NewTextMessage ¶
func NewTextMessage(chatID int64, text string) *TextMessage
NewTextMessage creates new TextMessage
Click to show internal directories.
Click to hide internal directories.