-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
fix: remove templatev2 (useless) #76
Conversation
Missing language information.
Thank you for contributing
|
ooook, i'll go ahead and fix this. |
the send_templatev2() method is being deprecated.
Should be fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add the warning within the heyoo send_templatev2
method more of something like this
import warnings
from colorama import Fore, Style
def send_templatev2(self, template, recipient_id, components, lang: str = "en_US"):
message = f"{Fore.RED}The 'send_templatev2' method is deprecated and will be removed in the future. Please use 'send_template' instead.{Style.RESET_ALL}"
warnings.warn(message, DeprecationWarning)
return send_template(template, recipient_id, components, lang=lang)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed requested changes
Please refer to issue #73.