Documentation ¶
Index ¶
- Variables
- func CompileCbQryData(command, args string) string
- func DecompileCbQryData(cbQryData string) (command, args string)
- func DeepLinkAddContact(params *DeepLinkAddContactParameters) string
- func DeepLinkAddStickers(params *DeepLinkAddStickersParameters) string
- func DeepLinkAddTheme(params *DeepLinkAddThemeParameters) string
- func DeepLinkBg(params *DeepLinkBgParameters) string
- func DeepLinkCall(params *DeepLinkCallParameters) string
- func DeepLinkCallLog() string
- func DeepLinkConfirmPhone(params *DeepLinkConfirmPhoneParameters) string
- func DeepLinkJoin(params *DeepLinkJoinParameters) string
- func DeepLinkLogin(params *DeepLinkLoginParameters) string
- func DeepLinkMsgURL(params *DeepLinkMsgURLParameters) string
- func DeepLinkNeedUpdateForSomeFeature() string
- func DeepLinkPassport(params *DeepLinkPassportParameters) string
- func DeepLinkPrivatePost(params *DeepLinkPrivatePostParameters) string
- func DeepLinkProxy(params *DeepLinkProxyParameters) string
- func DeepLinkResolve(params *DeepLinkResolveParameters) string
- func DeepLinkScanQR() string
- func DeepLinkSearch(params *DeepLinkSearchParameters) string
- func DeepLinkSetLanguage() string
- func DeepLinkSettings(params *DeepLinkSettingsParams) string
- func DeepLinkShareGameScore(params *DeepLinkShareGameScoreParameters) string
- func DeepLinkSocks(params *DeepLinkSocksParameters) string
- func DeepLinkSomeUnsupportedFeature() string
- func DeepLinkStatsRefresh() string
- func DeepLinkTON(domain string, method string, fields url.Values) string
- func DeepLinkToTMeLink(str string) string
- func DeepLinkUser(params *DeepLinkUserParameters) string
- func LinkChannel(username telegrambot.Username, postid telegrambot.MessageID) string
- func LinkChannelPost(username telegrambot.Username, postid telegrambot.MessageID) string
- func LinkPhoneNumber(phoneNumber string) string
- func LinkTelescope(username telegrambot.Username, postid telegrambot.MessageID) string
- func LinkUsername(username telegrambot.Username) string
- func ParseMessageCommand(msg *telegrambot.Message) (command string, args string)
- func StartChatAction(api telegrambot.API, params *telegrambot.SendChatActionParameters) (cancel func(), err error)
- type DeepLinkAddContactParameters
- type DeepLinkAddStickersParameters
- type DeepLinkAddThemeParameters
- type DeepLinkBgParameters
- type DeepLinkCallParameters
- type DeepLinkConfirmPhoneParameters
- type DeepLinkJoinParameters
- type DeepLinkLoginParameters
- type DeepLinkMsgURLParameters
- type DeepLinkPassportParameters
- type DeepLinkPrivatePostParameters
- type DeepLinkProxyParameters
- type DeepLinkResolveParameters
- type DeepLinkSearchParameters
- type DeepLinkSettingsParams
- type DeepLinkShareGameScoreParameters
- type DeepLinkSocksParameters
- type DeepLinkUserParameters
- type LocaleHTML
- type LocaleText
- type ReplyKeyboardHandler
- func (rkh ReplyKeyboardHandler) HandleMessageKeyboardButton(msg *telegrambot.Message) (handled bool, err error)
- func (rkh ReplyKeyboardHandler) ReplyMarkup() telegrambot.ReplyMarkup
- func (rkh ReplyKeyboardHandler) ReplyMarkupWithOptions(options telegrambot.ReplyKeyboardMarkup) telegrambot.ReplyMarkup
- type ReplyKeyboardHandlerButton
Constants ¶
This section is empty.
Variables ¶
View Source
var FallbackLanguageCode = telegrambot.LanguageCodeEnglish
View Source
var FallbackSpecificLanguageCodes = map[telegrambot.LanguageCode]telegrambot.LanguageCode{ telegrambot.LanguageCodeBelarusian: telegrambot.LanguageCodeRussian, telegrambot.LanguageCodeUkrainian: telegrambot.LanguageCodeRussian, }
Functions ¶
func CompileCbQryData ¶
Compiles callback data in command-args type
func DecompileCbQryData ¶
Decompiles callback data in command-args type
func DeepLinkAddContact ¶
func DeepLinkAddContact(params *DeepLinkAddContactParameters) string
func DeepLinkAddStickers ¶
func DeepLinkAddStickers(params *DeepLinkAddStickersParameters) string
func DeepLinkAddTheme ¶
func DeepLinkAddTheme(params *DeepLinkAddThemeParameters) string
func DeepLinkBg ¶
func DeepLinkBg(params *DeepLinkBgParameters) string
func DeepLinkCall ¶
func DeepLinkCall(params *DeepLinkCallParameters) string
func DeepLinkCallLog ¶
func DeepLinkCallLog() string
func DeepLinkConfirmPhone ¶
func DeepLinkConfirmPhone(params *DeepLinkConfirmPhoneParameters) string
func DeepLinkJoin ¶
func DeepLinkJoin(params *DeepLinkJoinParameters) string
func DeepLinkLogin ¶
func DeepLinkLogin(params *DeepLinkLoginParameters) string
func DeepLinkMsgURL ¶
func DeepLinkMsgURL(params *DeepLinkMsgURLParameters) string
func DeepLinkNeedUpdateForSomeFeature ¶
func DeepLinkNeedUpdateForSomeFeature() string
func DeepLinkPassport ¶
func DeepLinkPassport(params *DeepLinkPassportParameters) string
func DeepLinkPrivatePost ¶
func DeepLinkPrivatePost(params *DeepLinkPrivatePostParameters) string
func DeepLinkProxy ¶
func DeepLinkProxy(params *DeepLinkProxyParameters) string
func DeepLinkResolve ¶
func DeepLinkResolve(params *DeepLinkResolveParameters) string
func DeepLinkScanQR ¶
func DeepLinkScanQR() string
func DeepLinkSearch ¶
func DeepLinkSearch(params *DeepLinkSearchParameters) string
func DeepLinkSetLanguage ¶
func DeepLinkSetLanguage() string
func DeepLinkSettings ¶
func DeepLinkSettings(params *DeepLinkSettingsParams) string
func DeepLinkShareGameScore ¶
func DeepLinkShareGameScore(params *DeepLinkShareGameScoreParameters) string
func DeepLinkSocks ¶
func DeepLinkSocks(params *DeepLinkSocksParameters) string
func DeepLinkSomeUnsupportedFeature ¶
func DeepLinkSomeUnsupportedFeature() string
func DeepLinkStatsRefresh ¶
func DeepLinkStatsRefresh() string
Something related to getStatsURL, probably not implemented yet
func DeepLinkToTMeLink ¶
Does not works with all deep links, for example with username links
func LinkChannel ¶
func LinkChannel(username telegrambot.Username, postid telegrambot.MessageID) string
func LinkChannelPost ¶
func LinkChannelPost(username telegrambot.Username, postid telegrambot.MessageID) string
func LinkPhoneNumber ¶
func LinkTelescope ¶
func LinkTelescope(username telegrambot.Username, postid telegrambot.MessageID) string
func LinkUsername ¶
func LinkUsername(username telegrambot.Username) string
func ParseMessageCommand ¶
func ParseMessageCommand(msg *telegrambot.Message) (command string, args string)
func StartChatAction ¶
func StartChatAction(api telegrambot.API, params *telegrambot.SendChatActionParameters) (cancel func(), err error)
Types ¶
type DeepLinkAddStickersParameters ¶
type DeepLinkAddStickersParameters struct {
Set telegrambot.StickerSetName `url:"set,omitempty"`
}
type DeepLinkAddThemeParameters ¶
type DeepLinkAddThemeParameters struct {
Slug string `url:"slug,omitempty"`
}
type DeepLinkBgParameters ¶
type DeepLinkBgParameters struct { // wallpaper Slug string `url:"slug,omitempty"` // blur+motion Mode string `url:"mode,omitempty"` Color string `url:"color,omitempty"` BgColor string `url:"bg_color,omitempty"` Rotation string `url:"rotation,omitempty"` Intensity string `url:"intensity,omitempty"` }
type DeepLinkCallParameters ¶
type DeepLinkJoinParameters ¶
type DeepLinkJoinParameters struct {
Invite string `url:"invite,omitempty"`
}
type DeepLinkLoginParameters ¶
type DeepLinkPassportParameters ¶
type DeepLinkPassportParameters struct { Scope string `url:"scope,omitempty"` Nonce string `url:"nonce,omitempty"` Payload string `url:"payload,omitempty"` BotID telegrambot.UserID `url:"bot_id,omitempty"` PublicKey string `url:"public_key,omitempty"` CallbackURL string `url:"callback_url,omitempty"` }
type DeepLinkPrivatePostParameters ¶
type DeepLinkPrivatePostParameters struct { Channel telegrambot.ChatID `url:"channel,omitempty"` Post telegrambot.MessageID `url:"post,omitempty"` Thread telegrambot.MessageID `url:"thread,omitempty"` Comment telegrambot.MessageID `url:"comment,omitempty"` }
type DeepLinkProxyParameters ¶
type DeepLinkResolveParameters ¶
type DeepLinkResolveParameters struct { // Target username Domain telegrambot.Username `url:"domain,omitempty"` // Start parameters for private chat with bot Start string `url:"start,omitempty"` // Start parameters for selected chat with bot Startgroup string `url:"startgroup,omitempty"` // Game short name Game telegrambot.GameShortName `url:"game,omitempty"` // Message id Post telegrambot.MessageID `url:"post,omitempty"` // Thread message id Thread telegrambot.MessageID `url:"thread,omitempty"` // Thread Comment message id Comment telegrambot.MessageID `url:"comment,omitempty"` BotID telegrambot.UserID `url:"bot_id,omitempty"` PublicKey string `url:"public_key,omitempty"` CallbackURL string `url:"callback_url,omitempty"` Nonce string `url:"nonce,omitempty"` Payload string `url:"payload,omitempty"` Scope string `url:"scope,omitempty"` }
type DeepLinkSearchParameters ¶
type DeepLinkSearchParameters struct {
Query string `url:"query,omitempty"`
}
type DeepLinkSettingsParams ¶
type DeepLinkShareGameScoreParameters ¶
type DeepLinkShareGameScoreParameters struct {
}type DeepLinkSocksParameters ¶
type DeepLinkUserParameters ¶
type DeepLinkUserParameters struct {
ID telegrambot.UserID `url:"id,omitempty"`
}
type LocaleHTML ¶
type LocaleHTML[ExecData any] map[telegrambot.LanguageCode]*templatehtml.Template
func NewLocaleHTML ¶
func NewLocaleHTML[ExecData any](patterns map[telegrambot.LanguageCode]string) (LocaleHTML[ExecData], error)
func NewMustLocaleHTML ¶
func NewMustLocaleHTML[ExecData any](patterns map[telegrambot.LanguageCode]string) LocaleHTML[ExecData]
func (LocaleHTML[ExecData]) Execute ¶
func (lh LocaleHTML[ExecData]) Execute(lc telegrambot.LanguageCode, data ExecData) (string, error)
func (LocaleHTML[ExecData]) MustExecute ¶
func (lh LocaleHTML[ExecData]) MustExecute(lc telegrambot.LanguageCode, data ExecData) string
func (LocaleHTML[ExecData]) String ¶
func (lh LocaleHTML[ExecData]) String(lc telegrambot.LanguageCode) string
type LocaleText ¶
type LocaleText[ExecData any] map[telegrambot.LanguageCode]*templatetext.Template
func NewLocaleText ¶
func NewLocaleText[ExecData any](patterns map[telegrambot.LanguageCode]string) (LocaleText[ExecData], error)
func NewMustLocaleText ¶
func NewMustLocaleText[ExecData any](patterns map[telegrambot.LanguageCode]string) LocaleText[ExecData]
func (LocaleText[ExecData]) Execute ¶
func (lt LocaleText[ExecData]) Execute(lc telegrambot.LanguageCode, data ExecData) (string, error)
func (LocaleText[ExecData]) MustExecute ¶
func (lt LocaleText[ExecData]) MustExecute(lc telegrambot.LanguageCode, data ExecData) string
func (LocaleText[ExecData]) String ¶
func (lt LocaleText[ExecData]) String(lc telegrambot.LanguageCode) string
type ReplyKeyboardHandler ¶
type ReplyKeyboardHandler [][]ReplyKeyboardHandlerButton
func (ReplyKeyboardHandler) HandleMessageKeyboardButton ¶
func (rkh ReplyKeyboardHandler) HandleMessageKeyboardButton(msg *telegrambot.Message) (handled bool, err error)
func (ReplyKeyboardHandler) ReplyMarkup ¶
func (rkh ReplyKeyboardHandler) ReplyMarkup() telegrambot.ReplyMarkup
func (ReplyKeyboardHandler) ReplyMarkupWithOptions ¶
func (rkh ReplyKeyboardHandler) ReplyMarkupWithOptions(options telegrambot.ReplyKeyboardMarkup) telegrambot.ReplyMarkup
Click to show internal directories.
Click to hide internal directories.