Git Product home page Git Product logo

tgtwitterbot's Introduction

TgTwitterBot


A Pyrogram Bot to Control Twitter from Telegram.

Features

  • Majorly Inline.
  • View Homeline Tweets.
  • View Favorites Post/Followers.
  • Search User/tweets Based on Query.
  • Post Tweets from Telegram.

All Details and Guide for Deployment can be Found at New-dev0.github.io/tgtwitterbot !
All Enviroment Variables can be found in env.sample !

Deploy to Railway

Deploy on Railway

Deploying Locally

Fill Your Env Variables in .env file !

git clone https://github.com/New-dev0/TgTwitterBot.git
cd TgTwitterBot
pip install -r requirements.txt
python -m twitterbot

Ways to show Appreciation

Also Check Other Works

Thanks to

Support

tgtwitterbot's People

Contributors

new-dev0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tgtwitterbot's Issues

Heruku Error

INFO:pyrogram.crypto.aes:Using TgCrypto
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/app/.heroku/python/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/app/twitterbot/main.py", line 11, in
Client = Client(
File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/client.py", line 207, in init
self.api_id = int(api_id) if api_id else None
ValueError: invalid literal for int() with base 10: '9787f6e00433496a22a583a43744efcd\n'

Suggest to loosen the dependency on tweepy

Dear developers,

Your project TgTwitterBot requires "tweepy==4.3.0" in its dependency. After analyzing the source code, we found that the following versions of tweepy can also be suitable without affecting your project, i.e., tweepy 4.0.0, 4.0.1, 4.1.0, 4.2.0, 4.4.0. Therefore, we suggest to loosen the dependency on tweepy from "tweepy==4.3.0" to "tweepy>=4.0.0,<=4.4.0" to avoid any possible conflict for importing more packages or for downstream projects that may use ddos_script.

May I pull a request to further loosen the dependency on tweepy?

By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?



Details:

Your project (commit id: 2462c65) directly uses 3 APIs from package tweepy.

tweepy.api.API.__init__, tweepy.auth.OAuthHandler.__init__, tweepy.auth.OAuthHandler.set_access_token

Beginning fromwhich, 3 functions are then indirectly called, including 0 tweepy's internal APIs and 3 outsider APIs as follows:

[/New-dev0/TgTwitterBot]
+--tweepy.api.API.__init__
|      +--tweepy.parsers.ModelParser.__init__
|      +--platform.python_version
|      +--requests.Session
+--tweepy.auth.OAuthHandler.__init__
|      +--requests_oauthlib.OAuth1Session
+--tweepy.auth.OAuthHandler.set_access_token

Since all these functions have not been changed between any version for package "tweepy" from [4.0.0, 4.0.1, 4.1.0, 4.2.0, 4.4.0] and 4.3.0. Therefore, we believe it is safe to loosen the corresponding dependency.

add feature Deploy to Railway.

i tried deploying to heroku, and it worked very well.. but soon, my account got banned. whether it's my fault or what, I don't know. but clearly i lost some of my heroku accounts. :(((
I hope you add to deploy to railway as well.

thanks for reading my request. ๐Ÿ˜Š

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.