Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
altlinux-packages-bot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Unitsaev
altlinux-packages-bot
Commits
88e289fc
Verified
Commit
88e289fc
authored
Jul 14, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base: disable link preview
parent
a733500c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
main.py
src/main.py
+2
-1
No files found.
src/main.py
View file @
88e289fc
from
telegrinder
import
API
,
Telegrinder
,
Token
from
telegrinder
import
API
,
Telegrinder
,
Token
from
telegrinder.modules
import
logger
from
telegrinder.modules
import
logger
from
telegrinder.tools.formatting
import
HTMLFormatter
from
telegrinder.tools.formatting
import
HTMLFormatter
from
telegrinder.types
import
LinkPreviewOptions
from
config
import
config
from
config
import
config
from
api
import
api
from
api
import
api
...
@@ -11,7 +12,7 @@ logger.set_level("INFO")
...
@@ -11,7 +12,7 @@ logger.set_level("INFO")
tg_api
=
API
(
token
=
Token
(
config
.
BOT_TOKEN
))
tg_api
=
API
(
token
=
Token
(
config
.
BOT_TOKEN
))
tg_api
.
default_params
[
"parse_mode"
]
=
HTMLFormatter
.
PARSE_MODE
tg_api
.
default_params
[
"parse_mode"
]
=
HTMLFormatter
.
PARSE_MODE
tg_api
.
default_params
[
"link_preview_options"
]
=
LinkPreviewOptions
(
is_disabled
=
True
)
bot
=
Telegrinder
(
tg_api
)
bot
=
Telegrinder
(
tg_api
)
bot
.
dispatch
.
load_from_dir
(
"src/handlers"
)
bot
.
dispatch
.
load_from_dir
(
"src/handlers"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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