diff --git a/test/d-process_message-test/d-process_message-test2.input b/test/d-process_message-test/d-process_message-test2.input index feaad12..1f160d0 100644 --- a/test/d-process_message-test/d-process_message-test2.input +++ b/test/d-process_message-test/d-process_message-test2.input @@ -1,13 +1,65 @@ +["ok"] true +["result",0,"update_id"] 123456789 +["result",0,"message","message_id"] 123456789 +["result",0,"message","from","id"] 123456789 +["result",0,"message","from","is_bot"] false +["result",0,"message","from","first_name"] "Kay" +["result",0,"message","from","last_name"] "M" +["result",0,"message","from","username"] "Gnadelwartz" +["result",0,"message","from","language_code"] "de" +["result",0,"message","chat","id"] -123456789 +["result",0,"message","chat","title"] "Testgruppe bot only test" +["result",0,"message","chat","type"] "group" +["result",0,"message","chat","all_members_are_administrators"] true +["result",0,"message","date"] 1592372719 + +["result",0,"message","left_chat_participant","id"] 123456789 +["result",0,"message","left_chat_participant","is_bot"] false +["result",0,"message","left_chat_participant","first_name"] "Kay" +["result",0,"message","left_chat_participant","last_name"] "M" +["result",0,"message","left_chat_participant","username"] "Gnadelwartz" +["result",0,"message","left_chat_member","id"] 123456789 +["result",0,"message","left_chat_member","is_bot"] false +["result",0,"message","left_chat_member","first_name"] "Kay" +["result",0,"message","left_chat_member","last_name"] "M" +["result",0,"message","left_chat_member","username"] "Gnadelwartz" + ["result",0,"message","new_chat_participant","id"] 123456789 ["result",0,"message","new_chat_participant","is_bot"] false ["result",0,"message","new_chat_participant","first_name"] "Kay" ["result",0,"message","new_chat_participant","last_name"] "M" +["result",0,"message","new_chat_participant","username"] "Gnadelwartz" ["result",0,"message","new_chat_member","id"] 123456789 ["result",0,"message","new_chat_member","is_bot"] false ["result",0,"message","new_chat_member","first_name"] "Kay" ["result",0,"message","new_chat_member","last_name"] "M" -["result",0,"message","new_chat_members",0,"id"] 123456789 -["result",0,"message","new_chat_members",0,"is_bot"] false -["result",0,"message","new_chat_members",0,"first_name"] "Kay" -["result",0,"message","new_chat_members",0,"last_name"] "M" -["result",0,"message","left_chat_member","id"] 123456789 +["result",0,"message","new_chat_member","username"] "Gnadelwartz" + +["result",0,"message","new_chat_photo",0,"file_id"] "AgACAgIAAxkBAAEBFute6a3vIpB99vim811hxeu2tyQWfwACrKwxG0TMUUtDBH10RqlzGCukupIuAAMBAAMCAANhAAM3SAMAARoE" +["result",0,"message","new_chat_photo",0,"file_unique_id"] "AQADK6S6ki4AAzdIAwAB" +["result",0,"message","new_chat_photo",0,"file_size"] 5939 +["result",0,"message","new_chat_photo",0,"width"] 160 +["result",0,"message","new_chat_photo",0,"height"] 160 +["result",0,"message","new_chat_photo",1,"file_id"] "AgACAgIAAxkBAAEBFute6a3vIpB99vim811hxeu2tyQWfwACrKwxG0TMUUtDBH10RqlzGCukupIuAAMBAAMCAANiAAM4SAMAARoE" +["result",0,"message","new_chat_photo",1,"file_unique_id"] "AQADK6S6ki4AAzhIAwAB" +["result",0,"message","new_chat_photo",1,"file_size"] 14124 +["result",0,"message","new_chat_photo",1,"width"] 320 +["result",0,"message","new_chat_photo",1,"height"] 320 +["result",0,"message","new_chat_photo",2,"file_id"] "AgACAgIAAxkBAAEBFute6a3vIpB99vim811hxeu2tyQWfwACrKwxG0TMUUtDBH10RqlzGCukupIuAAMBAAMCAANjAAM5SAMAARoE" +["result",0,"message","new_chat_photo",2,"file_unique_id"] "AQADK6S6ki4AAzlIAwAB" +["result",0,"message","new_chat_photo",2,"file_size"] 34052 +["result",0,"message","new_chat_photo",2,"width"] 640 +["result",0,"message","new_chat_photo",2,"height"] 640 + +["result",0,"message","pinned_message","message_id"] 3022 +["result",0,"message","pinned_message","from","id"] 796814662 +["result",0,"message","pinned_message","from","is_bot"] true +["result",0,"message","pinned_message","from","first_name"] "DealOMat" +["result",0,"message","pinned_message","from","username"] "Deal_O_Mat_bot" +["result",0,"message","pinned_message","chat","id"] -1001220313778 +["result",0,"message","pinned_message","chat","title"] "Testgruppe bot only test" +["result",0,"message","pinned_message","chat","type"] "supergroup" +["result",0,"message","pinned_message","date"] 1593121152 +["result",0,"message","pinned_message","text"] "Pinned Message" + +["result",0,"message","new_chat_title"] "Testgruppe bot only" diff --git a/test/d-process_message-test/d-process_message-test2.result b/test/d-process_message-test/d-process_message-test2.result index bb02e3c..13cc1b8 100644 --- a/test/d-process_message-test/d-process_message-test2.result +++ b/test/d-process_message-test/d-process_message-test2.result @@ -1,22 +1,22 @@ -USER: FIRST_NAME +USER: FIRST_NAME Kay USER: ID 123456789 -USER: LAST_NAME -USER: USERNAME -CHAT: ALL_ADMIN +USER: LAST_NAME M +USER: USERNAME Gnadelwartz +CHAT: ALL_ADMIN true CHAT: FIRST_NAME CHAT: ID 123456789 CHAT: LAST_NAME -CHAT: TITLE -CHAT: TYPE +CHAT: TITLE Testgruppe bot only test +CHAT: TYPE group CHAT: USERNAME CAPTION: 0 LOCATION: LATITUDE LOCATION: LONGITUDE -MESSAGE: 0 /_new_chat_member 123456789 Kay M -MESSAGE: ID +MESSAGE: 0 /_new_chat_member 123456789 Gnadelwartz +MESSAGE: ID 123456789 SERVICE: 0 yes SERVICE: LEFTMEMBER 123456789 SERVICE: NEWMEMBER 123456789 -SERVICE: NEWPHOTO -SERVICE: NEWTITLE +SERVICE: NEWPHOTO AgACAgIAAxkBAAEBFute6a3vIpB99vim811hxeu2tyQWfwACrKwxG0TMUUtDBH10RqlzGCukupIuAAMBAAMCAANhAAM3SAMAARoE +SERVICE: NEWTITLE Testgruppe bot only SERVICE: PINNED