Comments (6)
@wfjsw you forgot about random_id field
from telegram-mtproto.
After some digging I found you forget to generate the new keypair for nearest_dc
https://github.com/zerobias/telegram-mtproto/blob/master/src/service/api-manager/index.js#L172
from telegram-mtproto.
seems duplicate #17
from telegram-mtproto.
BTW after I logged in with a bot account I got this when I was sending Message with it
[10.503] Error undefined undefined 2 5
{ Error
at ApiManager._ref6 (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/telegram-mtproto/lib/service/api-manager/index.js:156:24)
at _ref6.next (<anonymous>)
at step (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/telegram-mtproto/lib/service/api-manager/index.js:70:202)
at /home/brainbush/wfjsw/telegram-mtproto-test/node_modules/telegram-mtproto/lib/service/api-manager/index.js:70:459
at Promise._execute (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/debuggability.js:300:9)
at Promise._resolveFromExecutor (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:79:10)
at ApiManager.<anonymous> (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/telegram-mtproto/lib/service/api-manager/index.js:70:99)
at ApiManager.mtpInvokeApi (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/telegram-mtproto/lib/service/api-manager/index.js:218:22)
at client.then.then.then (/home/brainbush/wfjsw/telegram-mtproto-test/index.js:36:16)
at tryCatcher (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/brainbush/wfjsw/telegram-mtproto-test/node_modules/bluebird/js/release/async.js:133:16) input: 'messages.sendMessage' }
original code
client('messages.sendMessage',{
peer: {'_': 'inputPeerChat', chat_id:80247363},
message: 'Hello msg from lib'}
).catch(console.log)
from telegram-mtproto.
@wfjsw sendMessage has a more complicated type with optional (flags) arguments. There are troubles with them: currently, they demand to be packed in the flags field. I am working on this now and will release next version when this done
from telegram-mtproto.
@goodmind nop I added it later and problem is still there.
from telegram-mtproto.
Related Issues (20)
- Flood wait! HOT 3
- How to get all dialogs?
- 401 AUTH_KEY_UNREGISTERED right after authorization HOT 1
- Working version support file downloading HOT 1
- AUTH_KEY_DUPLICATED
- get all the chats, not just channels
- please! need working version that works with real DCs and can somehow watch for new messages. HOT 1
- add ability to call "auth.sendCode" and "auth.signIn" from different instances of telegram-mtproto
- Try/catch doesn't work HOT 3
- messages.addChatUser
- New Telegram API Schema HOT 2
- Saving auth data in localstorage HOT 1
- PHONE_NUMBER_FLOOD
- Version 3.2.11 no any answer
- 我第二次使用API进行登陆后,返回了 error 400 PHONE_NUMBER_BANNED ,我没有做其他的操作啊 不知道为什么 HOT 2
- messages.getDialogs does not work in beta nor alpha
- USERNAME_INVALID contacts.resolveUsername
- messages.readHistory for inputPeerChannel gives Error
- How to get updates from telegram (to get new messages)? HOT 1
- upload.getFile()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-mtproto.