🦉 A telegram Twitter bot that will allow you to send tweets!
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)
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
The most simple way to tweet!
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!
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.
Reply command /delete
to bot's message and it will delete this tweet for you.
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.
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.
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
This bot use oauth, so you need to apply an app, setup callback url. More info could be seen here.
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
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
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
- support multi-user, based on oauth, encrypted with AES-128-CBC
- help
- about
- start
- multi photo
- timeline
- new
- like
This bot is still under early development process. Anything may subject to change.
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.
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.
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.
GPL 2.0