1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-05-29 08:33:25 +00:00

Compare commits

..

No commits in common. "6789d23c2850db22b22148bb7102612804516acc" and "65bc807ab7f770328828ad4130cf2a6b746f3fad" have entirely different histories.

2 changed files with 1 additions and 4 deletions

View File

@ -15,9 +15,6 @@ TOKEN_ENCRYPTION_KEY=SOME_RANDOM_PASSWORD_HERE
# use your user id or group chat id to restrict access to the bot
# ADMIN_ID=223453418
# use your user id or group chat id to give selected users access to the bot's general statistics (/info command)
# SUPERVISOR_ID=223453419
# example: 11.143.142.140 or my_domain.com (without quotes, without 'https://' prefix!)
WEBHOOK_HOST=YOUR_HOST_HERE

View File

@ -77,7 +77,7 @@ async def send_user_message(message: types.Message, super_chat_id: int, bot):
user_info += message.from_user.full_name
if message.from_user.username:
user_info += " | @" + message.from_user.username
user_info += f" | #ID{message.from_user.id}"
user_info += f" | #{message.from_user.id}"
# Добавлять информацию в конец текста
if message.content_type == types.ContentType.TEXT and len(message.text) + len(user_info) < 4093: # noqa:E721