Code Monkey home page Code Monkey logo

tg-auto-replies's Introduction

TG-auto-replies

Getting started We’ll use version 0.18.1 of Telethon, a Python 3 implementation of the Telegram API:

pip3 install telethon==0.18.1 Authenticating to the Telegram API To interact with the Telegram API using Telethon, we first need to create a Telethon client object (docs). We’ll need several pieces of information to do this:

An api_id and api_hash for a Telegram application. Read about this here: https://core.telegram.org/api/obtaining_api_id Your phone number Your password if you have two-step verification turned on Telethon creates a local file to persist your session so you don’t have to keep authenticating; in the code fragment below, the username variable is the name of the file representing your saved session, and does not necessarily have to be your Telegram username.

All credits goes to https://github.com/yi-jiayu

tg-auto-replies's People

Contributors

anggar96s avatar

Watchers

James Cloos avatar

Forkers

rengga08

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.