e2e

package
v0.109.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package e2e contains end-to-end updates processing test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entities added in v0.51.0

type Entities struct {
	Users             map[int64]*tg.User
	Chats             map[int64]*tg.Chat
	Channels          map[int64]*tg.Channel
	ChannelsForbidden map[int64]*tg.ChannelForbidden
}

Entities contains update entities.

func NewEntities added in v0.51.0

func NewEntities() *Entities

NewEntities creates new Entities.

func (*Entities) AsChats added in v0.51.0

func (e *Entities) AsChats() []tg.ChatClass

AsChats returns chats as tg.ChatClass slice.

func (*Entities) AsUsers added in v0.51.0

func (e *Entities) AsUsers() []tg.UserClass

AsUsers returns users as tg.UserClass slice.

func (*Entities) FromUpdates added in v0.51.0

func (e *Entities) FromUpdates(u interface {
	tg.UpdatesClass
	MapUsers() tg.UserClassArray
	MapChats() tg.ChatClassArray
}) *Entities

FromUpdates method.

func (*Entities) Merge added in v0.51.0

func (e *Entities) Merge(from *Entities)

Merge merges entities.

type EventBuilder

type EventBuilder struct {
	// contains filtered or unexported fields
}

EventBuilder struct.

func (*EventBuilder) SendMessage

func (e *EventBuilder) SendMessage(from *tg.PeerUser, peer tg.PeerClass, text string)

SendMessage send a new message.

Jump to

Keyboard shortcuts

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