Giter Site home page Giter Site logo

botfather-cli's Introduction

botfather-cli

A Command Line Interface for Telegram BotFather written in Python3.6.

Installation

  1. python3 setup.py install
  2. This utility uses TgIntegration (and thus Pyrogram). Create a file .botfather in your home directory with the following contents:
[pyrogram]
api_id=...
api_hash=...

Replace the ellipses (...) with appropriate values as described in Telegram API Keys.

Usage

$ botfather --help
Usage: botfather [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  deletebot
  newbot
  revoke
  setabouttext
  setcommands
  setdescription
  setname
  switch
  token

Multiple Telegram Accounts

Using $ botfather switch, you can make use of multiple Telegram sessions, so that you can spread your bots across multiple accounts and circumvent the 20 bots per account limit. These sessions will be stored in a ~/.botfather-sessions directory.

botfather-cli's People

Contributors

josxa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

botfather-cli's Issues

TypeError: __init__() got an unexpected keyword argument 'bot_under_test'

I got this error , do you have any idea to fix this ?
i'm using python 3.6
operation : MacOS

Traceback (most recent call last):
File "/Users/ductri/opt/anaconda3/bin/botfather", line 33, in
sys.exit(load_entry_point('BotFather-CLI==0.1', 'console_scripts', 'botfather')())
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/BotFather_CLI-0.1-py3.6.egg/botfather.py", line 360, in newbot
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/BotFather_CLI-0.1-py3.6.egg/botfather.py", line 259, in init_command
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/BotFather_CLI-0.1-py3.6.egg/botfather.py", line 62, in client
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/BotFather_CLI-0.1-py3.6.egg/botfather.py", line 41, in create_client
File "/Users/ductri/opt/anaconda3/lib/python3.6/site-packages/BotFather_CLI-0.1-py3.6.egg/botfather.py", line 34, in init
File "/Users/ductri/opt/anaconda3/lib/python3.6/tgintegration/responsecollectorclient.py", line 22, in init
super().init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'bot_under_test'

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.