Welcome to the Twitter Bot! This bot allows you to perform various actions with your Twitter accounts, including transferring tweets from Telegram to Twitter, checking account statuses, following accounts, changing usernames, and updating profile pictures.
- Python 3.11 or higher (tested on 3.12.1)
- Required Python packages:
- asyncio
- colorama
- tweepy-self
- python-telegram-bot
- aiohttp
Ensure you have the necessary API keys and tokens for CapSolver and Telegram.
-
Clone the repository or download the script
-
Install the required Python packages:
pip install -r requirements.txt
-
Set your CapSolver API key, Telegram Bot Token, and Telegram Chat ID in the script
-
Set your accounts, proxies, comments and config.py
This file should contain your accounts in the following format:
username:password:email:auth_token
or just
auth_token
Each account should be on a new line. You can provide either the username, password, email, and auth_token separated by colons, or just the auth_token.
This file should contain your proxies, with each proxy on a new line:
http://proxy1:port:login:password
http://proxy2:port:login:password
If you have more accounts than proxies, the proxies will be reused for the remaining accounts.
This file should contain a list of comments in the following format:
[
"GM", "GN!", "Hello", "DYOR", "Bye", "Good code",
"Awesome tweet", "NGMI"
]
CapSolver API Key: Needed to solve captcha on twitter automatically
CAPSOLVER_API_KEY = 'your_capsolver_api_key'
Telegram Bot Token: Needed to interact with the Telegram API
TELEGRAM_BOT_TOKEN = 'your_telegram_bot_token'
Telegram Chat ID: The ID of the Telegram chat where the bot will send messages
TELEGRAM_CHAT_ID = 'your_telegram_chat_id'
Number of Likes/Retweets/Replies/Quotes: Configure how many likes, retweets, replies, and quotes the bot should perform. Setting a value to 0 means the action will not be performed
NUM_LIKES = 10
NUM_RETWEETS = 5
NUM_REPLIES = 3
NUM_QUOTES = 0
Delay Between Actions: Set the minimum and maximum delay between bot actions in seconds
MIN_DELAY = 10
MAX_DELAY = 20
Accounts to Follow: List of accounts the bot should follow
list_of_accounts_to_follow = [
'ElonMusk', 'ElonMusk2',
]
New Usernames: List of new usernames for the namechanger module
list_of_new_usernames = [
'New_username1', 'New_username2'
]
Run the script:
main.py
Tg to Twitter: Transfers tweets from Telegram to Twitter. Requires you to send the Twitter link to the Telegram bot.
Accounts Checker: Checks the status of Twitter accounts.
Follow: Follows the accounts listed in list_of_accounts_to_follow.
Namechanger: Changes the username of your Twitter account to one of the names listed in list_of_new_usernames.
Pfpchanger: Changes the profile picture of your Twitter account to one of the puctures from Images folder.
Feel free to submit issues and pull requests for new features, bug fixes, or enhancements.
This project is licensed under the MIT License. See the LICENSE file for details.