# String Session

You'll need a API\_ID and API\_HASH in order to generate pyrogram session. Always remember to use good API combo else your account could be deleted.

Generate the Session String from the assistant account not your main account !

<details>

<summary>How to get API_ID and API_HASH ?</summary>

* Go to [my.telegram.org](https://my.telegram.org/) then Enter your Phone Number with your country code.
* After, you are logged in click on [API Development Tools](https://my.telegram.org/apps).
* Enter Anything as App name and App short name, Enter my.telegram.org in url section
* That’s it, You”ll get your **API\_ID** & **API\_HASH**

</details>

### Generate Session trough Repl.it

[![GENERATE ON REPL](https://img.shields.io/badge/Generate%20On%20Repl-blueviolet?style=for-the-badge\&logo=appveyor)](https://replit.com/@levinalab/Session-Generator?lite=1\&outputonly=1#main.py)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://levina.gitbook.io/videostreambot/deployment/string-session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
