bot_resender

0
0
0
Java
public
Forked

bot_resender

Telegram bot for resend messages from private channels to different channels.

How to use

  • start conversation with @resender1_bot
  • /login
  • your phone number
  • auth code from telegram + any random digit at the end, for example, Telegram code 12345 you should send 123450

After login you can create links.

  • /create
  • forward message from source channel
  • select from list destination channel
  • /delete
  • select from list what you want to delete
  • /list

Admin commands:

creating destination channel

  • /create_destination
  • forward message from destination channel, you should have write permission in that channel

delete configured destination channel

  • /delete_destination
  • select from list what you want to delete

list of destination channels

  • /list_destination

creating new bot user

  • /create_user
  • phone number of new user, in international format, without leading + and any separators, for example 79091234567

deleting bot user

  • /delete_user
  • phone number of user you want tot delete. If user is logged in, it will be logged out.

list of users

  • /list_user

config sample

app.hash=xxxxxxxxxxxxxxxxxx
app.id=xxxxxx
bot.id=xxxxxxx
bot.key=XXXXXXXXXXXXXXX

tdlib.log_level=5
tdlib.log_file=logs/tdlib.log
jdbc.url=jdbc:sqlite:db/db.sqlite
jdbc.username=sa
jdbc.password=
jdbc.driver_class=org.sqlite.JDBC
bot.owner=xxxxxxxxxxx
proxy.enabled=true
proxy.host=127.0.0.1
proxy.port=443
proxy.user=xxx
proxy.password=xxxxx
v0.3.1[beta]