Documentation ¶
Index ¶
- func GetInlineKeyboardForEdit(edit *storage.PostSuggestedEdit) *data.TInlineKeyboard
- func ShowHelp()
- type Behavior
- func (this *Behavior) ApiResultsToInlineResponse(query, blacklist string, search_results apitypes.TPostInfoArray, ...) data.OInlineQueryAnswer
- func (this *Behavior) ClearPromptPostsOlderThan(bot *gogram.TelegramBot, time_ago time.Duration) error
- func (this *Behavior) DismissPromptPost(tx storage.DBLike, bot *gogram.TelegramBot, post_info *storage.PromptPostInfo, ...) error
- func (this *Behavior) DoMaintenance(bot *gogram.TelegramBot)
- func (this *Behavior) GetBlacklistedPlaceholder(query string) *data.TInlineQueryResultCachedPhoto
- func (this *Behavior) GetErrorPlaceholder() *data.TInlineQueryResultCachedPhoto
- func (this *Behavior) GetInterval() int64
- func (this *Behavior) GetNoResultsPlaceholder(query string) *data.TInlineQueryResultCachedPhoto
- func (this *Behavior) ProcessInlineQuery(ctx *gogram.InlineCtx)
- func (this *Behavior) ProcessInlineQueryResult(ctx *gogram.InlineResultCtx)
- func (this *Behavior) ProcessMessage(ctx *gogram.MessageCtx)
- func (this *Behavior) PromptPost(bot *gogram.TelegramBot, post_info *storage.PromptPostInfo, id int, ...) *storage.PromptPostInfo
- func (this *Behavior) StartMaintenanceAsync(bot *gogram.TelegramBot) chan bool
- type QuerySettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInlineKeyboardForEdit ¶
func GetInlineKeyboardForEdit(edit *storage.PostSuggestedEdit) *data.TInlineKeyboard
Types ¶
type Behavior ¶
type Behavior struct { ForwardTo *gogram.MessageStateMachine MySettings settings.Settings // contains filtered or unexported fields }
func (*Behavior) ApiResultsToInlineResponse ¶
func (this *Behavior) ApiResultsToInlineResponse(query, blacklist string, search_results apitypes.TPostInfoArray, current_offset int, err error, q QuerySettings) data.OInlineQueryAnswer
func (*Behavior) ClearPromptPostsOlderThan ¶
func (*Behavior) DismissPromptPost ¶
func (this *Behavior) DismissPromptPost(tx storage.DBLike, bot *gogram.TelegramBot, post_info *storage.PromptPostInfo, diff tags.TagDiff) error
func (*Behavior) DoMaintenance ¶
func (this *Behavior) DoMaintenance(bot *gogram.TelegramBot)
func (*Behavior) GetBlacklistedPlaceholder ¶
func (this *Behavior) GetBlacklistedPlaceholder(query string) *data.TInlineQueryResultCachedPhoto
func (*Behavior) GetErrorPlaceholder ¶
func (this *Behavior) GetErrorPlaceholder() *data.TInlineQueryResultCachedPhoto
func (*Behavior) GetInterval ¶
func (*Behavior) GetNoResultsPlaceholder ¶
func (this *Behavior) GetNoResultsPlaceholder(query string) *data.TInlineQueryResultCachedPhoto
func (*Behavior) ProcessInlineQuery ¶
inline query, do tag search.
func (*Behavior) ProcessInlineQueryResult ¶
func (this *Behavior) ProcessInlineQueryResult(ctx *gogram.InlineResultCtx)
func (*Behavior) ProcessMessage ¶
func (this *Behavior) ProcessMessage(ctx *gogram.MessageCtx)
func (*Behavior) PromptPost ¶
func (this *Behavior) PromptPost(bot *gogram.TelegramBot, post_info *storage.PromptPostInfo, id int, post *apitypes.TPostInfo, edit *storage.PostSuggestedEdit) *storage.PromptPostInfo
func (*Behavior) StartMaintenanceAsync ¶
func (this *Behavior) StartMaintenanceAsync(bot *gogram.TelegramBot) chan bool
type QuerySettings ¶
type QuerySettings struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.