service

package
v0.0.0-...-711626a Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Telegram

type Telegram struct {
	Bot *tgbotapi.BotAPI
}

Telegram ...

func NewTelegramService

func NewTelegramService(token string) (*Telegram, error)

NewTelegramService ...

func (*Telegram) DeleteMessage

func (t *Telegram) DeleteMessage(chatID int64, messageID int) error

DeleteMessage ...

func (*Telegram) SendDocument

func (t *Telegram) SendDocument(chatID int64, url string) error

SendDocument ...

func (*Telegram) SendDocuments

func (t *Telegram) SendDocuments(chatID int64, urls []string) error

SendDocuments ...

func (*Telegram) SendMessage

func (t *Telegram) SendMessage(chatID int64, text string, messageID int) error

SendMessage ...

func (*Telegram) SendPhoto

func (t *Telegram) SendPhoto(chatID int64, url string) error

SendPhoto ...

func (*Telegram) SendPhotos

func (t *Telegram) SendPhotos(chatID int64, urls []string) error

SendPhotos ...

type Twitter

type Twitter struct {
	Client *twitter.Client
}

Twitter ...

func NewTwitterService

func NewTwitterService(consumerKey string, consumerSecret string, accessToken string, accessSecret string) (*Twitter, error)

NewTwitterService ...

func (*Twitter) ShowTweet

func (t *Twitter) ShowTweet(id int64) (*twitter.Tweet, error)

ShowTweet ...

Jump to

Keyboard shortcuts

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