Gotgproto - A helper package for Go Telegram Client, i.e. gotd/td



GoTGProto is a helper package for gotd library, It aims to make td's raw functions easy-to-user with the help of features like using session strings, custom helper functions, storing peers and extracting chat or user ids through it etc.

You can use this package to create bots and userbots with Telegram MTProto easily in golang, for any futher help you can check out the documentations or reach us through the following:

  • Updates Channel: Channel
  • Support Chat: Chat

Go Reference GPLv3 license

Note: This library is in the beta stage yet and may not be stable for every case.


You can download the library with the help of standard go get command.

go get


You can find various examples in the examples' directory, one of them i.e. authorizing as a user is as follows:

package main
import (
func main() {
    dp := dispatcher.MakeDispatcher()
		AppID: 1234567,
		ApiHash: "API_HASH_HERE",
		Session: sessionMaker.NewSession("session_name", sessionMaker.Session),
		Dispatcher: dp,
		TaskFunc: func(ctx context.Context, client *telegram.Client) error {
			return nil


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update examples as appropriate.


Licensed Under GNU General Public License v3

  • Add mention helpers in parsemodes

    Add mention helpers in parsemodes

    Add helpers in entityhelpers and stylinghelpers from the parsemode package to mention users with their usernames or user ids using telegram's deeplinks. To Mention With User ID: tg://user?id= To Mention With User ID: tg://resolve?domain=

    opened by anonyindian 0
  • v1.0.0-beta04(Jan 16, 2022)

    GoTGProto v1.0.0-beta04

    • fix nil message returned when message is sent at private chats
    • add ChatMemberUpdated handler and filters
    • fix PendingJoinRequests filters
    • Add GetMessages helper function

    Full Changelog:

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-beta03(Jan 11, 2022)

    GoTGProto v1.0.0-beta03

    What's Changed

    • fix compilation error while building source with handlers package imported
    • add copyright header print
    • allow to sign in through phone number as input if not provided
    • fix a typo in readme

    Full Changelog:

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-beta02(Jan 10, 2022)

    This release makes the helpers more easy to use and some more fixes and additions.

    What's Changed

    • Added regex filter for messages by @Nksama in
    • Added New Mention function in parsemode helpers
    • Send helpers now return tg.Message struct instead of tg.UpdatesClass
    • New helper for editing a message

    New Contributors

    • @Nksama made their first contribution in

    Full Changelog:

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-beta01(Jan 5, 2022)

Hi👋, I am Veer a.k.a. Anony and the universe is not so small ¯\_(ツ)_/¯
Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Beta Kuang 1 Dec 30, 2021
Pro-bot - A telegram bot to play around with the community telegram channels

pro-bot ?? Pro Bot A Telegram Bot to Play Around With The Community Telegram Cha

TechProber 1 Jan 24, 2022
Client lib for Telegram bot api

Micha Client lib for Telegram bot api. Supports Bot API v2.3.1 (of 4th Dec 2016). Simple echo bot example: package main import ( "log" "git

Andrey 18 Jun 13, 2022
Library for working with golang telegram client + bot based on tdlib. This library was taken from the user Arman92 and changed for the current version of tdlib.

go-tdlib Golang Telegram TdLib JSON bindings Install To install, you need to run inside a docker container (it is given below) go get -u

Rostislav Krivets 20 Jun 22, 2022
IRC, Slack, Telegram and RocketChat bot written in go

go-bot IRC, Slack & Telegram bot written in Go using go-ircevent for IRC connectivity, nlopes/slack for Slack and Syfaro/telegram-bot-api for Telegram

null 744 Jun 18, 2022
Golang telegram bot API wrapper, session-based router and middleware

go-tgbot Pure Golang telegram bot API wrapper generated from swagger definition, session-based routing and middlewares. Usage benefits No need to lear

Oleg Lebedev 112 Jun 13, 2022
Telegram Bot Framework for Go

Margelet Telegram Bot Framework for Go is based on telegram-bot-api It uses Redis to store it's states, configs and so on. Any low-level interactions

Gleb Sinyavskiy 72 May 8, 2022
Go library for Telegram Bot API

tbot - Telegram Bot Server Features Full Telegram Bot API 4.7 support Zero dependency Type-safe API client with functional options Capture messages by

Alexey Grachov 323 May 19, 2022
Telebot is a Telegram bot framework in Go.

Telebot "I never knew creating Telegram bots could be so sexy!" go get -u Overview Getting Started Poller Commands Files Se

Ian P Badtrousers 2.6k Jun 28, 2022
Golang bindings for the Telegram Bot API

Golang bindings for the Telegram Bot API All methods are fairly self explanatory, and reading the godoc page should explain everything. If something i

null 3.8k Jun 29, 2022
Golang Based Account Generator Telegram Bot

Account Generator Bot Account Generator Bot, written in GoLang via gotgbot library. Variables Env Vars - BOT_TOKEN - Get it from @BotFather CHANNEL_ID

Anonymous Indian 35 Jun 8, 2022
Full-native go implementation of Telegram API

MTProto Full-native implementation of MTProto protocol on Golang! english русский 简体中文 Features Full native implementation All code, from sending requ

Xelaj technologies 849 Jun 23, 2022
Bot that polls activity API for Github organisation and pushes updates to Telegram.

git-telegram-bot Telegram bot for notifying org events Requirements (for building) Go version 1.16.x Setup If you don't have a telegram bot token yet,

Skycoin 4 Apr 8, 2022
The command line utility for Telegram

cli The command line interface for telegram. $ go install[email protected] Usage First, initialize configuration (currently only for

gotd 3 Mar 22, 2022
📱 Hentai bot for Telegram 📱

Random-Good-Hanime Hentai Telegram bot for educational purpose ?? Features ?? Random hentai Lot of different categories ?? Real time logs ?? Config fi

Patrick 6 Jan 23, 2022
lightning - forward messages between a qq group and a telegram group

lightning The purpose of this project is to forward messages between a qq group and a telegram group. Getting Started Clone this project: git clone ht

方泓睿 6 Dec 15, 2021
A telegram bot that fetches multiple RSS cryptocurrency news feeds for sentiment analysis

Crypto News Telegram Bot A simple telegram bot that will help you stay updated on your latest crypto news This bot will help you keep track of the lat

Cha 4 Aug 22, 2021
A Telegram bot that will run code for you.

piston_bot A Telegram bot that will run code for you. Made using piston. Available as @iruncode_bot on telegram. Examples Basic example Input: /run py

Tushar Sadhwani 31 Jun 13, 2022
Telegram bot to get information on vaccine availabilities.

?? berlin-vaccine-alert Telegram bot to get information on vaccine availabilities. Get the latest appointments directly on telegram. The bot listen to

Erwan Leboucher 16 May 22, 2022