session

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_attachment_proto protoreflect.FileDescriptor

Functions

func GetMentionChatFromCtxStore

func GetMentionChatFromCtxStore(ctx tb.Context) (*tb.Chat, bool)

func Marshal

func Marshal(a *Attachment) string

Marshal encodes to a string

Types

type Attachment

type Attachment struct {
	UserId   int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SourceId uint32 `protobuf:"varint,2,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// contains filtered or unexported fields
}

func UnmarshalAttachment

func UnmarshalAttachment(data string) (*Attachment, error)

Unmarshal Attachment parses the transmitted information from a string

func (*Attachment) Descriptor deprecated

func (*Attachment) Descriptor() ([]byte, []int)

Deprecated: Use Attachment.ProtoReflect.Descriptor instead.

func (*Attachment) GetSourceId

func (x *Attachment) GetSourceId() uint32

func (*Attachment) GetUserId

func (x *Attachment) GetUserId() int64

func (*Attachment) ProtoMessage

func (*Attachment) ProtoMessage()

func (*Attachment) ProtoReflect

func (x *Attachment) ProtoReflect() protoreflect.Message

func (*Attachment) Reset

func (x *Attachment) Reset()

func (*Attachment) String

func (x *Attachment) String() string

type BotContextStoreKey

type BotContextStoreKey string

EntityType is a MessageEntity type.

const (
	StoreKeyMentionChat BotContextStoreKey = "mention_chat"
)

func (BotContextStoreKey) String

func (k BotContextStoreKey) String() string

Jump to

Keyboard shortcuts

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