Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
From struct {
TCP *TCP `yaml:"tcp,omitempty"`
TelegramBot *TelegramBot `yaml:"telegram_bot,omitempty"`
} `yaml:"from"`
To struct {
TCP *TCP `yaml:"tcp,omitempty"`
TelegramBot *TelegramBot `yaml:"telegram_bot,omitempty"`
} `yaml:"to"`
}
type TelegramBot ¶
func (*TelegramBot) InitFrom ¶
func (tb *TelegramBot) InitFrom(channel chan string)
func (*TelegramBot) InitTo ¶
func (tb *TelegramBot) InitTo(channel chan string)
type TelegramItem ¶
type TelegramItem struct {
Message TelegramItemMessage `json:"message"`
UpdateID int64 `json:"update_id"`
}
type TelegramItemChat ¶
type TelegramItemChat struct {
ChatID int64 `json:"id"`
}
type TelegramItemMessage ¶
type TelegramItemMessage struct {
Text string `json:"text"`
Chat TelegramItemChat `json:"chat"`
}
type TelegramResult ¶
type TelegramResult struct {
Ok bool `json:"ok"`
Result []TelegramItem `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.