Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

SayaProject/SayaRestrictedBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

197 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variables

  • LOGIN_SYSTEM : Set True or False As per your need.
  • STRING_SESSION : Your Tg Account Session String, if login is False then this variable is compulsory to fill. ( ⚠️ Warning - Give string session on deploy website environment variable, don't give in repo )
  • API_HASH : Your API Hash From Telegram Website
  • API_ID : Your API ID From Telegram Website
  • BOT_TOKEN : Your Bot Token From BotFather
  • ADMINS : Your Admin Id For Broadcasting Message
  • CHANNEL_ID : Your Channel Id On Which Bot Upload Downloaded Content. ( And Make Your Bot Admin In This Channel With Full Rights )
  • DB_URI : Your Mongodb Database Url From Mongodb( ⚠️ Warning - Give Db Url on deploy website environment variable, don't give in repo )
  • WAITING_TIME : Increase Time To Avoid Spamming, Floodwait and Tg Account Ban Issue.
  • ERROR_MESSAGE : Set True Or False, If You Want Error Message Then True Else False.

Commands

  • /start : Check Bot Is Working Or Not
  • /help : Check How To Use Bot
  • /login : Login Your Telegram String Session
  • /logout : Logout Your Session
  • /cancel : Cancel Your Any Ongoing Task
  • /broadcast : Broadcast Message To User (Admin Only)

Usage

FOR PUBLIC CHATS

just send post/s link

FOR PRIVATE CHATS

first send invite link of the chat (unnecessary if the account of string session already member of the chat) then send post/s link

FOR BOT CHATS

send link with '/b/', bot's username and message id, you might want to install some unofficial client (like - Plus Messenger) to get the id like below

https://t.me/b/botusername/4321

MULTI POSTS

send public/private posts link as explained above with formate "from - to" to send multiple messages like below

https://t.me/xxxx/1001-1010

https://t.me/c/xxxx/101 - 120

note that space in between doesn't matter


About

A Save Restricted Content Bot Which Has Login System With TG Account Protection Security.

Resources

Stars

Watchers

Forks

Contributors