Spaces:
Sleeping
Sleeping
File size: 727 Bytes
ca4eb6d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from Powers.bot_class import Gojo
from Powers.utils.msg_types import Types
async def send_cmd(client: Gojo, msgtype: int):
GET_FORMAT = {
Types.TEXT.value: client.send_message,
Types.DOCUMENT.value: client.send_document,
Types.PHOTO.value: client.send_photo,
Types.VIDEO.value: client.send_video,
Types.STICKER.value: client.send_sticker,
Types.AUDIO.value: client.send_audio,
Types.VOICE.value: client.send_voice,
Types.VIDEO_NOTE.value: client.send_video_note,
Types.ANIMATION.value: client.send_animation,
Types.ANIMATED_STICKER.value: client.send_sticker,
Types.CONTACT: client.send_contact,
}
return GET_FORMAT[msgtype]
|