All Projects → anonyindian → gotgproto

anonyindian / gotgproto

Licence: GPL-3.0 License
A helper package for Go Telegram Client, i.e. gotd/td.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gotgproto

node-tg-native
Telegram Native lib
Stars: ✭ 22 (-31.25%)
Mutual labels:  mtproto, tdlib
aiotdlib
Python asyncio Telegram client based on TDLib https://github.com/tdlib/td
Stars: ✭ 63 (+96.88%)
Mutual labels:  mtproto, tdlib
tdlight-telegram-bot-api
The TDLight Telegram Bot API is an actively enhanced fork of the original Bot API, featuring experimental user support, proxies, unlimited files size, and more.
Stars: ✭ 71 (+121.88%)
Mutual labels:  mtproto, tdlib
python-tdlib
full oop python 3 tdlib wrapper, fast, thread safe
Stars: ✭ 20 (-37.5%)
Mutual labels:  mtproto, tdlib
Pyrogram
Telegram MTProto API Client Library and Framework in Pure Python for Users and Bots
Stars: ✭ 2,252 (+6937.5%)
Mutual labels:  mtproto, tdlib
tdlight-java
Complete Bot and Userbot Telegram library based on TDLib
Stars: ✭ 128 (+300%)
Mutual labels:  mtproto, tdlib
duagram
Telegram Framework for userbot and bot api, using nodejs.
Stars: ✭ 24 (-25%)
Mutual labels:  mtproto
telegram-nearby-map
Discover the location of nearby Telegram users 📡🌍
Stars: ✭ 329 (+928.13%)
Mutual labels:  tdlib
tgEasy
tgEasy | Easy for a Brighter Shine | Monkey Patcher Addon for Pyrogram
Stars: ✭ 36 (+12.5%)
Mutual labels:  mtproto
vpns
A collection of vpns
Stars: ✭ 112 (+250%)
Mutual labels:  mtproto
mtproto-proxy-server
Web Server & MTProxy MTPROTO is proxy for Telegram
Stars: ✭ 26 (-18.75%)
Mutual labels:  mtproto
WTelegramClient
Telegram client API library written 100% in C# and .NET Standard
Stars: ✭ 192 (+500%)
Mutual labels:  mtproto
array undot
array_undot (the opposite of the array_dot helper function) expands a dot notation array into a full multi-dimensional array.
Stars: ✭ 15 (-53.12%)
Mutual labels:  helper-functions
john feedbackbot
A simple feedback bot with message response support
Stars: ✭ 22 (-31.25%)
Mutual labels:  mtproto
tgcf
The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
Stars: ✭ 378 (+1081.25%)
Mutual labels:  mtproto
LyricsPyRobot
A Telegram bot for searching lyrics.
Stars: ✭ 29 (-9.37%)
Mutual labels:  mtproto
polaris.py
A multiplatform Python bot using plugins!
Stars: ✭ 19 (-40.62%)
Mutual labels:  tdlib
node-tdlib
TDLib Binding with Telegram Bot API Reimplemention for Node.js
Stars: ✭ 35 (+9.38%)
Mutual labels:  tdlib
telegram client
library for help you make userbot or bot telegram and support tdlib telegram database and only support nodejs dart and google-apps-script
Stars: ✭ 38 (+18.75%)
Mutual labels:  tdlib
math eval
✖️➕➖➗ `math_eval` safely evaluates mathematical expressions
Stars: ✭ 33 (+3.13%)
Mutual labels:  helper-functions

GoTGProto

GoTGProto is a helper package for gotd library, It aims to make td's raw functions easy-to-use 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.

Installation

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

go get github.com/anonyindian/gotgproto

Usage

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

package main
import (
	"context"
	"github.com/anonyindian/gotgproto"
	"github.com/anonyindian/gotgproto/dispatcher"
	"github.com/anonyindian/gotgproto/sessionMaker"
	"github.com/gotd/td/telegram"
)
func main() {
    dp := dispatcher.MakeDispatcher()
    gotgproto.StartClient(gotgproto.ClientHelper{
		AppID: 1234567,
		ApiHash: "API_HASH_HERE",
		Session: sessionMaker.NewSession("session_name", sessionMaker.Session),
		Phone: "PHONE_NUMBER_HERE",
		Dispatcher: dp,
		TaskFunc: func(ctx context.Context, client *telegram.Client) error {
			return nil
		},
	})
}

Contributing

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.

License

GPLv3
Licensed Under GNU General Public License v3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].