The Wayback Machine - https://web.archive.org/web/20201130131008/https://github.com/topics/telegram-bot
Skip to content
#

telegram-bot

telegram logo

Telegram is a non-profit, cloud-based instant messaging service. It offers open source clients for a multitude of operating systems and powerful APIs that allow developers to create their own clients and chat bots.

Here are 5,507 public repositories matching this topic...

raid-7
raid-7 commented Jul 7, 2020

In terms of Telegram bot API the maximum polling time of getUpdates is referred to as timeout. That is if there are pending updates, Telegram will return them immediately. In the other case, it will wait for timeout seconds and then answer with an empty list.

The telegram-bot Rust library has its own notion of timeouts. getUpdates' timeout [i

LazarenkoA
LazarenkoA commented Oct 25, 2020

Please help with an example of sending a photo to an arbitrary chat. Here's what I found myself

client.MessagesSendMedia(&telegram.MessagesSendMediaParams{
	Silent:       false,
	Background:   false,
	ClearDraft:   false,
	Peer:         &telegram.InputPeerUser{ // user data
		UserId:     2121212,
		AccessHash: 212121211221,
	},
	ReplyToMsgId: 0,
	Media:        ???, 
	Message:    

Created by Telegram Messenger LLP

Released August 2013

Website
telegram.org
Wikipedia
Wikipedia
You can’t perform that action at this time.