项目作者: mendelmaleh

项目描述 :
telegram userbot made with pyrogram
高级语言: Python
项目地址: git://github.com/mendelmaleh/userbot.git
创建时间: 2019-04-10T20:23:01Z
项目社区:https://github.com/mendelmaleh/userbot

开源协议:

下载


Userbot

My personal telegram userbot. Built with Pyrogram.

Commands

  • id: get the ID for the chat, message, or yourself, in various formats.
  • inactive: get the 5 least active members of the group.
  • ping: test your userbot’s latency (only indicative).
  • print: print message info.
  • spt: get current song playing on spotify.
  • wttr: get the weather for the given location, in various formats.

Functions

  • welcome: welcome newcomers to chats.

Setup:

Create and start venv for the dependencies:

  1. python3 -m venv venv
  2. source venv/bin/activate
  3. pip install --upgrade pip

Install dependencies:

  1. pip install -r requirements.txt

Create a config.ini file with your Telegram API id and hash in the following format:

  1. [pyrogram]
  2. api_id = 12345
  3. api_hash = 0123456789abcdef0123456789abcdef
  4. [plugins]
  5. root = plugins

The root is the folder with the plugins, in this repo it is plugins, so there is no need to change this. More info at Pyrogram’s official docs.