mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-24 06:03:25 +00:00
minor fixes
This commit is contained in:
parent
7a0ce10c56
commit
eeb6c65f36
2
main.py
2
main.py
|
@ -7,9 +7,9 @@ from olgram.settings import TORTOISE_ORM, OlgramSettings
|
|||
from olgram.utils.permissions import AccessMiddleware
|
||||
from server.custom import init_redis
|
||||
|
||||
import olgram.commands.menu # noqa: F401
|
||||
import olgram.commands.bots # noqa: F401
|
||||
import olgram.commands.start # noqa: F401
|
||||
import olgram.commands.menu # noqa: F401
|
||||
import olgram.commands.bot_actions # noqa: F401
|
||||
import olgram.commands.info # noqa: F401
|
||||
import olgram.commands.promo # noqa: F401
|
||||
|
|
|
@ -368,10 +368,14 @@ async def mailing_text_received(message: types.Message, state: FSMContext):
|
|||
logging.error(err, exc_info=True)
|
||||
return await message.answer(_("Не удалось загрузить файл (слишком большой размер?)"))
|
||||
proxy["mailing_data"] = buffer.getvalue()
|
||||
proxy["mailing_file_name"] = getattr(obj, "file_name")
|
||||
proxy["mailing_file_name"] = getattr(obj, "file_name", None)
|
||||
_message_id = await send_stored_message(proxy, AioBot.get_current(), message.chat.id)
|
||||
|
||||
keyboard = types.InlineKeyboardMarkup(row_width=1)
|
||||
keyboard.insert(
|
||||
types.InlineKeyboardButton(text=_("<< Отменить рассылку"),
|
||||
callback_data=menu_callback.new(level=1, bot_id=bot_id, operation=empty, chat=empty))
|
||||
)
|
||||
keyboard.insert(
|
||||
types.InlineKeyboardButton(text=_("Да, начать рассылку"),
|
||||
callback_data=menu_callback.new(level=3, bot_id=bot_id, operation="go_go_mailing",
|
||||
|
|
Loading…
Reference in New Issue
Block a user