SlackyTGguy
Achieve slack to telegram native message passing and interop for all your BD needs!
Install / Use
/learn @binjix/SlackyTGguyREADME
bd native interop bridge: telegram to slack/discord message passing
hey bd friends 👋 this bot helps crypto communities keep track of their telegram chats by sending unanswered messages to slack or discord. it triggers at whatever interval you want (right now set at ~10 seconds for testing reasons, but you can edit it as you please). basically if this bot guy is in a chat, and a partner message goes unanswered, it'll ping its slack or discord pal to remind you & your team.
what does it do?
- watches your telegram groups
- tells you in slack or discord if someone's message hasn't been answered
- lets you jump right to the telegram message from slack or discord
- cleans up slack/discord notifications once someone's replied in telegram
- ensures that only partner messages get flagged, not team members'
how to set it up (for beginners)
don't worry if you're non technical - this will walk you through it step by step!
get the stuff you need
- download and install python (choose the latest version)
- download and install pycharm community edition (it's free!)
grab the code
- at the top of this page, click the green "code" button
- choose "download zip"
- unzip the file somewhere on your computer
set up the project in pycharm
- open pycharm
- click "open" and find the folder you just unzipped
- pycharm might ask if you want to create a virtual environment - say yes!
install the required packages
- in pycharm, go to "view" > "tool windows" > "terminal"
- in the terminal, type:
pip3 install -r requirements.txt - in the terminal, then type:
pip3 install "python-telegram-bot[job-queue]"
set up your telegram bot
- open telegram and search for "@botfather"
- send him the message:
/newbot - follow his instructions and keep the API token he gives you
configure your telegram bot's group privacy settings
- in telegram, message @BotFather
- send the command:
/mybots - select your bot from the list
- choose "Bot Settings"
- select "Group Privacy"
- choose "Turn off"
this step is super important! it lets your bot see all messages in the group, not just commands. without this, the bot won't work properly in group chats.
set up your slack app (if using slack)
- go to slack's app page and click "create new app"
- choose "from scratch" and give it a name
- go to "oauth & permissions" and scroll down to "scopes"
- add these bot token scopes:
chat:writeandchat:write.public - go back up and click "install to workspace"
- copy the "bot user oauth token" it gives you
set up your discord webhook (if using discord)
- go to your Discord server settings
- click on "Integrations", then "Webhooks"
- click "New Webhook" and choose a name and channel for it
- copy the webhook URL (you'll need this later)
connect everything
- in your project folder, find the file named
.env.example - rename it to just
.env - open it and fill in your telegram token, and either your slack token and channel ID, or your discord webhook URL
- set
OUTPUT_PLATFORMto either "slack" or "discord"
configure team member IDs
- open the
main.pyfile in your text editor - find the line
TEAM_MEMBER_IDS = [] - add the Telegram user IDs of your team members inside the brackets, separated by commas
example:
TEAM_MEMBER_IDS = [123456789, 987654321]
customize unanswered message threshold
- open the
main.pyfile in your text editor - find the line
UNANSWERED_THRESHOLD = 10 # seconds - change the number to your desired threshold in seconds
run the bot
- in PyCharm, find the file
main.pyin the project folder - right-click it and choose "Run 'main'"
- you should see console output indicating that the bot has started
invite the bot to your groups
- in telegram, add your new bot to any groups you want it to watch
and you're done! the bot should now be running and keeping an eye on your telegram groups. if you run into any trouble, feel free to ask binji in that twitter post (assuming that's where you found this)
troubleshooting
SSL certificate issues
if you encounter SSL certificate errors when running the bot:
- ensure you have the latest version of Python installed
- try running this command in your terminal:
replace '3.x' with your Python version number./Applications/Python 3.x/Install Certificates.command
bot not receiving messages
if the bot is not receiving messages:
- ensure the bot has been added to the Telegram group
- check that the bot has the necessary permissions in the group
- for channels, make sure the bot is added as an admin
messages not being sent to Slack/Discord
if messages are not being sent to Slack or Discord:
- double-check your
.envfile to ensure all tokens and URLs are correct - for Slack, verify that the bot has been properly installed to your workspace
- for Discord, ensure the webhook URL is valid and points to the correct channel
want to help out?
jk man i did this in like 3 hours, i'll need you to buy me food before i touch code again, don;t expect this to be maintained, but i think it should just work :)
legal stuff
this project is under the MIT license - basically, do whatever you want with it, just don't blame binji if something goes wrong!
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
