Auto forwarding message from a channel to chat
This commit is contained in:
parent
e95551a795
commit
20fbccb6fe
|
@ -1,6 +1,8 @@
|
||||||
from load import dp,types
|
from load import dp,types, bot
|
||||||
|
|
||||||
|
from config import group_id
|
||||||
|
|
||||||
# TODO: channel post forward in chat
|
# TODO: channel post forward in chat
|
||||||
@dp.channel_post_handler()
|
@dp.channel_post_handler()
|
||||||
async def channel_handler(message:types.Message):
|
async def channel_handler(message:types.Message):
|
||||||
pass
|
await message.forward(group_id)
|
||||||
|
|
Reference in New Issue