Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
plugins
telegram
Commits
ee1a1584
Commit
ee1a1584
authored
2 years ago
by
Szymon Zimnowoda
Browse files
Options
Download
Email Patches
Plain Diff
cleanup
parent
8be3a65a
Pipeline
#11768
passed with stage
in 1 minute and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
telegram/plugin.py
+0
-3
telegram/plugin.py
tests/test_plugin.py
+0
-1
tests/test_plugin.py
with
0 additions
and
4 deletions
+0
-4
telegram/plugin.py
+
0
-
3
View file @
ee1a1584
...
...
@@ -204,9 +204,6 @@ class TelegramPlugin(PluginBase):
logger
.
info
(
f
"Using existing account:
{
self
.
me
.
id
}
{
self
.
me
.
displayName
}
{
self
.
me
.
externalId
}
"
)
try
:
session_dict
=
json
.
loads
(
self
.
me
.
secret
)
logger
.
info
(
f
"session dict
{
session_dict
}
"
)
session
=
sessions
.
MemorySession
()
session
.
set_dc
(
session_dict
[
'dc_id'
],
session_dict
[
'server_address'
],
session_dict
[
'port'
])
session
.
takeout_id
=
session_dict
[
'takeout_id'
]
...
...
This diff is collapsed.
Click to expand it.
tests/test_plugin.py
+
0
-
1
View file @
ee1a1584
...
...
@@ -185,5 +185,4 @@ async def test_plugin_integration(context: Context):
new_message
=
context
.
pod
.
search
(
{
"type"
:
"Message"
,
"service"
:
SERVICE_NAME
,
"content"
:
message
})
# TODO: use separate mobile phone numbers for test, and user, then this should work
assert
len
(
new_message
)
==
1
,
"No new message in the POD DB!"
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets