Mute and unmute a user in chat. If a muted user posts a message, the message is deleted automaically only owners can mute | mods and owners can unmute
Y
Y
[#!/]mutelist
Returns list of muted users in group/SuperGroup.
Y
Y
[#!/]muteslist
Returns mutes for group/SuperGroup.
Y
Y
[#!/]settings
Returns a list of group/SuperGroup settings.
Y
Y
[#!/]stats
Returns simple message statistics in a .txt document.
Y
Y
[#!/]statslist
Returns simple message statistics in a message.
Y
Y
[#!/]banlist
Returns group/SuperGroup banlist.
Y
Y
[#!/]clean [rules|about|modlist|mutelist]
Clears rules, about, modlist, or mutelist
Y
Y
[#!/]del
Deletes a message by reply.
N
Y
[#!/]res [username]
Returns users name and id by username.
Y
Y
[#!/]log
Returns group logs.In SuperGroups: Search for kick reasons using [#RTL|#spam|#lockmember]
Y
Y
Owner commands {#moderator_commands}
Command
Description
groups/SuperGroups?
In private?
[#!/]muteuser [username|id|reply]
Mute and unmute a user in chat.If a muted user posts a message, the message is deleted automaically / only owners can mute / mods and owners can unmute
N
[#!/]all
Returns all available information about current group.
Y
N
[#!/]all [GroupID]
Returns all available information about group by GroupID.
Y
N
[#!/]owners [GroupID] [kick|ban|unban] [UserID]
Kick, ban, or unban a user from a group by GroupID and UserID.
N
Y
[#!/]owners [GroupID] clean [modlist|rules|about]
Clear options by GroupID.
N
Y
[#!/]owners [GroupID] setflood [value]
Set flood for a group by GroupID and a value [1-5].
N
Y
[#!/]owners [GroupID] lock [setting]
Lock settings for a group by GroupID.
N
Y
[#!/]owner [GroupID] unlock [setting]
Unlock settings for a group by GroupID.
N
Y
[#!/]owners [GroupID] new link
Create a new group link by GroupID.
N
Y
[#!/]owners [GroupID] get link
Returns group link by GroupID.
N
Y
[#!/]changename [GroupID] [name]
Change a group's name by GroupID.
N
Y
[#!/]changrules [GroupID] [rules]
Change a group's rules by GroupID.
N
Y
[#!/]changeabout [GroupID] [about]
Change a group's about by GroupID.
N
Y
[#!/]loggroup [GroupID]
get group logs by GroupID.
N
Y
Admin commands
Command
Description
Groups?
SuperGroups?
Realms?
[#!/]creategroup [Name]
Create a group and add it to moderation.json.
Y
Y
Y
[#!/]createrealm [Name]
Create a realm and remove it from moderation.json.
Y
Y
Y
[#!/]add
Add a group to moderation.json.
Y
Y
Y
[#!/]rem
Remove a group from moderation.json.
Y
Y
Y
[#!/]rem [GroupID]
Remove a group from moderation by GroupID.
Y
Y
Y
[#!/]setname [Name]
Set realm name.
N
--
Y
[#!/]setabout [group|sgroup] [GroupID] [Text]
Set a group's about text.
Y
Y
Y
[#!/]setrules [group|sgroup] [GroupID] [Text]
Set a group's rules.
Y
Y
Y
[#!/]lock [GroupID] [setting]
Lock a group's setting.
Y
Y
Y
[#!/]lock [GroupID] [setting]
Lock a group's setting.
Y
Y
Y
[#!/]unlock [GroupID] [setting]
Unlock a group's setting.
Y
Y
Y
[#!/]who
Get a list of members in group/realm.
Y
Y
Y
[#!/]wholist
Get a .txt document list of members in group/realm.
Y
Y
Y
[#!/]type
Get group type.
Y
Y
Y
[#!/]addlog
Add a Log_SuperGroup for GBan log.
N
Y
N
[#!/]remlog
Remove a Log_SuperGroup for GBan log.
N
Y
N
[#!/]kill chat [GroupID]
Kick all users and remove a group from moderation.
Y
Y
Y
[#!/]kill realm [RealmID]
Kick all users and remove a realm from moderation.
Y
Y
Y
[#!/]banall [id|usename]
Ban a user from all moderated groups where bot is an admin (#global_ban)
Y
Y
Y
[#!/]unbanall [id|usename]
Unban a user from all moderated groups where bot is an admin (#global_ban)
Y
Y
Y
[#!/]gbanlist [id|usename]
Returns a list of all globally banned user
Y
Y
Y
[#!/]list groups
Returns a list of all groups.
Y
Y
Y
[#!/]list realms
Returns a list of all realms.
Y
Y
Y
[#!/]whitelist
User/Bot will not be subject to message checks.
Y
Y
Y
[#!/]support
Promote user to support.
Y
Y
Y
[#!/]-support
deomote user from support.
Y
Y
Y
[#!/]pm [UserID]
Sends a private message to a user by UserID.
Y
Y
Y
[#!/]import
Bot joins a group by GroupLink.
Y
Y
Y
[#!/]pmblock [UserID]
Block a user from bot private message and bot photo.
Y
Y
Y
[#!/]pmunblock [UserID]
Unblock a user from bot private message and bot photo.
Y
Y
Y
[#!/]markread [on|off]
Toggle bot to doubble check or not doubble check messages.
Y
Y
Y
[#!/]setbotphoto
Set bot photo.
Y
Y
Y
[#!/]contactlist
Bot will generate a list of all it's contacts***and send it by private message of command sender
Y
Y
Y
[#!/]dialoglist
Bot will generate a list of all it's private message users***and send it by private message of command sender
Y
Y
Y
[#!/]delcontact
Delete bot contact.
Y
Y
Y
[#!/]reload
Reloads all bot plugins
Y
Y
Y
[#!/]updateid
Adds long_id to moderation data for groups.
Y
Y
Y
[#!/]!bc [GroupID] [text]
This command will send text to [GroupID]
Y
Y
Y
[#!/]leave
Bot will leave that group and can only be re-invited by an admin with bot phone number
Y
Y
Y
[#!/]mp
(Mod Promote) Set user as a mod of supergroup. TESTING
N
Y
N
[#!/]md
(Mod demote) Removes user from mod of supergroup. TESTING
N
Y
N
Sudo Commands {#sudo_commands}
Command
Groups?
SuperGroups?
Realms?
[#!/]addadmin [id|username]
Set a user as bot admin.
Y
Y
[#!/]removeadmin [id|username]
Remove a user from bot admin.
Y
Y
[#!/]sync_gbans
Sync your GBans with official @TeleSeed
Y
Y
Settings {#settings}
Command
Groups?
SuperGroups?
[#!/](un)lock links
Y
Y
[#!/](un)lock flood
Y
Y
[#!/]setflood [5-20]
Y
Y
[#!/](un)lock bots
Y
N
[#!/](un)lock spam
Y
Y
[#!/](un)lock arabic
Y
Y
[#!/](un)lock member
Y
Y
[#!/](un)lock leave
Y
N
[#!/](un)lock RTL
Y
Y
[#!/](un)lock tgservice
N
Y
[#!/](un)lock sticker
Y
Y
[#!/]public [yes|no]
Y
Y
[#!/](un)lock strict
N
Y
[#!/](un)lock contacts
N
Y
/lock [setting] and /unlock [setting]: sets allowed actions and content for groups/SuperGroups
***/lock strict*** in a supergroup, if strict is locked users will be kicked for violations of settings or mutes
/public [yes|no]: Set group/SuperGroup visibility in pm !chats or !chatlist commands.
Mutes {#mutes}
Command
[#!/]mute audio
[#!/]mute video
[#!/]mute photo
[#!/]mute documents
[#!/]mute gifs
[#!/]mute all
Groups: If "muted" message type: user is kicked if message type is posted
**SuperGroups: A "muted" message type is auto-deleted if posted **
Ranks {#ranks}
Rank
Description
Banned
Cannot enter the group(s).
User
Default rank.
Moderator
Can set settings and kick/ban/unban users from a group. Can unmute users.
Owner
Can mute users. Can promote/demote moderators. Can set SuperGroup admins.
Support
Can globally unban users. Acts as owner of all groups.
Administrator
Can globally ban/unban users. Can promote/demote owners.
Sudo
Can add[#!/]remove groups. Can broadcast. Can promote/demote administrators.
Each higher status inherits the privileges of the lower status.
**You can use "#", "!", or "/" to begin all commands
Installation
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev lua-socket lua-sec lua-expat libevent-dev make unzip git redis-server autoconf g++ libjansson-dev libpython-dev expat libexpat1-dev
cd$HOME
git clone https://github.com/groupforspeed/WaderTG.git
cd WaderTG
chmod +x launchfix2.sh
chmod +x launch.sh
chmod +x autolaunch.sh
./launchfix2.sh install
cd .luarocks
cd bin
./luarocks-5.2 install luafilesystem
./luarocks-5.2 install lub
./luarocks-5.2 install luaexpat
cd$HOMEcd WaderTG
./launchfix2.sh install
./autolaunch.sh