Module ImportFrom alias alias Import alias Import alias Import alias Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Assign NameStore Dict Str Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword NameLoad keyword NameLoad Return decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Return Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str Num If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str BinOpMult NameLoad Num orelse Assign NameStore Str If CompareLtE Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad Str Return Str orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Return Str If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Return Str If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Return Str If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Return Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str Num If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str BinOpMult NameLoad Num Expr Call NameLoad NameLoad BinOpAdd Str NameLoad Return Str orelse Expr Call NameLoad NameLoad Str Return Str Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword TupleLoad NameLoad NameLoad keyword NameLoad
N/A flask Flask request N/A json N/A requests N/A redis N/A app N/A Flask __name__ N/A file_name speech.ogg N/A languages N/A nl en-GB en-US fr de it ru cs pl es tr pt zh ar sv ja N/A token token here N/A cert example.crt N/A key example.key N/A api N/A https://api.telegram.org/bot token N/A headers N/A Host Referer User-Agent translate.google.com http://www.gstatic.com/translate/sound_player2.swf Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.163 Safari/535.19 N/A db N/A N/A redis StrictRedis host localhost port 6379 db 0 N/A remember 5 sendMessage N/A N/A chat_id text N/A N/A N/A payload N/A chat_id text chat_id text N/A r N/A N/A requests post N/A api /sendMessage params payload N/A N/A sendVoice N/A N/A chat_id language text N/A N/A N/A payload N/A tl q language text N/A r N/A N/A requests get http://translate.google.com/translate_tts params payload headers headers N/A N/A open file_name wb file N/A N/A N/A N/A file write N/A r content N/A payload N/A chat_id chat_id N/A file N/A audio N/A open speech.ogg rb N/A r N/A N/A requests post N/A api /sendAudio params payload files file N/A N/A main N/A N/A N/A N/A N/A data N/A N/A json loads N/A request data N/A N/A text N/A data N/A message N/A N/A message N/A N/A N/A N/A N/A N/A data N/A message N/A text encode utf-8 strip N/A chat_id N/A N/A N/A data N/A message N/A chat N/A id N/A N/A message /start N/A N/A N/A sendMessage chat_id Use the speech command to let me do something! (Example: /speech I like apples) N/A OK N/A N/A N/A message startswith /speech  N/A N/A submittedText N/A N/A message replace /speech  1 N/A N/A N/A N/A db get chat_id None N/A N/A selectedLanguage N/A N/A db get N/A N/A N/A data N/A message N/A chat N/A id N/A N/A N/A db expire N/A N/A N/A data N/A message N/A chat N/A id N/A remember 3600 N/A N/A selectedLanguage en-GB N/A N/A N/A len submittedText 99 N/A N/A N/A sendVoice chat_id selectedLanguage submittedText N/A N/A N/A sendMessage chat_id Please use less than 100 characters N/A OK N/A N/A N/A message /speech N/A N/A N/A sendMessage chat_id Use the command like this: /speech Hello, I like apples N/A OK N/A N/A message /help N/A N/A N/A sendMessage chat_id I support the following commands: 

                           /speech <text> - Translate your text into a voice message
                           /language <language code> - Change the language of the bot
                           /help - Show information about the commands
                           /about - Show information about the bot N/A OK N/A N/A message /about N/A N/A N/A sendMessage chat_id Source code: https://github.com/Martyn96/SpeechBot N/A OK N/A N/A message /language N/A N/A N/A sendMessage chat_id Available language codes are: 

                           nl (Dutch)
                           en-GB (English UK)
                           en-US (English US)
                           fr (French)
                           de (German)
                           it (Italian)
                           ru (Russian)
                           cs (Czech)
                           pl (Polish)
                           es (Spanish)
                           tr (Turkish)
                           pt (Portuguese)
                           zh (Chinese)
                           ar (Arabic)
                           sv (Swedish)
                           ja (Japanese) N/A OK N/A N/A N/A N/A message startswith /language  N/A N/A language N/A N/A message replace /language  1 N/A N/A language languages N/A N/A N/A N/A db set N/A N/A N/A data N/A message N/A chat N/A id language N/A N/A N/A db expire N/A N/A N/A data N/A message N/A chat N/A id N/A remember 3600 N/A N/A sendMessage chat_id N/A Successfully set language to  language N/A OK N/A N/A N/A sendMessage chat_id Please use a correct language code (nl, en-GB, en-US, fr, de, it, ru, cs, pl, es, tr, pt, zh, ar, sv, ja) N/A OK N/A OK N/A N/A N/A app route /telegram methods N/A POST N/A N/A __name__ __main__ N/A N/A N/A N/A app run 0.0.0.0 debug False port 443 ssl_context N/A cert key threaded True