⟁ᴡ
from telethon.tl.types import InputMediaContact
await e.reply(file=InputMediaContact(last_name='', vcard='', phone_number='+42452', first_name='+42452'))
return;
Result:
None
Size: a a a
⟁ᴡ
from telethon.tl.types import InputMediaContact
await e.reply(file=InputMediaContact(last_name='', vcard='', phone_number='+42452', first_name='+42452'))
return;
None
⟁ᴡ
MV
from telethon.tl.types import InputMediaContact
await event.reply(file=InputMediaContact( phone_number='+380917777777'))
TypeError: __init__() missing 3 required positional arguments: 'first_name', 'last_name', and 'vcard'
⟁ᴡ
MV
from telethon.tl.types import InputMediaContact
await event.reply(file=InputMediaContact( phone_number='+380917777777'))
TypeError: __init__() missing 3 required positional arguments: 'first_name', 'last_name', and 'vcard'
MV
MV
Г
⟁ᴡ
д
д
import asyncio
from telethon import TelegramClient, sync, errors
from telethon.tl import functions as f, types as t
async for d in client.iter_dialogs():
if d.is_group and not d.is_channel:
if d.entity.migrated_to:
client(f.messages.DeleteHistoryRequest(d.input_entity.chat_id, client.get_messages(d.input_entity)[0].id, False))
TypeError: 'coroutine' object is not subscriptable
⟁ᴡ
import asyncio
from telethon import TelegramClient, sync, errors
from telethon.tl import functions as f, types as t
async for d in client.iter_dialogs():
if d.is_group and not d.is_channel:
if d.entity.migrated_to:
client(f.messages.DeleteHistoryRequest(d.input_entity.chat_id, client.get_messages(d.input_entity)[0].id, False))
TypeError: 'coroutine' object is not subscriptable
await client
а не client
д
⟁ᴡ
⟁ᴡ
from telethon.tl import functions
async for d in client.iter_dialogs():
if d.is_group and not d.is_channel:
if d.entity.migrated_to:
await client(
functions.messages.DeleteHistoryRequest(
d.input_entity.chat_id,
client.get_messages(d.input_entity)[0].id,
False,
)
)
д
д
async for d in client.iter_dialogs():
if d.is_group and not d.is_channel:
if d.entity.migrated_to:
await client(
functions.messages.DeleteHistoryRequest(
d.input_entity.chat_id,
client.get_messages(d.input_entity)[0].id,
False,
)
)
NameError: name 'functions' is not defined
⟁ᴡ
async for d in client.iter_dialogs():
if d.is_group and not d.is_channel:
if d.entity.migrated_to:
await client(
functions.messages.DeleteHistoryRequest(
d.input_entity.chat_id,
client.get_messages(d.input_entity)[0].id,
False,
)
)
NameError: name 'functions' is not defined
д
д