bot

package
v0.0.0-...-f856e3e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserName

func GetUserName(user *telebot.User) string

Types

type Bot

type Bot struct {
	*telebot.Bot
}

func New

func New(token string) (*Bot, error)

func (*Bot) GetName

func (b *Bot) GetName() string

func (*Bot) RemoveWebhook

func (b *Bot) RemoveWebhook() error

func (*Bot) SetWebhookURL

func (b *Bot) SetWebhookURL(u string) error

SetWebhookURL sets new webhook URL.

func (*Bot) WebhookURL

func (b *Bot) WebhookURL() (string, error)

WebhookURL retrieves the webhook URL if it was previously set.

Jump to

Keyboard shortcuts

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