bots-business / BBExpertsList

2 stars 10 forks source link

New bot: Expert tagger #30

Open bots-business opened 3 years ago

bots-business commented 3 years ago

We have LogList

all Expert have EL and ML.

Need bot that can:

image

bots-business commented 3 years ago

need to work out an idea: mechanics, a list of commands, etc.

sohamdeogaonkar commented 3 years ago

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

killerbhai commented 3 years ago

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")

mohdradin commented 3 years ago

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

killerbhai commented 3 years ago

@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 .

mohdradin commented 3 years ago

we can use Api.kickChatMember to kick a user from chat