telegram

package
v0.0.0-...-7df517a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(chatID int64, text string) *http.Response

func SetWebhook

func SetWebhook() *http.Response

Types

type Message

type Message struct {
	User User   `json:"from"`
	Chat User   `json:"chat"`
	Text string `json:"text"`
}

type Update

type Update struct {
	ID      int64   `json:"update_id"`
	Message Message `json:"message"`
}

type User

type User struct {
	ID       int64  `json:"id"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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