-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from progeroffline/developing
Move private channels to close functionality section
- Loading branch information
Showing
6 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .channels_join_requests import * | ||
from .close_functionality import * | ||
from .payment import * | ||
from .start import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from aiogram import types | ||
from filters import UserSubscribedFilter | ||
from keyboards import inline as inline_keyboard | ||
from loader import dp | ||
|
||
|
||
@dp.message_handler(UserSubscribedFilter(), text='Show close functionality') | ||
async def show_private_channels(message: types.Message): | ||
await message.answer( | ||
text='You can subscribe to closed channels.', | ||
reply_markup=await inline_keyboard.channels(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.