This file contains hidden or 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
| from typing import Final | |
| from telegram import Update | |
| from telegram.ext import Application, MessageHandler, filters, ContextTypes | |
| TOKEN: Final = 'xxxxxxxx' | |
| BOT_USERNAME: Final = '@Zing259Bot' | |
| async def handle_message(udpate: Update, context: ContextTypes.DEFAULT_TYPE): | |
| message_type: str = udpate.channel_post.chat.type |
This file contains hidden or 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
| <?php | |
| namespace App\Traits; | |
| use App\Exceptions\ModelNotFoundException; | |
| use Illuminate\Database\Eloquent\Model as EloquentModel; | |
| trait DatabaseRepositoryTrait | |
| { | |
| /** |
This file contains hidden or 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
| <?php | |
| namespace App\Repositories\Eloquent; | |
| use App\Models\Client; | |
| use App\Traits\EloquentRepositoryTrait; | |
| use App\Repositories\Contracts\ClientRepository as ClientRepositoryContract; | |
| class ClientRepository implements ClientRepositoryContract | |
| { |
This file contains hidden or 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
| <?php | |
| /** | |
| * Delete the given post. | |
| * | |
| * @param int $post_id | |
| * @return void | |
| * | |
| * @throws \App\Exceptions\RelationExistsException | |
| */ |