-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restrict user #15
Comments
Something like this is not yet implemented in the public version. You can however restrict a user in the code itself by changing some lines: Wrap everything from line 101 to 157:
[ ... ] (keep everything from line 101 to 157 as it is and wrap it in the if-statement)
Where you can define the banned users with their ticket ids. Please report back how this works. EDIT: updated the above example. Here is the full code if you need it: https://gist.github.com/bostrot/d48b8951d0cb0bcf808616feb03251cd |
Hi there, Thanks for your reply. I did update it and replaced it with my test accounts ID however the message keeps being forwarded. I just attached a snipped of my code https://imgur.com/vMYd0Eh.png. I was also wondering, am I able to use markdown in startCommandText;faqCommandText;lang_contactMessage;lang_blockedSpam? Thanks again for your help, much appreciated! |
Oh! I just think we misunderstood each other. In terms of restricting I meant to restrict a user from being able to contact the support / communicate with the bot. So I can ban/restrict spammers lets say. |
My mistake, I sent you the wrong section where to implement it. Wrap everything from line 101 to 157 into the statement. See updated reply #15 (comment) Also you currently cannot use markdown in those variables you mentioned. You can however use something like |
No worries, thanks for the update will try that out. Alright, yes I was using \n already was just hoping to hide links behind text / make text bold. But thats is ok. Looking forward for the update ;) I was also wondering - the user first name, username (or undefined) can simply be a tag/mention so that I am also able to click on the telegrams profile of a user which did not setup a username. That would prob help a lot. Anyways, great working bot! |
The latest commit ef08eea adds the ability to use the |
Ok wow! You implemented everything. Awesome man! Also love the new ticket number option #tID. Sleek! Love it! I just tried the I was also wondering is there a command like Also, am I able to turn off webpage preview in the I also noticed that Thanks for your continuous help! |
Done e147f48. Yes, initially I intended to use the Telegram hashtag system to find older tickets of that user. I didn't expect that a Telegram hashtag has to begin with a normal character and not a number though. Fixed that by putting t in front of it. You can disable webpage preview by changing l. 192 from:
to
I couldn't verify the About the |
Awesome, it's all working now perfectly. Didnt know that the Was prob something on my end then, as I was wondering, how do I trigger the |
The |
Alright, cool! |
Are we able to ban/restrict user?
The text was updated successfully, but these errors were encountered: