Open bots-business opened 3 years ago
need to work out an idea: mechanics, a list of commands, etc.
We can create a telegram bot
We can use Api.getChatAdministrators for getting all chat admins and there custom titles it can help to extract the list
Api.promoteChatMember for promoting user
Api.setChatAdministratorCustomTitle for adding custom title
Both method can use to update admin right and there title
Make an "*/@" and put there code first get the user data that he is (expert/master) or no if the user is (expert/master) then get the user ( EL/ML ) points value use and make new variable that will be for level "var lvl = user.points/100" and then use Api.setChatAdministratorCustomTitle With (lvl+" LVL")
Make an "*/@" and put there code first get the user data that he is (expert/master) or no if the user is (expert/master) then get the user ( EL/ML ) points value use and make new variable that will be for level "var lvl = user.points/100" and then use Api.setChatAdministratorCustomTitle With (lvl+" LVL")
your telegram username
@PhsycoAJ
On Thu, 20 May 2021, 6:08 pm mohdradin, @.***> wrote:
Make an "*/@" and put there code first get the user data that he is (expert/master) or no if the user is (expert/master) then get the user ( EL/ML ) points value use and make new variable that will be for level "var lvl = user.points/100" and then use Api.setChatAdministratorCustomTitle With (lvl+" LVL")
your telegram username
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bots-business/BBExpertsList/issues/30#issuecomment-845072003, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3ZKSK5GP4J4G2IPAJSEMTTOT7FTANCNFSM45G3K4MQ .
we can use Api.kickChatMember to kick a user from chat
We have LogList
all Expert have EL and ML.
Need bot that can: