t2t

command module
v0.0.0-...-c0b0720 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README ΒΆ

Telegram Twitter Bot πŸ€–

This is a Go-based Telegram bot that allows you to post tweets to Twitter. 🐦

Prerequisites πŸ“‹

Before you begin, ensure you have the following:

  • Go programming language installed.
  • Twitter API credentials (consumer key, consumer secret, access token, access secret).
  • Telegram bot token.
  • Authorized Telegram user ID. πŸ‘€

Configuration βš™οΈ

  1. Open the main.go file.
  2. Replace the following constants with your API credentials and settings:
const (
    consumerKey       = "YOUR_TWITTER_CONSUMER_KEY"
    consumerSecret    = "YOUR_TWITTER_CONSUMER_SECRET"
    accessToken       = "YOUR_TWITTER_ACCESS_TOKEN"
    accessSecret      = "YOUR_TWITTER_ACCESS_SECRET"
    telegramBotToken  = "YOUR_TELEGRAM_BOT_TOKEN"
    authorizedUserID = "YOUR_TELEGRAM_USER_ID" // Replace with your Telegram User ID
)

Usage πŸš€

To use this Telegram bot, follow these commands:

  • /tweet <tweet_text>: Post a tweet.
  • /commands: Show available commands.

How It Works πŸ› οΈ

The bot uses the Twitter API to post tweets based on your commands.

License πŸ“œ

This project is licensed under the GNU General Public License, version 3 (GPL-3.0) - see the LICENSE file for details.

Acknowledgments πŸ™Œ

Author ✍️

SecWithMoh

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL