All Projects â†’ tgbot-collection â†’ TeleTweet

tgbot-collection / TeleTweet

Licence: GPL-2.0 license
🦉 A telegram Twitter bot that will allow you send tweets!

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to TeleTweet

tweet-delete-bot
A bot that deletes and un-favourites tweets that are more than 10 days old. Schedule this to run once a day to become an ephemeral tweep, just like http://twitter.com/JacksonBates
Stars: ✭ 39 (+14.71%)
Mutual labels:  twitter-bot, tweets
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (+170.59%)
Mutual labels:  twitter-bot, tweets
tweet-delete
Self-destructing Tweets so you too can be cool 😎
Stars: ✭ 68 (+100%)
Mutual labels:  twitter-bot, tweets
Twitter-bot
Twitter bot which waits for #hashTag and sends weather update of city via tweets
Stars: ✭ 20 (-41.18%)
Mutual labels:  twitter-bot, tweets
awesome-twitter-bots
A Curated Collection of the Best Twitter Bots 🤖
Stars: ✭ 99 (+191.18%)
Mutual labels:  twitter-bot, tweets
tradoge
DOGE trading bot for instantly buying and selling DOGE cryptocurrency on Binance when Elon Musk tweets about it.
Stars: ✭ 122 (+258.82%)
Mutual labels:  twitter-bot, tweets
twitter-bot-bootstrap
Template for creating a twitter bot using python (twython) and heroku
Stars: ✭ 26 (-23.53%)
Mutual labels:  twitter-bot, tweets
TgTwitterStreamer
Continous Integration from Twitter to Telegram.
Stars: ✭ 55 (+61.76%)
Mutual labels:  twitter-bot, tweets
rust-trending
A twitter bot (@RustTrending) to tweet trending rust repositories, inspired by @TrendingGithub
Stars: ✭ 113 (+232.35%)
Mutual labels:  twitter-bot, tweets
coopboost
Grow your twitter audience.
Stars: ✭ 50 (+47.06%)
Mutual labels:  twitter-bot, tweets
TwitterAutoReplyBot
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
Stars: ✭ 33 (-2.94%)
Mutual labels:  twitter-bot, tweets
tcrpartybot
A Twitter bot for interacting with a TCR without knowing what a blockchain is
Stars: ✭ 27 (-20.59%)
Mutual labels:  twitter-bot
AffectiveTweets
A WEKA package for analyzing emotion and sentiment of tweets.
Stars: ✭ 74 (+117.65%)
Mutual labels:  tweets
love-a-paper
Twitter bot that tweets randomly selected papers from Papers We Love.
Stars: ✭ 20 (-41.18%)
Mutual labels:  twitter-bot
twitterstream
Twitter Streaming API Example with Kafka Streams in Scala
Stars: ✭ 49 (+44.12%)
Mutual labels:  tweets
hug-bot
A twitter bot that gives out free hugs.
Stars: ✭ 22 (-35.29%)
Mutual labels:  twitter-bot
lowflyingrocks
Twitter bot that tweets when an asteroid passes the Earth
Stars: ✭ 15 (-55.88%)
Mutual labels:  twitter-bot
pmChatBot
A simple feed-back bot written in PHP. Like Livegram. Heroku Support
Stars: ✭ 31 (-8.82%)
Mutual labels:  telegrambot
bots
Twitter bots
Stars: ✭ 45 (+32.35%)
Mutual labels:  twitter-bot
twpy
Twitter High level scraper for humans.
Stars: ✭ 58 (+70.59%)
Mutual labels:  twitter-bot

TwitterBot

🦉 A telegram Twitter bot that will allow you to send tweets!

I'm bringing down this bot because someone is spamming. The code is still working if you deploy your own bot.

Features

All the following features rely on authorized users.

  • send text tweet
  • send tweet with one photo(photo and document are supported.)
  • reply bot tweet message to add more tweets to this thread
  • reply /delete to delete tweet
  • send any video tweet to download the video
  • inline character calculation
  • send pictures as a group, it will result in multiple photos in your tweet(max photo restrictions is 4)

Commands

start - Start using it today
sign_in - Go to sign in with Twitter
sign_off - sign off from Twitter
help - What is this bot
ping - Status about this bot
delete - Delete tweet

Usage

Screenshots

The most simple way to tweet!

Sign in

Chat with this bot, and go to oauth by its instruction:

Copy and paste the auth code to this bot. And you're good to go!

Tweet

New thread tweet

Send any text message, photo/photo as file with caption will send tweet with photos.

Reply to this thread

Reply to bot's tweet message,

and you'll consult in a series of thread.

Delete tweet

Reply command /delete to bot's message and it will delete this tweet for you.

Download tweet video

You could just send any video tweet, such as this one

https://twitter.com/BennyThinks/status/1306081739660427264?s=20

The bot will first determine if this is a video tweet, if the answer is yes, it will ask what do you want to do with it:

Depending on your choice, this bot will download this video or retweet.

Inline mode

Use @tele_tweetbot within TeleTweet bot chat to see character limit in case you exceed it.

Once you have compose your tweet, hit the message to send you tweet.

Be aware: using inline mode in another chat won't send tweet for you.

multiple photo mode

Group feature requires a newer version of Telegram Just send a group of photos, add some captions if you want to, and hit send.

Warning: if you send more than four photos in a group, this bot will only send first four photos in a tweet

threaded-tweets

Twitter has max character limit of 280. If you want to send tweet more than this limit, you need to manually add new lines.

For example, one or more blank line is acceptable.

Dear developer, I was using teletweet for just few days and it made me so much curious and I stumble upon many things , that it should do more, so here I will just saying what can help me little,

Issue- Error: Text must be less than or equal to CHARACTER_LIMIT characters.

Need- when bot hit the wall of character limit, can this be possible that line break (Enter bottom) command can be used to split the
text into threading tweet, only when text limit breached from current tweet.

And the result would be

General deployment

This bot use oauth, so you need to apply an app, setup callback url. More info could be seen here.

Bot

git clone https://github.com/tgbot-collection/TeleTweet/
cd TeleTweet
pip3 install -r requirements.txt
export TOKEN="BOT_TOKEN" \
 CONSUMER_KEY="key"  CONSUMER_SECRET="secret" \
touch teletweet/database.enc
python3 teletweet/bot.py

If you want the bot to be only available to you, please setup ALLOW_USER, supplied with your own Telegram User ID. Use , to separate.

Web server

vim twauth.py
# change this three lines to your own
APP_CONSUMER_KEY = os.environ.get("CONSUMER_KEY") or '1'
APP_CONSUMER_SECRET = os.environ.get("CONSUMER_SECRET") or '2'
callback_url = os.environ.get("CALLBACK_URL") or "http://127.0.0.1:8888/callback"

# run it
python3 twauth.py

Docker

You can run/develop using docker.

docker run -d --restart=always -e TOKEN="BOT_TOKEN" \
-e CONSUMER_KEY="key" -e CONSUMER_SECRET="secret" \
-v `pwd`/database.enc:/TeleTweet/teletweet/database.enc \
bennythink/teletweet

docker run -d --restart=always -e TOKEN="BOT_TOKEN" \
-e CONSUMER_KEY="key" -e CONSUMER_SECRET="secret"  \
bennythink/teletweet python3 /TeleTweet/twauth-web/twuath.py

Plans

  • support multi-user, based on oauth, encrypted with AES-128-CBC
  • help
  • about
  • start
  • multi photo
  • timeline
  • new
  • like

Warning

1. Early development

This bot is still under early development process. Anything may subject to change.

2. Data security

You need to use oauth to use this bot, and this bot will save your oauth token in its file system. Under this circumstance, it means: 1). The bot will have access to your Twitter data 2). the oauth token has been encrypted by AES-128-CBC. However, due to technical limitation, the encryption key is available from host machine, but I promise I won't do anything with your twitter account.

3. oauth token

The token was saved with AES-128-CBC, and the key is available from the host machine. This means anyone have access to host machine could acquire key and decrypt the token.

Anyway, I promise I won't touch your token and Twitter account and I'll do everything I can to secure my host machine.

It's just like you're using a third party Twitter App, you trust it so you choose to use it. It's just like that.

Nevertheless, you could try to deploy your own bot - it's an open source project, you know.

Credits

FAQ

Connection reset by peer - twauth-web

If you ran into this problem when using twauth-web, probably you need to upgrade your Python. Try to pyenv and install a latest version of Python, and this will be likely be fixed.

License

GPL 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].