e2e

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func NewEntities() *Entities

NewEntities creates new Entities.

func (*Entities) AsChats

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

AsChats returns chats as tg.ChatClass slice.

func (*Entities) AsUsers

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

AsUsers returns users as tg.UserClass slice.

func (*Entities) FromUpdates

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

FromUpdates method.

func (*Entities) Merge

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