/setprivacy is not working with my Telegram bot - telegram-bot

In the process of adding Telegram bot to a group, the /setprivacy is set to Enable, so that whenever the user mention the bot using the username of bot or '/', the bot will get the message. Despite of this enable setting, the bot still receives the query from the user and replying to it.
More info:-
I set the bot as a Administrator of that group to access message
/setprivacy status Enabled (I tried switching it to Disabled and Enable it again, not working)
Anyone please help me on this issue.
Thanks

A bot set as administrator will always receive all messages, no matter the privacy setting. See https://core.telegram.org/bots#privacy-mode.
Privacy mode is enabled by default for all bots, except bots that were
added to the group as admins (bot admins always receive all messages).
You need to either revoke your bot's admin status or program your bot not to reply to a user's query.

Related

Discord js v13 Edit Channel Permissions for Bot

Trying to add bot to the channel permissions. The code works with ADMINSTRATOR Permissions but not without.
Iam getting always a Missing Access Error
Missing Access Error:
Current Permissions:
Code:
channel.permissionOverwrites.edit(interaction.user.id, { VIEW_CHANNEL: true, SEND_MESSAGES: true});
Simple, if the bot can't see the channel, it can't modify it. Same way as user can't modify existing channel if they can't see that channel.
That is also why it works with ADMINISTRATOR perms because that way bot can see every channel

Issue With Receiving Keycloak Email to the Clients

I have a fully functional Keycloak setup with verify email and then update password features enabled. I have tested multiple times and the mail sending part is working perfectly. But some clients reporting that they didn't receive the registration mail. This maybe due to their firewall, spam filter and so on, now I want way to check whether the email has sent from my system or not. Logs won't help at all, cannot find anything related to sent mails in logs.

Failed to authenticate on SMTP server with username In Laravel [duplicate]

I recently encountered a SwiftMail error while trying to send a mail through gmail.
Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted.
I was trying to send mail through my gmail and google thought that I was a spam(maybe because I was requesting too fast) I received a mail from them saying my account was access and I told them it was me. I was able to send mail without problem and it just occured now.
This is the contents of my env file.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=talentscoutphil#gmail.com
MAIL_PASSWORD=mypasswordhere
MAIL_FROM=talentscoutphil#gmail.com
MAIL_NAME=talentscout
I researched on the internet and some answers includes enabling the "access for lesser app" and "unlocking gmail captcha" which sadly didn't work for me until I found the 2-step verification.
What I did the following was:
enable the 2-step verification to google HERE
Create App Password to be use by your system HERE
I selected Others (custom name) and clicked generate
Went to my env file in laravel and edited this
MAIL_USERNAME=talentscoutphil#gmail.com
MAIL_PASSWORD=thepasswordgenerated
Restarted my apache server and boom! It works again.
This was my solution. I created this to atleast make other people not go wasting their time researching for a possible answer.
I had the same problem, changing my gmail password fixed the issue, and also don't forget to enable less secure app on on your gmail account
i had same issue i resolve this use under
go to gmail.com
my account
and enable
Allow less secure apps: ON
it start works
I had everything fine. Less secure app option was also enabled. Still, I was getting the error. What I have done is:
Google will send you Critical security alert
Then you have to authorize that activity. ( Clicking on 'YES, THAT WAS ME' type thing )
Then you can try sending email again.
From May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
Important: This deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.
For more information, continue to read.
https://support.google.com/accounts/answer/6010255?hl=en&visit_id=637919157823422324-2612210762&p=less-secure-apps&rd=1
This is my .env mail settings
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
MAIL_USERNAME=example#gmail.com
MAIL_PASSWORD=hello27
MAIL_ENCRYPTION=tls
i was getting thesame error as stated in the question but by using
php artisan config:cache
Everything worked fine
Gmail tends to block usage of mailing addresses which are being used in other applications as username for security reasons. Either you should create a new email address for mail purpose or you must go to the Less Secure App Access and turn on the access for less secure apps. Gmail will send you a mail for confirmation from where you can verify that those changes were made by yourself. Only then, you can use such mailing addresses for mailing purpose through applications.
There is no need to update anything in config/mail.php. just put you credential in .env with this specific key's. This is my .env file.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=example#gmail.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=tls
I had the same issue after long time debugging and googling i have found the solution. that by enabling less secure apps. the email started working.
if your gmail is secure with 2 step verification you can't enable less secure app. so turn off 2 step verification and enable less secure app. by click here enable less secure apps on your gmail account
This single step worked for me... No 2-step verification.
As I had created a dummy account for my local development, so I was OK with this setting.
Make sure you only do this if your account contains NO personal or any critical data.
This is just another way of tackling this error and NOT secure.
I turned ON the setting to alow less secured apps to be allowed access.
Form here :
https://myaccount.google.com/lesssecureapps
I had the same problem, then I did this two steps:
Enable "Allow less secure apps" on your google account security policy.
Restart your local servers.
I encountered the same issue and solved it with no 2FA enabled ("Allow less secure apps" is still in need).
After checking Google error code list, I thought maybe there are some errors in .env.
Below settings are tested in Laravel 8 and worked:
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=username#gmail.com
MAIL_PASSWORD='your#password_here' # put the password in quotes
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=username#gmail.com
MAIL_FROM_NAME="${APP_NAME}"
Please remember that put the password in quotes. That works for me.
If your using your cpanel custom email, change your host from smtp.gmail.com to your domain name. it worked for me
As from May 30, 2022 Google has stopped the support of third-party apps or devices which ask you to signin to your Google Account using only your username and password.
To solve this,
make sure you that you have enabled 2-step verification.
Then select App paswords.
select app and device you want to generate the app password for.
on select app select mail then on device choose and name a custom device.
After that, a password will be generated for you to use. Replace your original password with the generated password. Refresh or upload your files to the server the reload.
It will work
I had this issue. first checked the credentials and username, they were all good, then restarted my server (docker stop/start) and it works now. something with cache I believe

WHMCS not sending the cpanel details to clients

I am a newbie for whmcs. I have configure all the necessary configuration in whmcs and my whm/cpanel are also connected with whmcs. I have tested, it shows successful message to me. But my clients getting the welcome mail, order confirmation mail and invoice mail except cpanel details.
Please suggest me what to do?
Thanks in advance.
Make sure that you have severs configured in 'Setup' > 'Products/Services' > Severs and check that your client is assigned to the server in their hosting product
It could be due to error(s) in the service welcome email template.
At the admin area, go to that specific user services and at the footer, click on "Resend Product Welcome Email" .
You will be redirected to the sent emails log for that client.
If it did not send, check Utilities > Logs > Activity Log .
If you wish to send the email manually, go to Orders->List All Orders and then click on the ID of the order for which you want to send the email. Make sure you are on the Products/Services tab. Scroll to the very bottom of the page where you see Send Message. Select Hosting Account Welcome Email from the drop-down and click on send message.
If the email template contains an error, you will be told after the page refreshes. If not, you will see a success notification. This at least tells you that your automatic email error isn't coming from the email template. It also helps you send the email automatically while researching for a solution to automate the process.

Disable Message History in processmaker

is there any way to disable "Message History" in processmaker, or perhaps disable the possibility of resending message for some of the users? Thank you.
A latest version of ProcessMaker includes the possibility to disable it based on permissions. Check this more info:
Message History Permission
Available version: 2.5.1
Through ProcessMaker versions, users who had participation in a case had the option to see not only a preview of messages sent, even the privates ones, but also to resend messages to any user allowing them to know possible confidential information of a Company. Now resending emails functionality has been restricted per user.
By default, users don't have the permission to resend messages, if you want to add a permission for users to resend them open Process Permission and on Type select Message History
http://wiki.processmaker.com/index.php/2.0/Process_Permissions#Message_History_Permission