Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TelegramChatTypeMap = map[string]TelegramChatType{ "channel": Channel, "group": Group, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Send(c Chattable) (Response, error) Reply(c Chattable, identifier string) (Response, error) }
func NewTelegramClient ¶
func NewTelegramClient(token, credential string, chatType TelegramChatType) (Client, error)
func NewTwitterClient ¶
type TelegramChatType ¶
type TelegramChatType int64
const ( Channel TelegramChatType = 0 Group TelegramChatType = 1 )
func ParseTelegramChatType ¶
func ParseTelegramChatType(str string) (TelegramChatType, bool)
type TelegramClient ¶
type TelegramClient struct {
// contains filtered or unexported fields
}
type TextAndImageUrl ¶
func (TextAndImageUrl) Method ¶
func (tiu TextAndImageUrl) Method() string
func (TextAndImageUrl) Value ¶
func (tiu TextAndImageUrl) Value() map[string]string
type TwitterClient ¶
type TwitterClient struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.