mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Use TheAyyBot's username instead mine
@@ -22,7 +22,7 @@ Note that saving and using these entities will be more important when [Accessing
|
|||||||
Other common methods for quick scripts are also available:
|
Other common methods for quick scripts are also available:
|
||||||
```python
|
```python
|
||||||
# Sending a message (use an entity/username/etc)
|
# Sending a message (use an entity/username/etc)
|
||||||
client.send_message('lonami', 'Hello! I am testing your Telethon library')
|
client.send_message('TheAyyBot', 'ayy')
|
||||||
|
|
||||||
# Sending a photo, or a file
|
# Sending a photo, or a file
|
||||||
client.send_file(myself, '/path/to/the/file.jpg', force_document=True)
|
client.send_file(myself, '/path/to/the/file.jpg', force_document=True)
|
||||||
|
Reference in New Issue
Block a user