chatter

package
v0.0.0-...-3723a19 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ac *appcontext.Context)

New is an initialization function for appcontext

Types

type Chatter

type Chatter struct{}

Chatter is a function-handling struct for package chatter.

func (*Chatter) BanUserFromChat

func (ct *Chatter) BanUserFromChat(user *tgbotapi.User, chatRaw *dbmapping.Chat)

BanUserFromChat removes user from chat

func (*Chatter) GroupsList

func (ct *Chatter) GroupsList(update *tgbotapi.Update) string

GroupsList lists all chats where bot exist

func (*Chatter) Init

func (ct *Chatter) Init()

Init is a initialization function for package

func (*Chatter) ProtectChat

func (ct *Chatter) ProtectChat(update *tgbotapi.Update, playerRaw *dbmapping.Player, chatRaw *dbmapping.Chat) string

ProtectChat protects chats from unauthorized access Returns "protection_passed" if all protection checks passed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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