Giter Club home page Giter Club logo

autogram's Introduction

Autogram

rust tdlib tdlib-rs

中文 | English

Important:

It is highly recommended to utilize robot automation for operations, as this application is equivalent to manual operations performed by a real person.

Features

To use any function, you must first apply for a client at the Telegram API website. It is necessary to use your home broadband for the application; using a proxy will result in an ERROR.

Create a new folder named autogram anywhere, and then copy the docker-compose.yml file into this folder. Modify the environment variable fields, ensuring that API_ID and API_HASH are configured — these are mandatory. Other environment variables can be optionally configured after logging in. To proceed, execute the command.

docker compose pull
docker compose run --rm -it autogram login            # Log in to your account, where `API_ID` corresponds to the website you've applied for, and `login` is akin to signing into your account on that website. You will need to input your phone number and verify it with a code to log in. Prior to using any other commands, you must first log in.
docker compose run --rm -it autogram chats            # View the IDs and titles of the first few chat groups, which are used for configuring automation. By default, the top 20 are shown, but you can specify using the `--top 50` parameter.
docker compose run --rm -it autogram chat             # Specify a chat ID and message content to send a message. Example: docker compose run --rm -it autogram chat --chat-id='-1234567890123' -m '/checkin'
docker compose run --rm -it autogram listen           # Monitor a chat and send a webhook. Example: docker compose run --rm -it autogram listen --chat-id='-1234567890123'
docker compose run --rm -it autogram multi-listen     # Listening to multiple chats, example: docker compose run --rm -it autogram multi-listen --chat-id='-1234567890123' --chat-id='-9876543210123'
docker compose run --rm -it autogram follow           # Special attention is paid to certain users, for example: docker compose run --rm -it autogram follow --forward-chat-id='-1234567890123' --user-id=12345678
docker compose run --rm -it autogram help             # Default command, executed when starting with `docker compose up`, provides detailed information about the commands available.

Development

Below are two development containers, with all environmental dependencies pre-configured, ready to use upon launch.

  • github workspace
  • gitpod

Add environment variables by editing the ~/.bashrc file.

export API_ID=12345678
export API_HASH=1234567890abcdef1234567890abcdef

Close the terminal and reopen it for the changes to take effect.

cargo run

Thank

  • tdlib-rs: Rust wrapper around the Telegram Database Library 🦀
  • td: Cross-platform library for building Telegram clients

autogram's People

Contributors

npcdw avatar

Stargazers

 avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.