Skip to content
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

Feat/vk interface #342

Draft
wants to merge 157 commits into
base: dev
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
ae091ab
new telegram message proposal
pseusys Jan 22, 2024
b1c4da9
only required attachments remain
pseusys Jan 22, 2024
86c15c2
keyboard implemented
pseusys Jan 23, 2024
a0a859c
tests reworked
pseusys Jan 29, 2024
89fa2c7
telegram examples debugged
pseusys Jan 31, 2024
3745cff
optional attachment processing added
pseusys Jan 31, 2024
18ddd2c
Started implementing VK interface
NotBioWaste905 Feb 1, 2024
26dc2d6
download all removed, special downloading method created
pseusys Feb 4, 2024
57f418e
Attempts to implement asyncronous vk API usage
NotBioWaste905 Feb 5, 2024
bf1a81a
Added attachment management, started implementing keyboard
NotBioWaste905 Feb 5, 2024
7e65068
callback query added as an attachment
pseusys Feb 7, 2024
efece76
callback query conditions added
pseusys Feb 7, 2024
c947b4e
remove tg tests; move message tests to core tests
RLKRo Feb 22, 2024
25b8ac9
buttons pulled out of attachments list
pseusys Feb 28, 2024
bdda83e
Added multiple attachments
NotBioWaste905 Feb 28, 2024
a6c1172
merge
RLKRo Mar 7, 2024
b67b497
some errors fixed
pseusys Mar 12, 2024
5ad4715
Added basic attachments
NotBioWaste Mar 13, 2024
e4e6951
Fixed link
NotBioWaste Mar 13, 2024
29b11f0
Add/First version of tutorial
NotBioWaste905 Mar 14, 2024
95926d6
Fix/deleted sending image
NotBioWaste905 Mar 14, 2024
ede04a9
Delete bot_test.py
NotBioWaste905 Mar 18, 2024
68b4a37
review issues fixed
pseusys Mar 18, 2024
efde7c3
Merge remote-tracking branch 'origin/dev' into feat/telegram_interfac…
pseusys Mar 18, 2024
f9a9d79
Merge branch 'dev' into feat/telegram_interface_upgrade
pseusys Mar 18, 2024
6f8de0b
lock file updated
pseusys Mar 18, 2024
771370d
typing fixed
pseusys Mar 18, 2024
1c85052
circular import resolved
pseusys Mar 18, 2024
0cebb97
one more attempt to fix circular import
pseusys Mar 18, 2024
a5f0e02
populate attachment method made implemented
pseusys Mar 19, 2024
01947dd
CLI interface separated
pseusys Mar 19, 2024
5e35935
data message equation fixed
pseusys Mar 19, 2024
513f77a
lint applied
pseusys Mar 19, 2024
48bb29f
move callback query to script.conditions
RLKRo Mar 20, 2024
e2ea371
condition signature fix
pseusys Mar 21, 2024
ea66537
messenger interface parameter added to `get_bytes` method
pseusys Mar 21, 2024
21feb0c
Add/attachment_tutorial
NotBioWaste905 Mar 21, 2024
72e69fb
Fix/deleted match case
NotBioWaste905 Mar 21, 2024
db1de9a
async def removed from `extract_message_from_telegram` function
pseusys Mar 21, 2024
19d00f3
docs fixed
pseusys Mar 21, 2024
11cc1a3
condition import added
pseusys Mar 21, 2024
66f82b1
two attachment tutorials fixed
pseusys Mar 22, 2024
2773c9d
attachment tuples changed to sets
pseusys Mar 22, 2024
80fceb5
lint applied
pseusys Mar 22, 2024
a5fbe60
docs links fixed
pseusys Mar 22, 2024
6a21d35
Fixed missing document names when uploading
NotBioWaste905 Mar 22, 2024
8e970c9
Merge branch 'dev' into feat/telegram_interface_upgrade
pseusys Mar 27, 2024
3f815e7
Merge branch 'feat/telegram_interface_upgrade' of https://github.com/…
pseusys Mar 27, 2024
f8cecdf
telegram formatted
pseusys Mar 27, 2024
95019ad
lock update
pseusys Mar 27, 2024
8c90763
tuples replaced with sets everywhere
pseusys Mar 27, 2024
de1982f
Switched debug to logging, cleared unused code and imports, changed t…
NotBioWaste Mar 28, 2024
30db35a
telegram-specific request attachments added
pseusys Apr 4, 2024
1432893
attachment subclasses moved to extras
pseusys Apr 9, 2024
1bfe524
extras added
pseusys Apr 10, 2024
82e7a3e
lint fixed
pseusys Apr 11, 2024
2eb8f95
feat/Implemented VK_Bot class, working on VK_dummy test class
NotBioWaste905 Apr 11, 2024
1866008
Updated VK_dummy
NotBioWaste905 Apr 12, 2024
72bb23f
Added vk_dummy_example.py
NotBioWaste905 Apr 12, 2024
334cd74
ui replaced with keyboard
pseusys Apr 16, 2024
fb2e90a
Merge branch 'feat/telegram_interface_upgrade' of https://github.com/…
pseusys Apr 16, 2024
bc406f6
"check_if_" removed
pseusys Apr 16, 2024
b08e8f3
undefined message removed
pseusys Apr 16, 2024
c79a732
unnecessary type casting removed
pseusys Apr 16, 2024
7853dbc
args and kwargs removed
pseusys Apr 16, 2024
5b9992f
default poll option voter count added
pseusys Apr 16, 2024
a3beac9
telegram import check added
pseusys Apr 16, 2024
5dd0751
interface attachments sorted
pseusys Apr 16, 2024
b951772
temp attachment dir warning added
pseusys Apr 16, 2024
fe99c4c
attachment message clarified
pseusys Apr 16, 2024
595d55d
single attachment sending proposal + sticker
pseusys Apr 18, 2024
b31ea18
request and response attachments sorted
pseusys Apr 18, 2024
084ca65
Added dummy data to the requests
NotBioWaste Apr 18, 2024
c882abf
Merge branch 'feat/telegram_interface_upgrade' of https://github.com/…
pseusys Apr 18, 2024
dd57886
attachments tutorial added
pseusys Apr 22, 2024
33c72cb
advanced tutorial added
pseusys Apr 23, 2024
3035cf1
Redone VK_Bot, updated VK_dummy
NotBioWaste Apr 24, 2024
28959f4
Updated VKDummy, redone VK_Bot as VKWrapper
NotBioWaste Apr 25, 2024
17280e3
`cached_filename` field added
pseusys Apr 26, 2024
2a1f01a
Tutorial texts altered.
pseusys Apr 26, 2024
fb58bda
happy path removed, use cache flag added
pseusys Apr 26, 2024
2f3c528
Implementing tests with VKDummy
NotBioWaste Apr 27, 2024
a2e0ca3
literals added + tests started
pseusys May 1, 2024
decbef8
Added test data
NotBioWaste May 3, 2024
53e693e
Pre-merge commit
NotBioWaste May 6, 2024
1bd75de
Merge remote-tracking branch 'origin/feat/telegram_interface_upgrade'…
NotBioWaste May 6, 2024
08a7389
Added dummy_post function to VKDummy
NotBioWaste May 6, 2024
134a23f
Delete bot_test.py
NotBioWaste905 May 6, 2024
a07b73b
Attachment links updated
pseusys May 7, 2024
87001c0
new_attachment_tests_added
pseusys May 7, 2024
aabb3f8
Merge branch 'feat/telegram_interface_upgrade' of https://github.com/…
pseusys May 7, 2024
b4dd7fc
Merge branch 'dev' into feat/telegram_interface_upgrade
pseusys May 7, 2024
f478972
Merge branch 'feat/telegram_interface_upgrade' of https://github.com/…
pseusys May 7, 2024
f1a140a
parametrize fixed for telegram testing
pseusys May 7, 2024
3b04c03
Some lint fixed
pseusys May 7, 2024
4db3d6f
file path fixed
pseusys May 7, 2024
74a0402
attachments type fixed
pseusys May 8, 2024
9bc4b3c
supported attachment sets renamed
pseusys May 8, 2024
cb28fe3
final message test fixed
pseusys May 8, 2024
d30358b
dot path used instead of slash
pseusys May 8, 2024
eaad6d2
tutorial tests fixed
pseusys May 8, 2024
c77f41f
fixed getattribute stack overflow exception
pseusys May 8, 2024
28d7f8a
true transition fixed
pseusys May 8, 2024
786b3c7
async function marked
pseusys May 8, 2024
2277af7
cache dir clear and create reversed
pseusys May 8, 2024
6e218b6
pytest warning fixed
pseusys May 8, 2024
ff88c46
Working on populate attachments
NotBioWaste May 16, 2024
f0ea096
Resolving sync issue
NotBioWaste May 16, 2024
971e331
Merge telegram_interface into vk_interface
NotBioWaste May 16, 2024
e6d1226
tutorial testing done
pseusys May 21, 2024
eb07fae
last test step added
pseusys May 24, 2024
97be6b9
attachments migrated to wiki
pseusys May 24, 2024
33a5c73
pragma removed, inheritance added
pseusys May 27, 2024
140f014
some review parts fixed
pseusys May 27, 2024
47610a3
venv ignore added back
pseusys May 27, 2024
9c435d8
Merge remote-tracking branch 'origin/feat/telegram_interface_upgrade'…
NotBioWaste May 29, 2024
5435889
Fixed attachment parsing and tutorial attachments
NotBioWaste May 29, 2024
3e113b6
Added title extra field to doc type attachments
NotBioWaste May 29, 2024
0362fc8
some review comments updated
pseusys Jun 3, 2024
ea033b4
Created MockVK, splitted saving functions, added extra fields handling
NotBioWaste Jun 5, 2024
07d887e
erview notes taken into account
pseusys Jun 5, 2024
121b092
additional `Message` serialization test introduced
pseusys Jun 5, 2024
5172f0c
extra field verification added
pseusys Jun 7, 2024
27205bb
github action fixes #1
pseusys Jun 7, 2024
0de3e2b
github action fixes N2
pseusys Jun 7, 2024
83cb8a0
github action fixes N3
pseusys Jun 7, 2024
27678f5
misc typing fixed
pseusys Jun 7, 2024
f88e454
Attachment name changed (for windows)
pseusys Jun 7, 2024
85487c3
typing.Annotated fixed
pseusys Jun 7, 2024
e634436
Naming fixed once again
pseusys Jun 7, 2024
5ca6e20
telegram import in tests fixed
pseusys Jun 7, 2024
209d975
telegram import fix (again)
pseusys Jun 7, 2024
2f67816
PathStep quotes added
pseusys Jun 7, 2024
b61c42d
aiofiles dependency fixed
pseusys Jun 8, 2024
cc5772e
typing fixed
pseusys Jun 9, 2024
ae35fb9
naming error fixed
pseusys Jun 10, 2024
a1df33f
ok, we'll just use any I guess
pseusys Jun 10, 2024
d6fbaaf
telegram skip setup correctly
pseusys Jun 10, 2024
eb74d0a
Add files via upload
NotBioWaste905 Jun 10, 2024
c9231ff
Fixes in testing
NotBioWaste Jun 13, 2024
0c9d80d
Merge branch 'feat/vk_interface' of https://github.com/deeppavlov/dia…
NotBioWaste Jun 13, 2024
e12fbb4
Test old testing version
NotBioWaste Jun 13, 2024
c091dd1
Fixed path to test data
NotBioWaste Jun 13, 2024
572e913
Merge remote-tracking branch 'origin/feat/telegram_interface_upgrade'…
NotBioWaste Jun 13, 2024
7c1a9e4
Merged woth TG + fixed fixed path to test files
NotBioWaste Jun 13, 2024
df6a99e
Quickfix
NotBioWaste Jun 13, 2024
964c9e9
Fixed path
NotBioWaste Jun 13, 2024
b74152d
Retracted pyproject edit
NotBioWaste Jun 13, 2024
a1af719
Retracted pyproject to previous version (for real)
NotBioWaste Jun 13, 2024
edd5e93
Fixed message extraction
NotBioWaste Jun 14, 2024
9469846
Added outgoing testing and fixed vk_api_call
NotBioWaste Jun 17, 2024
be7a750
Fixed missing awaits
NotBioWaste Jun 17, 2024
c801175
testing outgoing attachments
NotBioWaste Jun 17, 2024
b06fd83
Fixed attachment testing
NotBioWaste Jun 21, 2024
fb59508
Switched to the url attachments
NotBioWaste905 Jun 23, 2024
26e4eea
Deleted old attachments
NotBioWaste Jul 1, 2024
11ec311
Merge branch 'feat/vk_interface' of https://github.com/deeppavlov/dia…
NotBioWaste Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add files via upload
NotBioWaste905 authored Jun 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit eb74d0ae2d1f1725b77f62c8e3a42c47849c0508
8 changes: 8 additions & 0 deletions tests/messengers/vk/test_tutorial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"1_basic": {
"update": {"ts": "300", "updates": [{"group_id": 224377718, "type": "message_new", "event_id": "ef2d8a225e5c10a4c88692a2a471c00eaacb451b", "v": "5.199", "object": {"message": {"date": 1718015647, "from_id": 355442652, "id": 388, "out": 0, "version": 10000792, "attachments": [], "conversation_message_id": 388, "fwd_messages": [], "important": false, "is_hidden": false, "peer_id": 355442652, "random_id": 0, "text": "Hello"}, "client_info": {"button_actions": ["text", "vkpay", "open_app", "location", "open_link", "callback", "intent_subscribe", "intent_unsubscribe"], "keyboard": true, "inline_keyboard": true, "carousel": true, "lang_id": 0}}}]},
"received_message": "{\"text\":\"Hello\",\"commands\":null,\"attachments\":[],\"annotations\":null,\"misc\":null,\"original_message\":null}",
"response": "{\"text\":\"Hi\",\"commands\":null,\"attachments\":[],\"annotations\":null,\"misc\":null,\"original_message\":null}",
"response_request": "https://api.vk.com/method/messages.send?user_id=355442652&random_id=0&message=Hi&v=5.81&access_token=token"
}
}