VISWESWARAN1998 / Simple-Yet-Hackable-WhatsApp-api

There is no official WhatsApp API. Here is a simple python class which satisfies the need.
Apache License 2.0
616 stars 154 forks source link

[enhancement]emojify is making the program slower #52

Closed aahnik closed 4 years ago

aahnik commented 4 years ago

is emojify actually needed?

the common emojis can be easily sent by typing text faces

I commented out emojify and related lines then

this piece of code

from whatsapp import WhatsApp

wapp = WhatsApp(100, session='aahnik')

msg = """ *Hi Demo Emoji and Formatting*
:-) i am a smiling face *i am a bold text*

_i am italicised lorem ipsum_ 

~strike through message~

;-) i am winking  <3 love is pure
(y) cheers :-p tounge out :-( i am unhappy 

        *MORE EMOJIS*
:-) ;-) (y) 
*It works* Bye """

wapp.send_message('Aahnik Personal', msg)

produced this output

emoji_demo

aahnik commented 4 years ago

removing emojify makes program fast

the time difference is considerable when sending 100s of messages

VISWESWARAN1998 commented 4 years ago

Yes I too had a thought of removing it, which I will remove it in my next commit.

Thank you and Regards, Visweswaran N

aahnik commented 4 years ago

53 i have removed emojify and updated some sections of readme

also added many enhancements and new features

please review and merge them

thanks

Aahnik