reposter 24.3.2__tar.gz → 24.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {reposter-24.3.2 → reposter-24.3.4}/PKG-INFO +4 -2
  2. {reposter-24.3.2 → reposter-24.3.4}/pyproject.toml +1 -1
  3. {reposter-24.3.2 → reposter-24.3.4}/readme.md +3 -1
  4. {reposter-24.3.2 → reposter-24.3.4}/reposter/core/config.py +2 -0
  5. {reposter-24.3.2 → reposter-24.3.4}/reposter/core/types.py +3 -3
  6. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/on_msg.py +6 -0
  7. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/resend_restricted.py +1 -1
  8. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/PKG-INFO +4 -2
  9. {reposter-24.3.2 → reposter-24.3.4}/reposter/__main__.py +0 -0
  10. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/msgs.py +0 -0
  11. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/pyright.py +0 -0
  12. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/restricted.py +0 -0
  13. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/ruff.py +0 -0
  14. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/run.py +0 -0
  15. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/timer.py +0 -0
  16. {reposter-24.3.2 → reposter-24.3.4}/reposter/autotests/unrestricted.py +0 -0
  17. {reposter-24.3.2 → reposter-24.3.4}/reposter/core/common.py +0 -0
  18. {reposter-24.3.2 → reposter-24.3.4}/reposter/db/init.py +0 -0
  19. {reposter-24.3.2 → reposter-24.3.4}/reposter/db/models.py +0 -0
  20. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/handle.py +0 -0
  21. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/logging.py +0 -0
  22. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/other.py +0 -0
  23. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/parse_conf.py +0 -0
  24. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/status.py +0 -0
  25. {reposter-24.3.2 → reposter-24.3.4}/reposter/funcs/suppress.py +0 -0
  26. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/edit.py +0 -0
  27. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/forward_unrestricted.py +0 -0
  28. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/other.py +0 -0
  29. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/service.py +0 -0
  30. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/set.py +0 -0
  31. {reposter-24.3.2 → reposter-24.3.4}/reposter/handlers/stream_notify.py +0 -0
  32. {reposter-24.3.2 → reposter-24.3.4}/reposter/tg/chunk_gen.py +0 -0
  33. {reposter-24.3.2 → reposter-24.3.4}/reposter/tg/history.py +0 -0
  34. {reposter-24.3.2 → reposter-24.3.4}/reposter/tg/restricted.py +0 -0
  35. {reposter-24.3.2 → reposter-24.3.4}/reposter/tg/save_file.py +0 -0
  36. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/SOURCES.txt +0 -0
  37. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/dependency_links.txt +0 -0
  38. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/entry_points.txt +0 -0
  39. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/requires.txt +0 -0
  40. {reposter-24.3.2 → reposter-24.3.4}/reposter.egg-info/top_level.txt +0 -0
  41. {reposter-24.3.2 → reposter-24.3.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reposter
3
- Version: 24.3.2
3
+ Version: 24.3.4
4
4
  Summary: userbot that forwards messages from telegram channels to others in real time
5
5
  Project-URL: repo, https://github.com/gmankab/reposter
6
6
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
@@ -26,7 +26,9 @@ userbot that forwards messages from telegram channels to others in real time
26
26
 
27
27
  ### navigation
28
28
 
29
- - [repo](https://github.com/gmankab/reposter)
29
+ - [github repo](https://github.com/gmankab/reposter)
30
+ - [gitlab repo](https://gitlab.com/gmanka/reposter)
31
+ - [codeberg repo](https://codeberg.org/gmanka/reposter)
30
32
  - [how to run](https://github.com/gmankab/reposter/blob/main/other/docs/run.md)
31
33
  - [how to build](https://github.com/gmankab/reposter/blob/main/other/docs/build.md)
32
34
  - [config](https://github.com/gmankab/reposter/blob/main/other/docs/config.md)
@@ -6,7 +6,7 @@ dependencies = [
6
6
  'rich',
7
7
  ]
8
8
  name = 'reposter'
9
- version = '24.3.2'
9
+ version = '24.3.4'
10
10
  description = 'userbot that forwards messages from telegram channels to others in real time'
11
11
  readme = 'readme.md'
12
12
  requires-python = '>=3.11'
@@ -6,7 +6,9 @@ userbot that forwards messages from telegram channels to others in real time
6
6
 
7
7
  ### navigation
8
8
 
9
- - [repo](https://github.com/gmankab/reposter)
9
+ - [github repo](https://github.com/gmankab/reposter)
10
+ - [gitlab repo](https://gitlab.com/gmanka/reposter)
11
+ - [codeberg repo](https://codeberg.org/gmanka/reposter)
10
12
  - [how to run](https://github.com/gmankab/reposter/blob/main/other/docs/run.md)
11
13
  - [how to build](https://github.com/gmankab/reposter/blob/main/other/docs/build.md)
12
14
  - [config](https://github.com/gmankab/reposter/blob/main/other/docs/config.md)
@@ -28,6 +28,7 @@ class json:
28
28
  logs_chat: str | int
29
29
  stream_notify_chats: list
30
30
  edit_timeout_seconds: int
31
+ repost_delay_seconds: int
31
32
  online_status_every_seconds: int
32
33
  chats: dict
33
34
 
@@ -41,6 +42,7 @@ default = {
41
42
  'logs_chat': 'me',
42
43
  'stream_notify_chats': [],
43
44
  'edit_timeout_seconds': 0,
45
+ 'repost_delay_seconds': 0,
44
46
  'online_status_every_seconds': 0,
45
47
  'chats': {
46
48
  tests.source: tests.target,
@@ -47,7 +47,7 @@ class Progress(rich.progress.Progress):
47
47
  rich.progress.BarColumn(),
48
48
  rich.progress.TimeElapsedColumn(),
49
49
  rich.progress.TaskProgressColumn(),
50
- rich.progress.TextColumn("[progress.description]{task.description}"),
50
+ rich.progress.TextColumn('[progress.description]{task.description}'),
51
51
  )
52
52
  elif task.fields.get('transfer'):
53
53
  self.columns = (
@@ -58,7 +58,7 @@ class Progress(rich.progress.Progress):
58
58
  rich.progress.FileSizeColumn(),
59
59
  '/',
60
60
  rich.progress.TotalFileSizeColumn(),
61
- rich.progress.TextColumn("[progress.description]{task.description}"),
61
+ rich.progress.TextColumn('[progress.description]{task.description}'),
62
62
  )
63
63
  else:
64
64
  self.columns = (
@@ -66,7 +66,7 @@ class Progress(rich.progress.Progress):
66
66
  rich.progress.BarColumn(),
67
67
  rich.progress.TimeElapsedColumn(),
68
68
  rich.progress.MofNCompleteColumn(),
69
- rich.progress.TextColumn("[progress.description]{task.description}"),
69
+ rich.progress.TextColumn('[progress.description]{task.description}'),
70
70
  )
71
71
  yield self.make_tasks_table([task])
72
72
 
@@ -3,6 +3,7 @@ import reposter.handlers.resend_restricted
3
3
  import reposter.handlers.stream_notify
4
4
  import reposter.handlers.service
5
5
  import reposter.handlers.edit
6
+ import reposter.funcs.handle
6
7
  import reposter.funcs.other
7
8
  import reposter.core.common
8
9
  import reposter.core.config
@@ -29,6 +30,11 @@ class OnMsg:
29
30
  reposter.core.common.log(
30
31
  f'[green]\\[new msg] [blue]{link}'
31
32
  )
33
+ if reposter.core.config.json.repost_delay_seconds:
34
+ await reposter.funcs.handle.wait(
35
+ reposter.core.config.json.repost_delay_seconds,
36
+ text='repost delay',
37
+ )
32
38
  if src_msg.service:
33
39
  service = reposter.handlers.service.Service(
34
40
  target_any=self.target_any,
@@ -67,7 +67,7 @@ class ResendOne:
67
67
  await reposter.db.models.Msg.create(
68
68
  hash = reposter.funcs.other.get_hash(self.src_msg),
69
69
  src_msg=self.src_msg.id,
70
- src_chat=self.src_msg.chat,
70
+ src_chat=self.src_msg.chat.id,
71
71
  target_msg=target_msg.id,
72
72
  target_chat=target_msg.chat.id
73
73
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reposter
3
- Version: 24.3.2
3
+ Version: 24.3.4
4
4
  Summary: userbot that forwards messages from telegram channels to others in real time
5
5
  Project-URL: repo, https://github.com/gmankab/reposter
6
6
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
@@ -26,7 +26,9 @@ userbot that forwards messages from telegram channels to others in real time
26
26
 
27
27
  ### navigation
28
28
 
29
- - [repo](https://github.com/gmankab/reposter)
29
+ - [github repo](https://github.com/gmankab/reposter)
30
+ - [gitlab repo](https://gitlab.com/gmanka/reposter)
31
+ - [codeberg repo](https://codeberg.org/gmanka/reposter)
30
32
  - [how to run](https://github.com/gmankab/reposter/blob/main/other/docs/run.md)
31
33
  - [how to build](https://github.com/gmankab/reposter/blob/main/other/docs/build.md)
32
34
  - [config](https://github.com/gmankab/reposter/blob/main/other/docs/config.md)
File without changes
File without changes