New-Dev0Projects


TgTwitterBot

Twitterbot

GitHub forksGitHub Repo stars

Getting ENV's

  1. Create a Twitter Developer Account.
    twitter

  2. Go to Developer Portal/Dashboard.
  3. Create a Application and fill the details Asked !
  4. Change the App Setting to Read + Write.
  5. Go to Keys and Token Tab.
  6. You can see Consumer Key's Heading
    authentication
    Generate the Api Key & Secret
    Generated Api Key will be CONSUMER_KEY and Api Secret will be CONSUMER_SECRET
    Which are Required in ENV.
  7. Check Authentication Token
    access token
    Generate Your Access Token and Secret.
    Access Token will be ACCESS_TOKEN
    Access Secret will be ACCESS_TOKEN_SECRET, Required.
  8. Add the User Id of users in AUTHUSERS Var. They will have Access to Use Your BOT.
  9. Go to my.telegram.org
    • Login with Your Account.
    • Go to API Development tools Tab
    • Create A Telegram APP.
    • You will Get Your API_ID and API_HASH

  10. Go to BotFather
    • Create a Bot and you will get Bot Token.
    • Fill it as BOT_TOKEN
  11. and Done !
  • Clone the Github Repo.
    git clone https://github.com/New-dev0/TgTwitterBot.git
    cd TgTwitterBot
  • Install Requirements
    pip install -r requirements.txt
  • Start The Bot
    python -m twitterbot