botbehavior

package
v0.0.0-...-b0fc717 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInlineKeyboardForEdit

func GetInlineKeyboardForEdit(edit *storage.PostSuggestedEdit) *data.TInlineKeyboard

func ShowHelp

func ShowHelp()

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 (this *Behavior) ClearPromptPostsOlderThan(bot *gogram.TelegramBot, time_ago time.Duration) error

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 (this *Behavior) GetInterval() int64

func (*Behavior) GetNoResultsPlaceholder

func (this *Behavior) GetNoResultsPlaceholder(query string) *data.TInlineQueryResultCachedPhoto

func (*Behavior) ProcessInlineQuery

func (this *Behavior) ProcessInlineQuery(ctx *gogram.InlineCtx)

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL