Easy way to use Telegram bot to hide your identity.

Overview

telegram-support-bot

Easy way to use Telegram bot to hide your identity. Useful for support, anonymous channel management. Free clone of Livegram Bot.

Deploy

How bot works:

  1. Your client write a message to your bot
  2. Bot forwards the message to your secret chat
  3. Any chat participant can reply on a forwarded message
  4. Bot will copy the message and send it to your client

.env variables

You need to specify these env variables to run this bot. If you run it locally, you can also write them in .env text file.

TELEGRAM_TOKEN=  # your bot's token
TELEGRAM_SUPPORT_CHAT_ID=  # chat_id where the bot will forward all incoming messages

# optional params
HEROKU_APP_NAME=  # name of your Heroku app for webhook setup
WELCOME_MESSAGE=  # text of a message that bot will write on /start command
Comments
  • Bad webhook error on start up

    Bad webhook error on start up

    I just deployed this to Heroku and I think I got everything right but I'm getting an error when the app tries to start... telegram.error.BadRequest: Bad webhook

    I've checked the URL as per the first line of output but there's not many other clues... it's running on a free dyno if that makes a difference?

    app[web.1]: Running bot in webhook mode. Make sure that this url is correct: https://<app-name>.herokuapp.com/
    app[web.1]: Error while bootstrap set webhook: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443
    app[web.1]: Failed bootstrap phase after 0 retries (Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443)
    app[web.1]: unhandled exception in Bot:1782207609:updater
    app[web.1]: Traceback (most recent call last):
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 236, in _thread_wrapper
    app[web.1]:     target(*args, **kwargs)
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 602, in _start_webhook
    app[web.1]:     ip_address=ip_address,
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 674, in _bootstrap
    app[web.1]:     bootstrap_interval,
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 530, in _network_loop_retry
    app[web.1]:     onerr_cb(telegram_exc)
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 652, in bootstrap_onerr_cb
    app[web.1]:     raise exc
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 516, in _network_loop_retry
    app[web.1]:     if not action_cb():
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 640, in bootstrap_set_webhook
    app[web.1]:     drop_pending_updates=drop_pending_updates,
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 127, in decorator
    app[web.1]:     result = func(*args, **kwargs)
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 2863, in set_webhook
    app[web.1]:     result = self._post('setWebhook', data, timeout=timeout, api_kwargs=api_kwargs)
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 260, in _post
    app[web.1]:     f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 354, in post
    app[web.1]:     **urlopen_kwargs,
    app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 272, in _request_wrapper
    app[web.1]:     raise BadRequest(message)
    app[web.1]: telegram.error.BadRequest: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443
    
    opened by matt17r 11
  • Add support for restricted privacy user forwards

    Add support for restricted privacy user forwards

    Добавил способ сохранить реальный ID юзера, в случае если он запретил оставлять ссылку на его профиль при форвардинге.

    Идеально было бы сделать базу данных, но мне хотелось без создания дополнительных сущностей.

    Алгоритм работы:

    1. При форвардинге сообщения в чат поддержки бот проверяет запретил ли юзер делать на него ссылку, и если да то следом в чате поддержки сам отвечает на пересланное сообщение оставляя ID юзера и комментарий для команды поддержки (задается в .env).
    2. При ответе на форварднутое сообщение командой поддержки - проверяется скрыта ли ссылка на юзера и если да выдается заданное в .env сообщение об ошибке.
    3. При ответе командой поддержки на сообщение бота - из него извлекается ID пользователя и ответ уходит ему.
    opened by rus-ai 8
  • Бесплатного Heroku больше нет

    Бесплатного Heroku больше нет

    Спасибо за вашу работу, до сих пор пользуюсь, очень удобно. Heroku больше не будет бесплатным с этого ноября. Думаю что уместно убрать всю инфу об этом. Успешно перенёс бота на свою vps, ничего сложного.

    opened by Nuke142 1
  • Heroku blocks deploying app via button.

    Heroku blocks deploying app via button.

    Item could not be created:

    We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.

    opened by EmerickGrimm 0
  • Checking that reply_to_message was reply to bot

    Checking that reply_to_message was reply to bot

    if user_id:
        context.bot.copy_message(
            message_id=update.message.message_id,
            chat_id=user_id,
            from_chat_id=update.message.chat_id
        )
    else:
        if update.message.reply_to_message.from_user.is_bot:      #Checking that reply_to_message was reply to bot 
            context.bot.send_message(
                chat_id=update.message.chat_id,
                text=WRONG_REPLY
            )
    

    WRONG_REPLY will be send only for a bot's messages

    opened by ightingale 0
  • Heroku: We couldn't deploy your app because the source code violates...

    Heroku: We couldn't deploy your app because the source code violates...

    Hello!

    When I'm trying to deploy it to Heroku:

    We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.

    Снимок экрана 2022-06-16 в 11 08 14
    opened by Brullworfel 0
Owner
Daniil Okhlopkov
Follow me
Daniil Okhlopkov
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
⚡ PoC: Hide a c&c botnet in the discord client. (Proof Of Concept)

Discord-BotnetClient Embed C&C botnet into the discord client. Working trought websocket c&c server. How to use. pip3 install websocket_server colored

0хVιcнy#1337 37 Oct 21, 2022
A PowerPacked Version Of Telegram Leech Bot With Modern Easy-To-Use Interface & UI !

FuZionX Leech Bot A Powerful Telegram Leech Bot Modded by MysterySD to directly Leech to Telegram, with Multi Direct Links Support for Enhanced Leechi

MysterySD 28 Oct 9, 2022
Easy-apply-bot - A LinkedIn Easy Apply bot to help with my job search.

easy-apply-bot A LinkedIn Easy Apply bot to help with my job search. Getting Started First, clone the repository somewhere onto your computer, or down

Matthew Alunni 5 Dec 9, 2022
A really easy way to display your spotify listening status on spotify.

Spotify playing README A really easy way to display your spotify listening status on READMEs and Websites too! Demo Here's the embed from the site. Cu

Sunrit Jana 21 Nov 6, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
A simple Telegram bot which handles images in whole different way

zeroimagebot thezeroimagebot ?? I Can Edit Dimension Of An image which is required by @stickers ?? I Can Extract Text From An Image ?? !!! New Updates

RAVEEN KUMAR 4 Jul 1, 2021
Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features! 🥰

CallMusicPlus69 This Repo base on! ??️ A CallsMusic Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features

brut✘⁶⁹ // ユスフ 6 Jun 26, 2022
📢 Video Chat Stream Telegram Bot. Can ⏳ Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Video Chat Of Channels & Groups !

Telegram Video Chat Bot (Beta) ?? Video Chat Stream Telegram Bot ?? Can Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Vide

brut✘⁶⁹ // ユスフ 15 Dec 24, 2022
A simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statistical tables and plots to users as Telegram messages.

telegram-stats-bot Telegram-stats-bot is a simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statist

null 22 Dec 26, 2022
A Telegram Bot written in Python for mirroring files on the Internet to your Google Drive or Telegram

Original Repo mirror-leech-telegram-bot This is a Telegram Bot written in Python for mirroring files on the Internet to your Google Drive or Telegram.

null 0 Jan 3, 2022
A simple Telegram bot, written in Python, that you can use to shill (i.e. send messages) your token, or whatever, to channels.

Telegram Shill Bot Ever wanted a Shill Bot but wankers keep scamming for one OR wanted to charge you an arm and a leg? This is a simple bot written in

null 53 Nov 25, 2022
Elon Muschioso is a Telegram bot that you can use to manage your computer from the phone.

elon Elon Muschioso is a Telegram bot that you can use to manage your computer from the phone. what does it do? Elon Muschio makes a connection from y

null 4 Feb 28, 2022
This is telegram bot to generate string session for using user bots. You can see live bot in https://telegram.dog/string_session_Nsbot

TG String Session Generate Pyrogram String Session Using this bot. Demo Bot: Configs: API_HASH Get from Here. API_ID Get from Here. BOT_TOKEN Telegram

Anonymous 27 Oct 28, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022