Discover Packages
github.com/cooldarkdryplace/camerabot
telegram
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Apr 14, 2018
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
SendTextMessage to the chat with provided ID.
type Chat struct {
ID int64 `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
}
type Entity struct {
Type string `json:"type"`
Offset int64 `json:"offset"`
Length int64 `json:"length"`
}
type Message struct {
ID int64 `json:"message_id"`
Date int `json:"date"`
Chat Chat `json:"chat"`
Entities []Entity `json:"entities"`
Text string `json:"text"`
From User `json:"from"`
}
type PhotoSize struct {
ID int64 `json:"file_id"`
Width int `json:"width"`
Height int `json:"height"`
FileSize int64 `json:"file_size"`
}
type Update struct {
ID int64 `json:"update_id"`
Message Message `json:"message"`
}
GetUpdates with IDs greater than provided value.
type UpdatesResponse struct {
Ok bool `json:"ok"`
Updates []Update `json:"result"`
}
type User struct {
ID int64 `json:"id"`
FirstName string `json:"first_name"`
UserName string `json:"username"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.