-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone verification error occurs #51
Comments
Hey, v4rchaem, could you solve it? |
no, the problem continue |
holy craps please @kenorb help us¡¡¡ |
Damn, got the same error. |
Tg devs updated the protocol, even if you get tgcli running, it won't reveive any messages. This is a server-side issue and the client needs to be rewriteen. |
@andrew-phi yes correct, currently my bot using cli not working. But no issue when sending message. And it looks like login with cli will not working. Make sure session not gone because it might be we can't login wit it anymore. |
same issue |
same here |
FWIW error messages when running
|
+1 |
According to the doc https://core.telegram.org/method/auth.sendCode, our code for login (
The latest layer (version) is 133 and it requires 64-bit IDs for User/Chat
An upgrade to the By the way, due to some issues I forgot, the default |
Same issue here, I belive we are now forced to use the TDlib. |
Currently we can use Telethon, it can achieve the same effect. |
@staoran can it store number and Sent that number with stored username? |
@burkass Yes, it is as convenient as CLI. For more details, please see its documentation: https://docs.telethon.dev/en/latest/index.html |
@staoran is there compliled exe-file for using on windows? Or instruction how to do this? |
@ViktorKravtsov It is full platform, it is a python package, you can do anything with python. So you need to write a python script and run this script. For example, the following is my usage:
|
When I send a message to a regular user using telethon, I get an error like the one above. Can telethon only send messages to bot? |
Sorry, I haven't encountered this problem, you can go to the following
places to take a look:
https://stackoverflow.com/questions/65588256/how-to-send-message-to-my-channel-using-telethon
https://www.google.com/search?q=You+can%27t+write+in+this+chat+(caused+by+SendMessageRequest)&oq=You+can%27t+write+in+this+chat+(caused+by+SendMessageRequest)&aqs=edge..69i57&sourceid=chrome&ie=UTF-8
zqhong ***@***.***> 于2022年4月17日周日 15:56写道:
… @staoran <https://github.com/staoran>
telethon.errors.rpcerrorlist.ChatWriteForbiddenError: You can't write in this chat (caused by SendMessageRequest)
When I send a message to a regular user using telethon, I get an error
like the one above.
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB33FOXE4QEIYTPU2OXAMYLVFO73BANCNFSM5JKPLCIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi, thanks for your help, now I can send messages to bot and normal users normally. The related code is as follows. Note that the app_id and api_hash are obtained through the https://my.telegram.org/auth website application. from telethon.sync import TelegramClient
if __name__ == '__main__':
api_id = 12345
api_hash = 'xxx'
session_name = "session_name"
client = TelegramClient(session_name, api_id, api_hash)
client.start()
client.send_message("@bot_name", '/sign')
# Note that for this to work the phone number must be in your contacts
user_id = client.get_peer_id('+34123456789')
print(user_id)
client.send_message(user_id, "hello") |
phone number: +821012341234
*** 1638365853.511603 Notification API_64BIT_LOGIN_APP_OUTDATED_153: You are using an outdated app that is no longer supported. To access your messages, please update your app to the latest version.
*** 1638365853.512399 Incorrect phone number
please help to solve issue
The text was updated successfully, but these errors were encountered: