Documentation ¶
Overview ¶
This file is part of manifold. Manifold is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Manifold is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with manifold. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- func GetUserName(user tele.User) string
- type ComparisonOutg
- type IdComparisonInc
- type Puppet
- type PuppetConfig
- type TgUnit
- func (t *TgUnit) Bot(local id.Id) *tele.Bot
- func (t *TgUnit) GetIncId(tgid int64) (id.Id, error)
- func (t *TgUnit) Header(msg events.MsgEvent) string
- func (t *TgUnit) Init(ucontext *units.UnitContext) error
- func (t *TgUnit) Run(group *errgroup.Group, ctx context.Context) error
- func (t *TgUnit) Stop() error
- type TgUnitConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserName ¶
Types ¶
type ComparisonOutg ¶
type IdComparisonInc ¶
type PuppetConfig ¶
type PuppetConfig struct {
Token string
}
type TgUnit ¶
type TgUnit struct {
// contains filtered or unexported fields
}
func NewTgUnit ¶
func NewTgUnit(config TgUnitConfig) TgUnit
type TgUnitConfig ¶
type TgUnitConfig struct { Token string ChatId int64 UsersInc []IdComparisonInc Puppet []PuppetConfig UsersOutg []ComparisonOutg }
Click to show internal directories.
Click to hide internal directories.