chat

package
v0.0.0-...-ded2988 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ChatId        int64
	Query         string
	QueryId       string
	Inline        bool
	CallBack      bool
	MessageId     int
	CallBackQuery *tgbotapi.CallbackQuery
}

func (*Chat) GetCallBackQuery

func (c *Chat) GetCallBackQuery() *tgbotapi.CallbackQuery

func (*Chat) GetChatId

func (c *Chat) GetChatId() int64

func (*Chat) GetMessageId

func (c *Chat) GetMessageId() int

func (*Chat) GetQuery

func (c *Chat) GetQuery() string

func (*Chat) GetQueryId

func (c *Chat) GetQueryId() string

func (*Chat) HandleQuery

func (c *Chat) HandleQuery() error

func (*Chat) IsCallBack

func (c *Chat) IsCallBack() bool

func (*Chat) IsInline

func (c *Chat) IsInline() bool

func (*Chat) SetMessageId

func (c *Chat) SetMessageId(id int)

type Info

type Info interface {
	GetQuery() string
	GetChatId() int64
	GetQueryId() string
	IsInline() bool
	IsCallBack() bool
	GetCallBackQuery() *tgbotapi.CallbackQuery
	SetMessageId(int)
	GetMessageId() int
	HandleQuery() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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