telega32

package
v0.7.76 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

zhub4 - Система домашней автоматизации на Go Copyright (c) 2023 GSB, Georgii Batanov gbatanov @ yandex.ru

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ChatId int64
	Msg    string
}

Сообщения снаружи боту

type Tlg32

type Tlg32 struct {
	MyId int64

	Flag bool

	MsgChan         chan Message
	CmdToController chan string
	// contains filtered or unexported fields
}

We inherit the bot to rewrite the function for receiving updates

func Tlg32Create

func Tlg32Create(botName string, mode string, tokenPath string, myId int64, msgChan chan Message, cmdChan chan string) *Tlg32

func (*Tlg32) My_get_updates_chan

func (bot *Tlg32) My_get_updates_chan(config tgbotapi.UpdateConfig) tgbotapi.UpdatesChannel

GetUpdatesChan starts and returns a channel for getting updates.

func (*Tlg32) Run

func (bot *Tlg32) Run() error

func (*Tlg32) Stop

func (bot *Tlg32) Stop()

Jump to

Keyboard shortcuts

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