Library for help you make userbot or bot telegram and support tdlib telegram database and only support nodejs dart and google-apps-script

Overview

To-Do

  • telegram client dart

    • ✅️ support multi token ( bot / userbot )
    • ✅️ support bot and userbot
    • ✅️ support telegram-bot-api local server
    • ✅️ support telegram database library ( Tdlib )
  • telegram client node

    • ✅️ support multi token ( bot / userbot )
    • ✅️ support bot and userbot
    • ✅️ support telegram-bot-api local server
    • 🔜️ support telegram database library ( Tdlib )
  • telegram client google apps script

    • ✅️ support multi token ( bot / userbot )
    • ✅️ support bot and userbot
    • ❌️ support telegram-bot-api local server
    • ❌️ support telegram database library ( Tdlib )

Features that will not be available on the Telegram client forever

  1. long pool get updates long poll in addition to consuming a lot of quota, and burdening the server so I will not add this feature. If you want you can use other libraries and add mine if necessary.
Comments
  • Initialization parameters are needed: call setTdlibParameters first

    Initialization parameters are needed: call setTdlibParameters first

    Hello. Often there is an error: Initialization parameters are needed: call setTdlibParameters first

    In older versions, it occurred less often, but now it is constant. I can't log into telegram! Please update your library integration instructions and update the example test project to the latest version of the library. Thank you.

    opened by Wolfaks 11
  • Problem with getChats call

    Problem with getChats call

    Hello. I have appeared problem with getChats call. This call stopped returning a result:

    Map<String, dynamic> parameters = { "limit": "1000000000" };

    await tgObj.debugRequest("loadChats", parameters: parameters, callback: (res) async { print(res); });

    Such a call works, but does not return a list of chats with information about them (photo, title, name, etc.). Only a list with a list of chat ids is returned. var newRes = await tgObj.invoke("getChats", parameters: parameters); print(newRes);

    Even though I didn't update anything. Everything stopped working on its own. Please help me solve the problem with displaying the list of user chats. I need not only a list of ids, but also information about the chats. Thanks a lot.

    opened by Wolfaks 6
  • example does not start

    example does not start

    Tdlib tg = Tdlib("libtdjson.so", { 'database_directory': "./client/", 'files_directory': "./client/", });

    libtdjson.so is not generated

    opened by denisnadey 3
  • The request sendMessage returns an error USERNAME_INVALID

    The request sendMessage returns an error USERNAME_INVALID

    Hello. I successfully logged in with my account, but when I try to send a message, an error is returned. For some reason, the chat ID is inserted into the username field, which I set in the parameters: var res = await tgObj.request("sendMessage", parameters: { "chat_id": dialogID, "text": text }); print(res); // dialogID == 290672990 // text == "12345" The request sendMessage returns an error USERNAME_INVALID: Unhandled Exception: {@type: error, code: 400, message: USERNAME_INVALID, invoke_request: {@type: searchPublicChat, client_id: -5476376659015607984, username: 290672990, @extra: e73lhg0x0eajnba}}

    I need your help. thanks a lot

    opened by Wolfaks 2
  • client execute

    client execute

    hi please tell me how to fix this error. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol '_td_json_client_execute': undefined symbol: _td_json_client_execute

    opened by Ilyosxon2721 1
  • How add text message with photo using the method sendPhoto

    How add text message with photo using the method sendPhoto

    Hello. I use the method sendPhoto and i need to send text message with photo. How i can do it?

    I tried to add 'text' key but it doesn't work. I need to send one photo with text. Or some photos. Thank you.

    var res = await tgObj.request("sendPhoto", parameters: { "chat_id": dialogID, "photo": photo });

    opened by Wolfaks 1
  • How does this Package work?

    How does this Package work?

    Hello, Thanks for this awesome package but am in doubt how this package work.

    This is what I want to accomplish.

    I want to use your package to create an App for church, so that user can message them self and as well download videos and music. But do user need to have telegram account before they can use this App am building with your package?

    I need your swift reply

    opened by zionnite 1
  • Bump node-fetch from 2.6.1 to 2.6.7 in /node-js/telegram_client

    Bump node-fetch from 2.6.1 to 2.6.7 in /node-js/telegram_client

    Bumps node-fetch from 2.6.1 to 2.6.7.

    Release notes

    Sourced from node-fetch's releases.

    v2.6.7

    Security patch release

    Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th party host while a redirect occurred

    What's Changed

    Full Changelog: https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7

    v2.6.6

    What's Changed

    Full Changelog: https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.6

    v2.6.2

    fixed main path in package.json

    Commits
    • 1ef4b56 backport of #1449 (#1453)
    • 8fe5c4e 2.x: Specify encoding as an optional peer dependency in package.json (#1310)
    • f56b0c6 fix(URL): prefer built in URL version when available and fallback to whatwg (...
    • b5417ae fix: import whatwg-url in a way compatible with ESM Node (#1303)
    • 18193c5 fix v2.6.3 that did not sending query params (#1301)
    • ace7536 fix: properly encode url with unicode characters (#1291)
    • 152214c Fix(package.json): Corrected main file path in package.json (#1274)
    • See full diff in compare view
    Maintainer changes

    This version was pushed to npm by endless, a new releaser for node-fetch since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 1
  • Update fetching username

    Update fetching username

    In new tdLib telegram respond has key 'usernames' with value: {@type: usernames, active_usernames: [denis_mobile], disabled_usernames: [], editable_username: denis_mobile} @denis_mobile - my test username. This was done because one user can now have multiple usernames.

    Key username was removed. Pls update library

    opened by Wolfaks 0
  • Looping in loading chats.

    Looping in loading chats.

    I found a loop in loading chats. Line 2182 in tdlib.dart file. Need fix param "is_super_detail" to false for fix issue.

    var get_message = await getMessage( update["reply_in_chat_id"], update["reply_to_message_id"], is_detail: true, is_super_detail: false, clientId: clientId, );

    Otherwise, an eternal loop in the method 'getChats' call.

    bug 
    opened by Wolfaks 1
Releases(latest-telegram-bot-api-windows)
Owner
Azka Full Snack Developer:)
hi i pro full snack Developer:V,
Azka Full Snack Developer:)
library to help you create database on local memory, support json local database inspired by lowdb

Licensed Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2021 Azkadev <http://github.c

Azka Full Snack Developer:) 35 Oct 17, 2022
A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

Julien Scholz 10 Oct 26, 2022
Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques

Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.

Google 318 Dec 31, 2022
A script for automating the creation and uploading a flutter project to github

Flutter Automation Script A script for automating the tasks of creating and uploading a flutter project to github. Made with Batch Scripts, Shell Scri

Tushar Patil 18 Dec 15, 2022
null 2 Apr 17, 2022
A JMAP client library in Dart to make JMAP method calls and process the responses

JMAP Dart client A JMAP client library to make JMAP method calls and process the responses. We most notably use it to write the TMail Flutter applicat

LINAGORA 18 Dec 19, 2022
A mobile map based application to help people everywhere around the world get help

Wonder This is a mobile application made by flutter. The application is called "Wonder" because it will help people everywhere around the world to get

Sara Nersisian 1 Dec 2, 2021
This library contains methods that make it easy to consume Mpesa Api.

This library contains methods that make it easy to consume Mpesa Api. It's multi-platform, and supports CLI, server, mobile, desktop, and the browser.

Eddie Genius 3 Dec 15, 2021
A Flutter library to make Rest API clients more easily. Inspired by Java Feing.

A Flutter library to make Rest API clients more easily. Inspired by Java Feing. Features Facilitated JSON encode and decode using common interfaces. F

null 2 Mar 15, 2022
A dart package to help you parse and evaluate infix mathematical expressions into their prefix and postfix notations.

A dart package to help you parse and evaluate infix mathematical expressions into their prefix and postfix notations.

Miguel Manjarres 2 Jan 28, 2022
The Dart Time Machine is a date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

The Dart Time Machine is a date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

null 2 Oct 8, 2021
Contains utility functions and classes in the style of dart:collection to make working with collections easier

The collection package for Dart contains a number of separate libraries with utility functions and classes that makes working with collections easier.

Dart 273 Dec 27, 2022
Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.

Edson Bueno 425 Dec 13, 2022
Let's Encrypt support for the shelf package (free and automatic HTTPS certificate support).

shelf_letsencrypt shelf_letsencrypt brings support for Let's Encrypt to the shelf package. Usage To use the LetsEncrypt class import 'dart:io'; impor

Graciliano Monteiro Passos 8 Oct 31, 2022
A code generation tool based on Database. :construction: developing :construction:

dbgen A code generation tool based on Database. Getting Started This project is a starting point for a Flutter application. A few resources to get you

尽管如此世界依然美丽 12 Jun 8, 2022
A CLI tool to help generate dart classes from json returned from API

Json 2 Dart Command line utility Important note There is already a package called json2dart so this package will be called json2dartc ! This project w

Adib Mohsin 38 Oct 5, 2022
Utilities to make working with 'Duration's easier.

duration Utilities to make working with 'Duration's easier. NOTE: Use prettyDuration, prettySeconds, prettyMilliseconds instead of printDuration, prin

null 45 Sep 21, 2022
Reference implementation for the Zenon SDK for Dart and Flutter apps compatible

Zenon Dart SDK Reference implementation for the Zenon SDK for Dart and Flutter apps compatible with the Zenon Alphanet - Network of Momentum Phase 0.

null 8 Nov 23, 2022