Skip to content

Commit ab53a55

Browse files
committed
updated readme
1 parent d2a5704 commit ab53a55

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,88 @@ direct.send_photo(media_id, thread_id)
486486

487487
</details>
488488

489+
<details>
490+
491+
<summary>Add Biography Link</summary>
492+
493+
```python
494+
from ensta import Mobile
495+
496+
mobile = Mobile(username, password) # Or use email
497+
498+
link_id = mobile.add_bio_link(
499+
url="https://github.com/diezo",
500+
title="Diezo's GitHub"
501+
)
502+
```
503+
504+
</details>
505+
506+
<details>
507+
508+
<summary>Add Multiple Biography Links</summary>
509+
510+
```python
511+
from ensta import Mobile
512+
from ensta.structures import BioLink
513+
514+
mobile = Mobile(username, password) # Or use email
515+
516+
link_ids = mobile.add_bio_links([
517+
BioLink(url="https://example.com", title="Link 1"),
518+
BioLink(url="https://example.com", title="Link 2"),
519+
BioLink(url="https://example.com", title="Link 3")
520+
])
521+
```
522+
523+
</details>
524+
525+
<details>
526+
527+
<summary>Remove Biography Link</summary>
528+
529+
```python
530+
from ensta import Mobile
531+
532+
mobile = Mobile(username, password) # Or use email
533+
534+
mobile.remove_bio_link(link_id)
535+
```
536+
537+
</details>
538+
539+
<details>
540+
541+
<summary>Remove Multiple Biography Links</summary>
542+
543+
```python
544+
from ensta import Mobile
545+
546+
mobile = Mobile(username, password) # Or use email
547+
548+
mobile.remove_bio_links([
549+
link_id_1,
550+
link_id_2,
551+
link_id_3
552+
])
553+
```
554+
555+
</details>
556+
557+
<details>
558+
559+
<summary>Clear All Biography Links</summary>
560+
561+
```python
562+
from ensta import Mobile
563+
564+
mobile = Mobile(username, password) # Or use email
565+
566+
mobile.clear_bio_links()
567+
```
568+
569+
</details>
570+
489571
## Supported Classes
490572

491573
<details>

0 commit comments

Comments
 (0)