Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Direct = direct{}
Direct is a direct proxy: one that makes network connections directly.
Functions ¶
This section is empty.
Types ¶
type ChannelInfo ¶
type File ¶
type File struct { ID int64 Name string Format file.Format Size int64 Document *tg.InputDocumentFileLocation }
File is the file info from the telegram channel.
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func New ¶
func New(channelID, mobile string, appID int64, appHash string, sessionPath, proxy string) (*Telegram, error)
New will create a telegram client.
func (*Telegram) Authentication ¶
Authentication is used for log into the telegram with a session support. Every telegram execution will require this method.
func (*Telegram) ChannelInfo ¶
func (t *Telegram) ChannelInfo() (*ChannelInfo, error)
func (*Telegram) ParseMessage ¶
func (t *Telegram) ParseMessage(info *ChannelInfo, msgID int64) ([]File, error)
ParseMessage will parse the given message id.
Click to show internal directories.
Click to hide internal directories.